|
|
@@ -0,0 +1,168 @@
|
|
|
+package com.jeesite.modules.mes.entity;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+import javax.validation.constraints.Size;
|
|
|
+
|
|
|
+import com.jeesite.common.entity.DataEntity;
|
|
|
+import com.jeesite.common.mybatis.annotation.Column;
|
|
|
+import com.jeesite.common.mybatis.annotation.Table;
|
|
|
+import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|
|
+import com.jeesite.common.utils.excel.annotation.ExcelField;
|
|
|
+import com.jeesite.common.utils.excel.annotation.ExcelField.Align;
|
|
|
+import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 来料送检单Entity(独立新表,不改动现有报检)
|
|
|
+ */
|
|
|
+@Table(name = "mes_material_inspect", alias = "a", label = "来料送检单", columns = {
|
|
|
+ @Column(name = "id", attrName = "id", label = "id", isPK = true),
|
|
|
+ @Column(name = "sn", attrName = "sn", label = "来料码"),
|
|
|
+ @Column(name = "material_id", attrName = "materialId", label = "物料id"),
|
|
|
+ @Column(name = "supplier_code", attrName = "supplierCode", label = "供应商ERP代码"),
|
|
|
+ @Column(name = "supplier_name", attrName = "supplierName", label = "供应商名称", queryType = QueryType.LIKE),
|
|
|
+ @Column(name = "po_no", attrName = "poNo", label = "采购订单号", queryType = QueryType.LIKE),
|
|
|
+ @Column(name = "po_line", attrName = "poLine", label = "采购订单行号"),
|
|
|
+ @Column(name = "erp_sn", attrName = "erpSn", label = "物料编码", queryType = QueryType.LIKE),
|
|
|
+ @Column(name = "produce_date", attrName = "produceDate", label = "来料日期"),
|
|
|
+ @Column(name = "batch_no", attrName = "batchNo", label = "批次号", queryType = QueryType.LIKE),
|
|
|
+ @Column(name = "delivery_no", attrName = "deliveryNo", label = "送货单号"),
|
|
|
+ @Column(name = "material_name", attrName = "materialName", label = "物料名称", queryType = QueryType.LIKE),
|
|
|
+ @Column(name = "spec", attrName = "spec", label = "规格型号"),
|
|
|
+ @Column(name = "unit", attrName = "unit", label = "单位"),
|
|
|
+ @Column(name = "delivery_qty", attrName = "deliveryQty", label = "送货数量"),
|
|
|
+ @Column(name = "inspect_qty", attrName = "inspectQty", label = "送检数量"),
|
|
|
+ @Column(name = "remark", attrName = "remark", label = "备注"),
|
|
|
+ @Column(name = "create_by", attrName = "createBy", label = "送检人"),
|
|
|
+ @Column(name = "create_date", attrName = "createDate", label = "送检时间", isUpdateForce = true),
|
|
|
+ @Column(name = "update_by", attrName = "updateBy", label = "update_by", isQuery = false),
|
|
|
+ @Column(name = "update_date", attrName = "updateDate", label = "update_date", isQuery = false, isUpdateForce = true),
|
|
|
+ @Column(name = "remarks", attrName = "remarks", label = "备注信息", isQuery = false),
|
|
|
+ @Column(name = "status", attrName = "status", label = "状态", isUpdate = false),
|
|
|
+}, orderBy = "a.create_date DESC")
|
|
|
+public class MesMaterialInspect extends DataEntity<MesMaterialInspect> {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ private String sn;
|
|
|
+ private String materialId;
|
|
|
+ private String supplierCode;
|
|
|
+ private String supplierName;
|
|
|
+ private String poNo;
|
|
|
+ private String poLine;
|
|
|
+ private String erpSn;
|
|
|
+ private String produceDate;
|
|
|
+ private String batchNo;
|
|
|
+ private String deliveryNo;
|
|
|
+ private String materialName;
|
|
|
+ private String spec;
|
|
|
+ private String unit;
|
|
|
+ private String deliveryQty;
|
|
|
+ private String inspectQty;
|
|
|
+ private String remark;
|
|
|
+
|
|
|
+ public MesMaterialInspect() {
|
|
|
+ this(null);
|
|
|
+ }
|
|
|
+
|
|
|
+ public MesMaterialInspect(String id) {
|
|
|
+ super(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ExcelFields({
|
|
|
+ @ExcelField(title = "来料码", attrName = "sn", align = Align.CENTER, sort = 10),
|
|
|
+ @ExcelField(title = "采购订单号", attrName = "poNo", align = Align.CENTER, sort = 20),
|
|
|
+ @ExcelField(title = "供应商名称", attrName = "supplierName", align = Align.CENTER, sort = 30),
|
|
|
+ @ExcelField(title = "物料编码", attrName = "erpSn", align = Align.CENTER, sort = 40),
|
|
|
+ @ExcelField(title = "物料名称", attrName = "materialName", align = Align.CENTER, sort = 50),
|
|
|
+ @ExcelField(title = "规格型号", attrName = "spec", align = Align.CENTER, sort = 60),
|
|
|
+ @ExcelField(title = "单位", attrName = "unit", align = Align.CENTER, sort = 70),
|
|
|
+ @ExcelField(title = "送货数量", attrName = "deliveryQty", align = Align.CENTER, sort = 80),
|
|
|
+ @ExcelField(title = "送检数量", attrName = "inspectQty", align = Align.CENTER, sort = 90),
|
|
|
+ @ExcelField(title = "批次号", attrName = "batchNo", align = Align.CENTER, sort = 100),
|
|
|
+ @ExcelField(title = "来料日期", attrName = "produceDate", align = Align.CENTER, sort = 110),
|
|
|
+ @ExcelField(title = "送货单号", attrName = "deliveryNo", align = Align.CENTER, sort = 120),
|
|
|
+ @ExcelField(title = "备注", attrName = "remark", align = Align.CENTER, sort = 130),
|
|
|
+ @ExcelField(title = "送检人", attrName = "createBy", align = Align.CENTER, sort = 140),
|
|
|
+ @ExcelField(title = "送检时间", attrName = "createDate", align = Align.CENTER, sort = 150, dataFormat = "yyyy-MM-dd HH:mm"),
|
|
|
+ })
|
|
|
+ @Size(min = 0, max = 200, message = "来料码长度不能超过 200 个字符")
|
|
|
+ public String getSn() { return sn; }
|
|
|
+ public void setSn(String sn) { this.sn = sn; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 64, message = "物料id长度不能超过 64 个字符")
|
|
|
+ public String getMaterialId() { return materialId; }
|
|
|
+ public void setMaterialId(String materialId) { this.materialId = materialId; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 64, message = "供应商ERP代码长度不能超过 64 个字符")
|
|
|
+ public String getSupplierCode() { return supplierCode; }
|
|
|
+ public void setSupplierCode(String supplierCode) { this.supplierCode = supplierCode; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 255, message = "供应商名称长度不能超过 255 个字符")
|
|
|
+ public String getSupplierName() { return supplierName; }
|
|
|
+ public void setSupplierName(String supplierName) { this.supplierName = supplierName; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 64, message = "采购订单号长度不能超过 64 个字符")
|
|
|
+ public String getPoNo() { return poNo; }
|
|
|
+ public void setPoNo(String poNo) { this.poNo = poNo; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 32, message = "采购订单行号长度不能超过 32 个字符")
|
|
|
+ public String getPoLine() { return poLine; }
|
|
|
+ public void setPoLine(String poLine) { this.poLine = poLine; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 64, message = "物料编码长度不能超过 64 个字符")
|
|
|
+ public String getErpSn() { return erpSn; }
|
|
|
+ public void setErpSn(String erpSn) { this.erpSn = erpSn; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 32, message = "来料日期长度不能超过 32 个字符")
|
|
|
+ public String getProduceDate() { return produceDate; }
|
|
|
+ public void setProduceDate(String produceDate) { this.produceDate = produceDate; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 64, message = "批次号长度不能超过 64 个字符")
|
|
|
+ public String getBatchNo() { return batchNo; }
|
|
|
+ public void setBatchNo(String batchNo) { this.batchNo = batchNo; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 64, message = "送货单号长度不能超过 64 个字符")
|
|
|
+ public String getDeliveryNo() { return deliveryNo; }
|
|
|
+ public void setDeliveryNo(String deliveryNo) { this.deliveryNo = deliveryNo; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 255, message = "物料名称长度不能超过 255 个字符")
|
|
|
+ public String getMaterialName() { return materialName; }
|
|
|
+ public void setMaterialName(String materialName) { this.materialName = materialName; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 255, message = "规格型号长度不能超过 255 个字符")
|
|
|
+ public String getSpec() { return spec; }
|
|
|
+ public void setSpec(String spec) { this.spec = spec; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 32, message = "单位长度不能超过 32 个字符")
|
|
|
+ public String getUnit() { return unit; }
|
|
|
+ public void setUnit(String unit) { this.unit = unit; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 32, message = "送货数量长度不能超过 32 个字符")
|
|
|
+ public String getDeliveryQty() { return deliveryQty; }
|
|
|
+ public void setDeliveryQty(String deliveryQty) { this.deliveryQty = deliveryQty; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 32, message = "送检数量长度不能超过 32 个字符")
|
|
|
+ public String getInspectQty() { return inspectQty; }
|
|
|
+ public void setInspectQty(String inspectQty) { this.inspectQty = inspectQty; }
|
|
|
+
|
|
|
+ @Size(min = 0, max = 255, message = "备注长度不能超过 255 个字符")
|
|
|
+ public String getRemark() { return remark; }
|
|
|
+ public void setRemark(String remark) { this.remark = remark; }
|
|
|
+
|
|
|
+ public Date getCreateDate_gte() {
|
|
|
+ return sqlMap.getWhere().getValue("create_date", QueryType.GTE);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCreateDate_gte(Date createDate) {
|
|
|
+ sqlMap.getWhere().and("create_date", QueryType.GTE, createDate);
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getCreateDate_lte() {
|
|
|
+ return sqlMap.getWhere().getValue("create_date", QueryType.LTE);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCreateDate_lte(Date createDate) {
|
|
|
+ sqlMap.getWhere().and("create_date", QueryType.LTE, createDate);
|
|
|
+ }
|
|
|
+}
|