【1804 质检检测-来料检验功能】
parent
543f0f5c4c
commit
60973a3ee0
@ -0,0 +1,89 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: jessica.chen
|
||||
* @CreateDate: 2019\11\15 10:01
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "IF_QC_ORDER")
|
||||
@Api("IF_质检单")
|
||||
public class IfQcOrder extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5412635747424111476L;
|
||||
@Column(name = "ORDER_NO")
|
||||
@ApiParam("质检单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("数量")
|
||||
private Double qty = 0D;
|
||||
|
||||
@Column(name = "UNIT")
|
||||
@ApiParam("单位")
|
||||
private String unit;
|
||||
|
||||
@Column(name = "SUPPLIER_CODE")
|
||||
@ApiParam("供应商代码")
|
||||
private String supplierCode;
|
||||
|
||||
@Column(name = "SRC_LOT_NO")
|
||||
@ApiParam("收货批次")
|
||||
private String srcLotNo;
|
||||
|
||||
@Column(name = "FIX_LOT_NO")
|
||||
@ApiParam("特殊批次")
|
||||
private String fixLotNo;
|
||||
|
||||
@Column(name = "RELATION_ORDER_NO")
|
||||
@ApiParam("关联单号")
|
||||
private String relationOrderNo;
|
||||
|
||||
@Column(name = "UUID")
|
||||
@ApiParam("数据唯一编号")
|
||||
private String uuid;
|
||||
|
||||
@Column(name = "ORGANIZTION_CODE")
|
||||
@ApiParam("工厂代码")
|
||||
private String organiztionCode;
|
||||
|
||||
@Column(name = "SYNC_STATUS")
|
||||
@ApiParam("同步状态")
|
||||
private Integer syncStatus;
|
||||
|
||||
@Column(name = "ERROR_MESSAGE")
|
||||
@ApiParam("异常消息")
|
||||
private String errorMessage;
|
||||
|
||||
@Column(name = "ACTION_CODE")
|
||||
@ApiParam("动作代码")
|
||||
private String actionCode;
|
||||
|
||||
@Column(name = "IF_CODE")
|
||||
@ApiParam("接口代码")
|
||||
private String ifCode;
|
||||
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: jessica.chen
|
||||
* @CreateDate: 2019\11\15 10:01
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "IF_QC_RESULT")
|
||||
@Api("IF_质检结果")
|
||||
public class IfQcResult extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5412635747424111476L;
|
||||
@Column(name = "ORDER_NO")
|
||||
@ApiParam("质检单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "UUID")
|
||||
@ApiParam("数据唯一编号")
|
||||
private String uuid;
|
||||
|
||||
@Column(name = "QC_RESULT")
|
||||
@ApiParam("质检结果")
|
||||
private String qcResult;
|
||||
|
||||
@Column(name = "ORGANIZTION_CODE")
|
||||
@ApiParam("工厂代码")
|
||||
private String organiztionCode;
|
||||
|
||||
@Column(name = "SYNC_STATUS")
|
||||
@ApiParam("同步状态")
|
||||
private Integer syncStatus;
|
||||
|
||||
@Column(name = "ERROR_MESSAGE")
|
||||
@ApiParam("异常消息")
|
||||
private String errorMessage;
|
||||
|
||||
@Column(name = "ACTION_CODE")
|
||||
@ApiParam("动作代码")
|
||||
private String actionCode;
|
||||
|
||||
@Column(name = "IF_CODE")
|
||||
@ApiParam("接口代码")
|
||||
private String ifCode;
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: jessica.chen
|
||||
* @CreateDate: 2019\11\15 10:01
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_QC_ORDER")
|
||||
@Api("MES_检验单")
|
||||
public class MesQcOrder extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5412635747424111476L;
|
||||
@Column(name = "ORDER_NO")
|
||||
@ApiParam("质检单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "CHECK_TYPE")
|
||||
@ApiParam("检测类型")
|
||||
private Integer checkType;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "FINISH_QTY")
|
||||
@ApiParam("已检数量")
|
||||
private Double finishQty = 0D;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("数量")
|
||||
private Double qty = 0D;
|
||||
|
||||
@Column(name = "UNIT")
|
||||
@ApiParam("单位")
|
||||
private String unit;
|
||||
|
||||
@Column(name = "SUPPLIER_CODE")
|
||||
@ApiParam("供应商代码")
|
||||
private String supplierCode;
|
||||
|
||||
@Column(name = "SRC_LOT_NO")
|
||||
@ApiParam("收货批次")
|
||||
private String srcLotNo;
|
||||
|
||||
@Column(name = "FIX_LOT_NO")
|
||||
@ApiParam("特殊批次")
|
||||
private String fixLotNo;
|
||||
|
||||
@Column(name = "RELATION_ORDER_NO")
|
||||
@ApiParam("关联单号")
|
||||
private String relationOrderNo;
|
||||
|
||||
@Column(name = "UUID")
|
||||
@ApiParam("数据唯一编号")
|
||||
private String uuid;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "CHECK_REULST")
|
||||
@ApiParam("检测整体结果")
|
||||
private Integer checkReulst = 0;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@ApiParam(value = "检测结果")
|
||||
@Transient
|
||||
private String reulstStatus;
|
||||
|
||||
@ApiParam(value = "产品条码")
|
||||
@Transient
|
||||
private String serialNumber;
|
||||
|
||||
@ApiParam(value = "产线")
|
||||
@Transient
|
||||
private String workCenterCode;
|
||||
|
||||
@ApiParam(value = "工单号")
|
||||
@Transient
|
||||
private String mesWorkNo;
|
||||
|
||||
}
|
@ -0,0 +1,85 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: jessica.chen
|
||||
* @CreateDate: 2019\11\15 10:01
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_QC_ORDER_DETAIL")
|
||||
@Api("MES_检验单明细")
|
||||
public class MesQcOrderDetail extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5412635747424111476L;
|
||||
@Column(name = "ORDER_NO")
|
||||
@ApiParam("质检单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "CHECK_TYPE")
|
||||
@ApiParam("检测类型")
|
||||
private Integer checkType;
|
||||
|
||||
@Column(name = "CHECK_ITEM_TYPE")
|
||||
@ApiParam("检测项类型")
|
||||
private String checkItemType;
|
||||
|
||||
@Column(name = "CHECK_ITEM")
|
||||
@ApiParam("检测项")
|
||||
private String checkItem;
|
||||
|
||||
@Column(name = "CHECK_STANDARD")
|
||||
@ApiParam("检测标准")
|
||||
private String checkStandard;
|
||||
|
||||
@Column(name = "CHECK_GUIDE")
|
||||
@ApiParam("检测指导")
|
||||
private String checkGuide;
|
||||
|
||||
@Column(name = "CHECK_FREQUENCY")
|
||||
@ApiParam("频率")
|
||||
private String checkFrequency;
|
||||
|
||||
@Column(name = "IS_CONCESSION")
|
||||
@ApiParam("是否允许让步")
|
||||
private Integer isConcession = 0;
|
||||
|
||||
@Column(name = "CHECK_REULST")
|
||||
@ApiParam("判定结果")
|
||||
private Integer checkReulst = 0;
|
||||
|
||||
@Column(name = "ITEM_NO")
|
||||
@ApiParam("检验行号")
|
||||
private Integer itemNo = 0;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "CHECK_VALUE")
|
||||
@ApiParam("检测值")
|
||||
private String checkValue;
|
||||
|
||||
@ApiParam(value = "已完成数量")
|
||||
@Transient
|
||||
private Integer finishQty;
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: jessica.chen
|
||||
* @CreateDate: 2019\11\18 9:34
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Api("QC质检单model")
|
||||
public class IfQcOrderDataModel extends BaseBean {
|
||||
|
||||
@ApiParam("ruid")
|
||||
private Long ruid;
|
||||
|
||||
@ApiParam("收货流水号")
|
||||
private Long uuid;
|
||||
|
||||
@ApiParam("域")
|
||||
private String werks;
|
||||
|
||||
@ApiParam("地点")
|
||||
private String lgort;
|
||||
|
||||
@ApiParam("收货库位")
|
||||
private String wlbrt;
|
||||
|
||||
@ApiParam("单据号")
|
||||
private String refid;
|
||||
|
||||
@ApiParam("行号")
|
||||
private Integer zeile;
|
||||
|
||||
@ApiParam("业务类型")
|
||||
private String action;
|
||||
|
||||
@ApiParam("供应商编码")
|
||||
private String lifnr;
|
||||
|
||||
@ApiParam("物料编码")
|
||||
private String matnr;
|
||||
|
||||
@ApiParam("收货数量")
|
||||
private String erfmg;
|
||||
|
||||
@ApiParam("计量单位")
|
||||
private String erfme;
|
||||
|
||||
@ApiParam("检验编号")
|
||||
private String chkno;
|
||||
|
||||
@ApiParam("炉批号")
|
||||
private String stono;
|
||||
|
||||
@ApiParam("收货日期")
|
||||
private String zpost;
|
||||
|
||||
@ApiParam("收货时间")
|
||||
private String ztime;
|
||||
|
||||
@ApiParam("添加日期")
|
||||
private String addtimeYmd;
|
||||
|
||||
@ApiParam("添加时间")
|
||||
private String addtimeHms;
|
||||
|
||||
@ApiParam("处理日期")
|
||||
private String finishtimeYmd;
|
||||
|
||||
@ApiParam("处理时间")
|
||||
private String finishtimeHms;
|
||||
|
||||
@ApiParam("删除标记")
|
||||
private Integer deleteFlag;
|
||||
|
||||
@ApiParam("读取标识")
|
||||
private Integer readFlag;
|
||||
|
||||
@ApiParam("错误代码")
|
||||
private String errCode;
|
||||
|
||||
@ApiParam("错误信息")
|
||||
private String errMsg;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.IfPackageDetail;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.IfQcOrder;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\18 10:34
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IfQcOrderRepository extends BaseRepository<IfQcOrder, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.IfQcResult;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\18 10:34
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IfQcResultRepository extends BaseRepository<IfQcResult, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesQcOrderDetail;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\18 10:34
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesQcOrderDetailRepository extends BaseRepository<MesQcOrderDetail, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesQcOrder;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\18 10:34
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesQcOrderRepository extends BaseRepository<MesQcOrder, Long> {
|
||||
}
|
Loading…
Reference in New Issue