【需求:1107,生产工单首检件】

yun-zuoyi
王杰 6 years ago
parent 3c8b920a4c
commit dcaf007f4d

@ -49,6 +49,42 @@ public class MesEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_PRODUCE_SN_TYPE {
NORMAL(10, "正常件"),
FIRST_INSPECTION(20, "首检件");
private int value;
private String description;
MES_PRODUCE_SN_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -41,5 +41,5 @@ public class MesFiCfg extends BaseBean {
@Column(name = "FI_QTY")
@ApiParam("首检数量")
private String fiQty;
private Double fiQty;
}

@ -115,7 +115,7 @@ public class MesProduceSn extends BaseBean {
@Column(name = "SN_TYPE")
@ApiParam("条码类型 10=正常 20=首检件")
private String snType;
private Integer snType;
@Column(name = "TRAY")
@ApiParam("托盘号")
@ -149,6 +149,10 @@ public class MesProduceSn extends BaseBean {
return this.printStatus == null ? 0 : this.printStatus;
}
public int getSnTypeVal() {
return this.snType == null ? 0 : this.snType;
}
@Override
public String toString() {
return "MesProduceSn{" +
@ -172,6 +176,8 @@ public class MesProduceSn extends BaseBean {
", custSn='" + custSn + '\'' +
", custPartNo='" + custPartNo + '\'' +
", packageSn='" + packageSn + '\'' +
", snType='" + snType + '\'' +
", tray='" + tray + '\'' +
", resultMsg='" + resultMsg + '\'' +
'}';
}

@ -139,15 +139,15 @@ public class MesWorkOrder extends BaseBean {
@Column(name = "FI_QTY")
@ApiParam("首检数量")
private Long fiQty;
private Double fiQty;
@Column(name = "FI_COMPLETE_QTY")
@ApiParam("首检完成数量")
private Long fiCompleteQty;
private Double fiCompleteQty;
@Column(name = "FI_GENERATE_QTY")
@ApiParam("首检生成数量")
private Long fiGenerateQty;
private Double fiGenerateQty;
/********************** 冗余字段 *********************************/
@Transient

@ -136,6 +136,18 @@ public class MesWorkOrderLog extends BaseBean {
@ApiParam("客户订单号")
private String custOrderNo;
@Column(name = "FI_QTY")
@ApiParam("首检数量")
private Double fiQty;
@Column(name = "FI_COMPLETE_QTY")
@ApiParam("首检完成数量")
private Double fiCompleteQty;
@Column(name = "FI_GENERATE_QTY")
@ApiParam("首检生成数量")
private Double fiGenerateQty;
/********************** 冗余字段 *********************************/
@Transient
@ApiParam(value = "工作中心名称")

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.mes.pcn.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesFiCfg;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-04-02
* @Modify:
**/
@Repository
public interface MesFiCfgRepository extends BaseRepository<MesFiCfg, Long> {
}

@ -41,5 +41,5 @@ public class MesFiCfg extends BaseBean {
@Column(name = "FI_QTY")
@ApiParam("首检数量")
private String fiQty;
private Double fiQty;
}

@ -115,7 +115,7 @@ public class MesProduceSn extends BaseBean {
@Column(name = "SN_TYPE")
@ApiParam("条码类型")
private String snType;
private Integer snType;
@Column(name = "TRAY")
@ApiParam("托盘号")
@ -145,6 +145,10 @@ public class MesProduceSn extends BaseBean {
return this.printStatus == null ? 0 : this.printStatus;
}
public int getSnTypeVal() {
return this.snType == null ? 0 : this.snType;
}
@Override
public String toString() {
return "MesProduceSn{" +
@ -168,6 +172,8 @@ public class MesProduceSn extends BaseBean {
", custSn='" + custSn + '\'' +
", custPartNo='" + custPartNo + '\'' +
", packageSn='" + packageSn + '\'' +
", snType='" + snType + '\'' +
", tray='" + tray + '\'' +
", resultMsg='" + resultMsg + '\'' +
'}';
}

@ -139,15 +139,15 @@ public class MesWorkOrder extends BaseBean {
@Column(name = "FI_QTY")
@ApiParam("首检数量")
private String fiQty;
private Double fiQty;
@Column(name = "FI_COMPLETE_QTY")
@ApiParam("首检完成数量")
private String fiCompleteQty;
private Double fiCompleteQty;
@Column(name = "FI_GENERATE_QTY")
@ApiParam("首检生成数量")
private String fiGenerateQty;
private Double fiGenerateQty;
/********************** 冗余字段 *********************************/
@Transient

@ -136,6 +136,18 @@ public class MesWorkOrderLog extends BaseBean {
@ApiParam("客户订单号")
private String custOrderNo;
@Column(name = "FI_QTY")
@ApiParam("首检数量")
private Double fiQty;
@Column(name = "FI_COMPLETE_QTY")
@ApiParam("首检完成数量")
private Double fiCompleteQty;
@Column(name = "FI_GENERATE_QTY")
@ApiParam("首检生成数量")
private Double fiGenerateQty;
/********************** 冗余字段 *********************************/
@Transient
@ApiParam(value = "工作中心名称")

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesFiCfg;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-04-02
* @Modify:
**/
@Repository
public interface MesFiCfgRepository extends BaseRepository<MesFiCfg, Long> {
}
Loading…
Cancel
Save