|
@@ -0,0 +1,207 @@
|
|
|
+/*
|
|
|
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
|
|
+ *
|
|
|
+ * Redistribution and use in source and binary forms, with or without
|
|
|
+ * modification, are permitted provided that the following conditions are met:
|
|
|
+ *
|
|
|
+ * Redistributions of source code must retain the above copyright notice,
|
|
|
+ * this list of conditions and the following disclaimer.
|
|
|
+ * Redistributions in binary form must reproduce the above copyright
|
|
|
+ * notice, this list of conditions and the following disclaimer in the
|
|
|
+ * documentation and/or other materials provided with the distribution.
|
|
|
+ * Neither the name of the dreamlu.net developer nor the names of its
|
|
|
+ * contributors may be used to endorse or promote products derived from
|
|
|
+ * this software without specific prior written permission.
|
|
|
+ * Author: Chill 庄骞 (smallchill@163.com)
|
|
|
+ */
|
|
|
+package com.fjhx.contract.entity;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+import com.fjhx.base.BaseStockEntity;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 采购合同实体类
|
|
|
+ *
|
|
|
+ * @author BladeX
|
|
|
+ * @since 2022-07-27
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@TableName("stock_purchase_contract")
|
|
|
+@ApiModel(value = "PurchaseContract对象", description = "采购合同")
|
|
|
+public class PurchaseContract extends BaseStockEntity {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 申购单ID
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "申购单ID")
|
|
|
+ private String applyPurchaseId;
|
|
|
+ /**
|
|
|
+ * 采购合同单号
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "采购合同单号")
|
|
|
+ private String purchaseBillNo;
|
|
|
+ /**
|
|
|
+ * 供应商ID(对应表ord_factory的ID)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "供应商ID(对应表ord_factory的ID)")
|
|
|
+ private String supplierId;
|
|
|
+ /**
|
|
|
+ * 交付日期
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "交付日期")
|
|
|
+ private Date deliverTime;
|
|
|
+ /**
|
|
|
+ * 账期
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "账期")
|
|
|
+ private Integer accountPeriod;
|
|
|
+ /**
|
|
|
+ * 增值税
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "增值税")
|
|
|
+ private BigDecimal taxValue;
|
|
|
+ /**
|
|
|
+ * 发票类型 (枚举定义:0=专用,1=普通)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "发票类型 (枚举定义:0=专用,1=普通)")
|
|
|
+ private Integer invoiceType;
|
|
|
+ /**
|
|
|
+ * 签约时间
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "签约时间")
|
|
|
+ private LocalDateTime signTime;
|
|
|
+ /**
|
|
|
+ * 采购合同状态 (枚举定义:0=待确认,1=审批中,2=进行中,3=已完成)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "采购合同状态 (枚举定义:0=待确认,1=审批中,2=进行中,3=已完成)")
|
|
|
+ private Integer purContractState;
|
|
|
+ /**
|
|
|
+ * 合同付款状态 (枚举定义:0=审批中,1=进行中,2=已完成)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "合同付款状态 (枚举定义:0=审批中,1=进行中,2=已完成)")
|
|
|
+ private Integer contractPayState;
|
|
|
+ /**
|
|
|
+ * 供应商出货状态 (枚举定义:0=进行中,1=已完成)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "供应商出货状态 (枚举定义:0=进行中,1=已完成)")
|
|
|
+ private Integer supplierShipState;
|
|
|
+ /**
|
|
|
+ * 审批状态 (枚举定义:0=待审批,1=审批中,2=已审批,3=已驳回,4=已撤回)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "审批状态 (枚举定义:0=待审批,1=审批中,2=已审批,3=已驳回,4=已撤回)")
|
|
|
+ private Integer approveBillState;
|
|
|
+ /**
|
|
|
+ * 审核时间
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "审核时间")
|
|
|
+ private Date approvalTime;
|
|
|
+ /**
|
|
|
+ * 备注
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "备注")
|
|
|
+ private String remark;
|
|
|
+ /**
|
|
|
+ * 质检修正金额
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "质检修正金额")
|
|
|
+ private BigDecimal adjustAmount;
|
|
|
+ /**
|
|
|
+ * 质检修正数量
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "质检修正数量")
|
|
|
+ private BigDecimal adjustQty;
|
|
|
+ /**
|
|
|
+ * 已付金额
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "已付金额")
|
|
|
+ private BigDecimal hadPayAmount;
|
|
|
+ /**
|
|
|
+ * 申请付款金额
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "申请付款金额")
|
|
|
+ private BigDecimal applyPayAmount;
|
|
|
+ /**
|
|
|
+ * 退货数量
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "退货数量")
|
|
|
+ private BigDecimal retBackQty;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 合同物料列表
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private List<PurchaseContractMaterial> materialList;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 采购数量
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private Integer purchaseQty;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 采购价格
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private BigDecimal purchasePrice;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 采购小计
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private BigDecimal purchaseTotalAmount;
|
|
|
+ /**
|
|
|
+ * 物料名称
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String materialName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 物料单位
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String materialUnit;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 物料备注
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String materialRemark;
|
|
|
+ /**
|
|
|
+ * 物料规格
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String materialSpec;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 物料编码
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String materialCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 申购单号
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String applyBillNo;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 供应商名称
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String supplierName;
|
|
|
+}
|