Merge branches 'dev' and 'test' of http://git.estsh.com/i3-IMPP/i3plus-pojo into test

yun-zuoyi
wei.peng 6 years ago
commit a4016dc911

@ -193,10 +193,10 @@ public class WmsEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ORDER_DETAILS_STATUS {
CREATE(10, "N", "创建"),
RECEIPTED(20, "R", "已完成"),
CANCEL(30, "C", "行取消"),
PRINTED(40, "C", "已打印");
CREATE(10, "CREATE", "创建"),
RECEIPTED(20, "FINISHED", "已完成"),
CANCEL(30, "CANCLE", "行取消"),
PRINTED(40, "PRINTED", "已打印");
private int value;
private String code;

@ -23,7 +23,7 @@ public class SapBase {
private String actusr = "导入";
@ApiParam(value = "SID", example = "-1")
private String sid = ( Math.abs(new Random().nextInt())+ "");
private String sid = "";
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@ApiParam(value = "接收数据日期", example = "-1")

@ -60,4 +60,17 @@ public class WmsCSAdjustRange extends BaseBean {
@Transient
@ApiParam("单位")
public String unit;
public WmsCSAdjustRange(){}
public WmsCSAdjustRange(String orderNo, Integer item, Integer isAdjust, String partNo, String partNameRdd, String zoneNo, String locateNo, String unit,String organizeCode) {
this.orderNo = orderNo;
this.item = item;
this.isAdjust = isAdjust;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.zoneNo = zoneNo;
this.locateNo = locateNo;
this.unit = unit;
this.organizeCode = organizeCode;
}
}

@ -27,6 +27,7 @@ import javax.persistence.Table;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api(value="线边库物料信息",description = "线边库物料信息")
@Deprecated
public class WmsLineLocatePart extends BaseBean {
@Column(name="LOCATE_NO")

@ -30,125 +30,130 @@ import javax.persistence.*;
})
@Api("PO订单明细信息")
public class WmsPOMasterDetails extends BaseBean {
private static final long serialVersionUID = -677572691809622129L;
@Column(name = "PART_NO")
@ApiParam("物料编码")
public String partNo;
private String partNo;
@Column(name = "BOX_QTY" )
@Column(name = "BOX_QTY")
@ColumnDefault("0")
@ApiParam(value ="箱数", example = "0")
public Integer boxQty;
@ApiParam(value = "箱数", example = "0")
private Integer boxQty;
@Column(name = "PART_NAME_RDD")
@ApiParam("物料名称")
public String partNameRdd;
private String partNameRdd;
@Column(name = "ITEM")
@ApiParam("行号")
public Integer item;
private Integer item;
@Column(name = "QTY")
@ColumnDefault("0")
@ApiParam(value = "需求数量", example = "0")
public Double qty;
private Double qty;
public Double getQty(){ return this.qty == null ? 0 : this.qty; }
// 不可能为 null 值
// Rock.Yu at 2019-06-22 20:03
//private Double getQty(){ return this.qty == null ? new Double(0) : this.qty; }
@Column(name = "UNIT")
@ApiParam("单位")
public String unit;
private String unit;
@Column(name = "ORDER_NO")
@ApiParam("订单号")
public String orderNo;
private String orderNo;
@Column(name = "PRINT_QTY")
@ColumnDefault("0")
@ApiParam(value = "条码打印数量", example = "0")
public Double printQty;
private Double printQty;
public Double getPrintQty(){ return this.printQty == null ? 0 : this.printQty; }
//private Double getPrintQty(){ return this.printQty == null ? new Double(0) : this.printQty; }
@Column(name = "RC_QTY")
@ColumnDefault("0")
@ApiParam(value = "收货数量", example = "0")
public Double rcQty;
private Double rcQty;
public Double getRcQty(){ return this.rcQty == null ? 0 : this.rcQty; }
//private Double getRcQty(){ return this.rcQty == null ? new Double(0) : this.rcQty; }
@Column(name = "PASS_QTY")
@ColumnDefault("0")
@ApiParam(value = "质检合格数量", example = "0")
public Double passQty;
private Double passQty;
public Double getPassQty(){ return this.passQty == null ? 0 : this.passQty; }
//private Double getPassQty(){ return this.passQty == null ? new Double(0) : this.passQty; }
@Column(name = "NG_QTY")
@ColumnDefault("0")
@ApiParam(value = "质检不合格数量", example = "0")
public Double ngQty;
private Double ngQty;
public Double getNgQty(){ return this.ngQty == null ? 0 : this.ngQty; }
//private Double getNgQty(){ return this.ngQty == null ? new Double(0) : this.ngQty; }
@Column(name = "PLAN_DATE")
@ApiParam("计划交货日期")
public String planDate;
private String planDate;
@Column(name = "PLAN_TIME")
@ApiParam("计划交货时间")
public String planTime;
private String planTime;
@Column(name = "ERP_AREA_NO")
@ApiParam("默认收货库存地")
public String erpAreaNo;
private String erpAreaNo;
/**
* :10 N=,20 C=
*/
@Column(name = "ITEM_STATUS")
@ApiParam("状态")
public Integer itemStatus;
private Integer itemStatus;
@Column(name = "SNP")
@ApiParam("标准包装")
public Double snp;
private Double snp;
/**
* :0=,1=
*/
@Column(name = "IS_FREE")
@ApiParam(value = "是否免费", example = "1")
public Integer isFree;
private Integer isFree;
@Transient
@ApiParam(value = "散件收货输入数量", example = "0")
public Double inputRcQty;
private Double inputRcQty;
@Transient
@ApiParam(value = "供应商批次")
public String dateCode;
private String dateCode;
@Transient
@ApiParam("前端表格编辑使用")
public Boolean isSet = false;
private Boolean isSet = false;
@Transient
@ApiParam("供应商批次字段是否可编辑")
public Boolean isDateCodeEdit = true;
private Boolean isDateCodeEdit = true;
public Double getInputRcQty(){ return this.inputRcQty == null ? 0 : this.inputRcQty; }
//private Double getInputRcQty(){ return this.inputRcQty == null ? new Double(0) : this.inputRcQty; }
@Version
@Column(name = "LOCK_VERSION")
@ApiParam(value = "乐观锁", example = "1")
public transient int lockVersion;
private transient int lockVersion;
@Transient
@ApiParam("PO条码总箱数")
public Integer totalBoxes;
private Integer totalBoxes;
@Transient
@ApiParam("差异")
public Double difference;
private Double difference;
}

@ -202,8 +202,17 @@ public class WmsStockSn extends BaseBean {
@ApiParam(value = "工厂名称")
public String organizeName;
@Transient
@ApiParam(value = "物料数量总和")
public Double sumPartQty;
@Transient
@ApiParam(value = "条码数量总和")
public Long snCount;
public WmsStockSn(){}
public WmsStockSn(String partNo){
this.partNo = partNo;
}
@ -213,4 +222,10 @@ public class WmsStockSn extends BaseBean {
}
public Double getInputNCQty(){return inputNCQty == null ? 0L : this.inputNCQty.doubleValue();}
public WmsStockSn( Long snCount, Double sumPartQty,String locateNo) {
this.snCount = snCount;
this.sumPartQty = sumPartQty;
this.locateNo = locateNo;
}
}

@ -77,8 +77,14 @@ public class WmsHqlPack {
DdlPackBean result = new DdlPackBean();
//查询参数封装
DdlPreparedPack.getStringEqualPack(wmsDocMovementDetails.getOrderNo(), "orderNo", result);
DdlPreparedPack.getStringLikerPack(wmsDocMovementDetails.getOrderNo(), "orderNo", result);
DdlPreparedPack.getNumEqualPack(wmsDocMovementDetails.getItemStatus(), "itemStatus", result);
DdlPreparedPack.getStringLikerPack(wmsDocMovementDetails.getPartNo(), "partNo", result);
DdlPreparedPack.getStringLikerPack(wmsDocMovementDetails.getDestZoneNo(), "destZoneNo", result);
DdlPreparedPack.getStringLikerPack(wmsDocMovementDetails.getDestLocateNo(), "destLocateNo", result);
DdlPreparedPack.timeBuilder(wmsDocMovementDetails.getCreateDateTimeStart(),
wmsDocMovementDetails.getCreateDateTimeEnd(),"createDatetime",result,true);
getStringBuilderPack(wmsDocMovementDetails, result);
return result;
@ -1739,7 +1745,7 @@ public class WmsHqlPack {
//查询参数封装
DdlPreparedPack.getInPackArray(new Object[]{WmsEnumUtil.CS_ORDER_STATUS.STARTING_INVENTORY.getValue(),
WmsEnumUtil.CS_ORDER_STATUS.IN_INVENTORY.getValue()}, "orderStatus", result);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue(), "isPart", result);
DdlPreparedPack.getNumEqualPack(wmsCSOrderMaster.getIsPart(), "isPart", result);
DdlPreparedPack.getStringEqualPack(wmsCSOrderMaster.getOrderNo(), "orderNo", result);
getStringBuilderPack(wmsCSOrderMaster, result);

Loading…
Cancel
Save