成品冲销+抛异常方法封装优化

yun-zuoyi
许心洁 6 years ago
parent 88754f9a71
commit 16839f6911

@ -0,0 +1,22 @@
package cn.estsh.i3plus.pojo.model.wms;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* @Description Model
* @Reference
* @Author dragon
* @CreateDate 2019/10/18 1:18
* @Modify
*/
@Data
public class WmsWriteOffModel implements Serializable {
private static final long serialVersionUID = -5490167040159056107L;
private String locateNo;
private List<String> snList;
private List<Map<String, Object>> summaryList;
}

@ -42,7 +42,7 @@ public class WmsMoveMaster extends BaseBean {
*/ */
@Column(name = "ORDER_STATUS") @Column(name = "ORDER_STATUS")
@ApiParam(value = "状态", example = "0") @ApiParam(value = "状态", example = "0")
@AnnoOutputColumn(refClass = WmsEnumUtil.MOVE_ORDER_STATUS.class,refForeignKey = "value",value = "description") @AnnoOutputColumn(refClass = WmsEnumUtil.MOVE_ORDER_STATUS.class, refForeignKey = "value", value = "description")
public Integer orderStatus; public Integer orderStatus;
@Column(name = "REMARK") @Column(name = "REMARK")
@ -58,7 +58,7 @@ public class WmsMoveMaster extends BaseBean {
@ApiParam(value = "错误信息") @ApiParam(value = "错误信息")
private String errorMessage; private String errorMessage;
@Column(name="IS_URGENT") @Column(name = "IS_URGENT")
@ApiParam(value = "是否紧急", example = "0") @ApiParam(value = "是否紧急", example = "0")
public Integer isUrgent; public Integer isUrgent;
@ -68,7 +68,7 @@ public class WmsMoveMaster extends BaseBean {
@Column(name = "BUSI_TYPE_CODE") @Column(name = "BUSI_TYPE_CODE")
@ApiParam(value = "业务类型编码") @ApiParam(value = "业务类型编码")
@AnnoOutputColumn(refClass = WmsEnumUtil.OUT_MOVEMENT_BUSI_TYPE.class,refForeignKey = "value",value = "description") @AnnoOutputColumn(refClass = WmsEnumUtil.OUT_MOVEMENT_BUSI_TYPE.class, refForeignKey = "value", value = "description")
private Integer busiTypeCode; private Integer busiTypeCode;
@Column(name = "REF_ORDER_NO") @Column(name = "REF_ORDER_NO")
@ -81,7 +81,7 @@ public class WmsMoveMaster extends BaseBean {
@Transient @Transient
@ApiParam("状态") @ApiParam("状态")
@AnnoOutputColumn(refClass = WmsEnumUtil.MOVE_ORDER_STATUS.class,refForeignKey = "value",value = "description") @AnnoOutputColumn(refClass = WmsEnumUtil.MOVE_ORDER_STATUS.class, refForeignKey = "value", value = "description")
private Integer itemStatus; private Integer itemStatus;
@Transient @Transient
@ -140,7 +140,7 @@ public class WmsMoveMaster extends BaseBean {
@ApiParam("交易类型名称") @ApiParam("交易类型名称")
private String transTypeName; private String transTypeName;
@Column(name="FIX_ID") @Column(name = "FIX_ID")
@ApiParam(value = "设备编号") @ApiParam(value = "设备编号")
public String fixId; public String fixId;
@ -164,16 +164,17 @@ public class WmsMoveMaster extends BaseBean {
return isSnapshot == null ? 0 : isSnapshot.intValue(); return isSnapshot == null ? 0 : isSnapshot.intValue();
} }
public WmsMoveMaster(){}; public WmsMoveMaster() {
}
public WmsMoveMaster(String orderNo, Integer orderStatus, String transTypeCode, String errorMessage, public WmsMoveMaster(String orderNo, Integer orderStatus, String transTypeCode, String errorMessage,
Integer isUrgent,String carNo, Integer busiTypeCode, String refOrderNo, String refSrc,String partNo, Integer itemStatus,String remark, Integer isUrgent, String carNo, Integer busiTypeCode, String refOrderNo, String refSrc, String partNo, Integer itemStatus, String remark,
String organizeCode,String createDatetime,String createUser,String modifyDatetime,String modifyUser,String fixId, String organizeCode, String createDatetime, String createUser, String modifyDatetime, String modifyUser, String fixId,
Double sumTranQty) { Double sumTranQty) {
this.orderNo = orderNo; this.orderNo = orderNo;
this.orderStatus = orderStatus; this.orderStatus = orderStatus;
this.remark = remark; this.remark = remark;
this.isUrgent=isUrgent; this.isUrgent = isUrgent;
this.transTypeCode = transTypeCode; this.transTypeCode = transTypeCode;
this.errorMessage = errorMessage; this.errorMessage = errorMessage;
this.busiTypeCode = busiTypeCode; this.busiTypeCode = busiTypeCode;
@ -182,18 +183,18 @@ public class WmsMoveMaster extends BaseBean {
this.refOrderNo = refOrderNo; this.refOrderNo = refOrderNo;
this.carNo = carNo; this.carNo = carNo;
this.refSrc = refSrc; this.refSrc = refSrc;
this.organizeCode =organizeCode; this.organizeCode = organizeCode;
this.createDatetime= createDatetime; this.createDatetime = createDatetime;
this.createUser = createUser; this.createUser = createUser;
this.modifyDatetime =modifyDatetime; this.modifyDatetime = modifyDatetime;
this.modifyUser =modifyUser; this.modifyUser = modifyUser;
this.fixId = fixId; this.fixId = fixId;
this.transQty = sumTranQty; this.transQty = sumTranQty;
} }
public WmsMoveMaster(Long id,String orderNo,String organizeCode,String partNo,String partNameRdd,String transTypeCode,String transTypeName,Integer itemStatus, public WmsMoveMaster(Long id, String orderNo, String organizeCode, String partNo, String partNameRdd, String transTypeCode, String transTypeName, Integer itemStatus,
String unit,String srcWhNo,String srcZoneNo,String destWhNo,String destZoneNo,Double transQty, Double rejectQty,String fixId,Integer busiTypeCode,String refSrc, String unit, String srcWhNo, String srcZoneNo, String destWhNo, String destZoneNo, Double transQty, Double rejectQty, String fixId, Integer busiTypeCode, String refSrc,
String createDatetime,String createUser,String modifyUser,String modifyDatetime) { String createDatetime, String createUser, String modifyUser, String modifyDatetime) {
this.id = id; this.id = id;
this.orderNo = orderNo; this.orderNo = orderNo;
this.organizeCode = organizeCode; this.organizeCode = organizeCode;
@ -212,16 +213,17 @@ public class WmsMoveMaster extends BaseBean {
this.fixId = fixId; this.fixId = fixId;
this.busiTypeCode = busiTypeCode; this.busiTypeCode = busiTypeCode;
this.refSrc = refSrc; this.refSrc = refSrc;
this.createDatetime= createDatetime; this.createDatetime = createDatetime;
this.createUser = createUser; this.createUser = createUser;
this.modifyUser =modifyUser; this.modifyUser = modifyUser;
this.modifyDatetime =modifyDatetime; this.modifyDatetime = modifyDatetime;
} }
public Double getTransQty(){ public Double getTransQty() {
return this.transQty == null ? 0 : this.transQty.doubleValue(); return this.transQty == null ? 0 : this.transQty.doubleValue();
} }
public int getBusiTypeCodeVal(){
public int getBusiTypeCodeVal() {
return this.busiTypeCode == null ? 0 : this.busiTypeCode.intValue(); return this.busiTypeCode == null ? 0 : this.busiTypeCode.intValue();
} }
} }

Loading…
Cancel
Save