yun-zuoyi
曾贞一 5 years ago
commit ed25a6f7d6

@ -11,6 +11,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>i3plus-pojo-aps</artifactId> <artifactId>i3plus-pojo-aps</artifactId>
<packaging>jar</packaging>
<dependencies> <dependencies>
<dependency> <dependency>

@ -21,5 +21,4 @@ public class GanttCalendarModel {
//private String timeRangeColor; //private String timeRangeColor;
private String eventColor; private String eventColor;
private String name; private String name;
private Long workId;
} }

@ -0,0 +1,10 @@
package cn.estsh.i3plus.pojo.aps.model;
import lombok.Data;
@Data
public class GanttDragModel {
private Long workId;
private Long resId;
private Long targetWorkId;
}

@ -0,0 +1,31 @@
package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.aps.converter.CustomDateDeserializer;
import cn.estsh.i3plus.pojo.aps.converter.CustomDateSerializer;
import cn.estsh.i3plus.pojo.base.common.Pager;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.Api;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-11-22
* @Modify:
**/
@Data
@Api("甘特图分页查询参数")
public class GanttEventRequest {
private Long[] resourceIds;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date begin;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date end;
}

@ -1,43 +0,0 @@
package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.base.common.Pager;
import io.swagger.annotations.Api;
import lombok.Data;
import java.util.List;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-11-22
* @Modify:
**/
@Data
@Api("甘特图分页查询参数")
public class GanttPager extends Pager {
public static class SortData {
// 排序对象
private String field;
// 排序类型1为升序0为降序
private Boolean ascending;
public String getField() {
return field;
}
public void setField(String field) {
this.field = field;
}
public Boolean getAscending() {
return ascending;
}
public void setAscending(Boolean ascending) {
this.ascending = ascending;
}
}
private String filter;
private List<SortData> sorts;
}

@ -0,0 +1,27 @@
package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.aps.converter.CustomDateDeserializer;
import cn.estsh.i3plus.pojo.aps.converter.CustomDateSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import java.util.Date;
import java.util.List;
@Data
public class GanttPlanModel {
private Long resourceId;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date startDate;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date endDate;
private String cls;
//private String timeRangeColor;
private String eventColor;
private String name;
private Long workId;
private List<Long> resIds;
}

@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
/** /**
* @Description : * @Description :
@ -1985,7 +1984,7 @@ public class BlockFormEnumUtil {
} }
private String getJDBCUrlSQLServer(String database,String host,Integer port){ private String getJDBCUrlSQLServer(String database,String host,Integer port){
return "jdbc:sqlserver://" + host + ":" + port + ";database=" + database; return "jdbc:sqlserver://" + host + ":" + port + ";database=" + database+";autoReconnect=true";
} }
} }

@ -223,7 +223,8 @@ public class LacEnumUtil {
public enum PARAM_VALUE_TYPE{ public enum PARAM_VALUE_TYPE{
INTEGER(1,"整数"), INTEGER(1,"整数"),
STRING(2,"字符串"), STRING(2,"字符串"),
FLOAT(3,"浮点"); FLOAT(3,"浮点"),
ORGIN(99,"原始数据");
private int value; private int value;
private String description; private String description;
@ -347,15 +348,17 @@ public class LacEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum LOGICAL_OPERATOR{ public enum LOGICAL_OPERATOR{
OR(10,"或"), OR(10,"或","||"),
AND(20,"与"); AND(20,"与","&&");
private int value; private int value;
private String description; private String description;
private String operator;
LOGICAL_OPERATOR(int value, String description) { LOGICAL_OPERATOR(int value, String description, String operator) {
this.value = value; this.value = value;
this.description = description; this.description = description;
this.operator = operator;
} }
public int getValue() { public int getValue() {
@ -376,6 +379,16 @@ public class LacEnumUtil {
return tmp; return tmp;
} }
public static String valueOfOperator(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].operator;
}
}
return tmp;
}
} }
/** /**
@ -383,19 +396,21 @@ public class LacEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RELATIONAL_OPERATOR{ public enum RELATIONAL_OPERATOR{
GT(10,">"), GT(10,"大于",">"),
LT(20,"<"), LT(20,"小于","<"),
EQ(20,"=="), EQ(30,"等于","=="),
NE(20,"!="), NE(40,"不等于","!="),
GE(20,">="), GE(50,"大于等于",">="),
LE(20,"<="); LE(60,"小于等于","<=");
private int value; private int value;
private String description; private String description;
private String operator;
RELATIONAL_OPERATOR(int value, String description) { RELATIONAL_OPERATOR(int value, String description,String operator) {
this.value = value; this.value = value;
this.description = description; this.description = description;
this.operator = operator;
} }
public int getValue() { public int getValue() {
@ -416,6 +431,16 @@ public class LacEnumUtil {
return tmp; return tmp;
} }
public static RELATIONAL_OPERATOR valueOf(int val) {
RELATIONAL_OPERATOR tmp = EQ;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i];
}
}
return tmp;
}
} }
/** /**

@ -9,6 +9,7 @@ import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
@ -84,6 +85,9 @@ public class LacCommandStackStep extends BaseBean {
@ApiParam(value ="步骤任务列表") @ApiParam(value ="步骤任务列表")
private List<LacCommandStackStepTask> stepTaskList; private List<LacCommandStackStepTask> stepTaskList;
@Transient
@ApiParam(value ="步骤任务检查")
private List<LacTaskCheck> taskCheckList;
public LacCommandStackStep() { public LacCommandStackStep() {
} }

@ -85,10 +85,10 @@ public class LacCommandStackStepTask extends BaseBean {
// @Column(name="STEP_NAME_RDD") // @Column(name="STEP_NAME_RDD")
// @ApiParam(value ="步骤名称") // @ApiParam(value ="步骤名称")
// private String stepNameRdd; // private String stepNameRdd;
//
// @Column(name="STEP_CODE_RDD") @Column(name="STEP_CODE_RDD")
// @ApiParam(value ="步骤代码") @ApiParam(value ="步骤代码")
// private String stepCodeRdd; private String stepCodeRdd;
@Column(name="TASK_ID") @Column(name="TASK_ID")
@ApiParam(value ="任务ID") @ApiParam(value ="任务ID")
@ -99,7 +99,7 @@ public class LacCommandStackStepTask extends BaseBean {
@ApiParam(value ="步骤名称") @ApiParam(value ="步骤名称")
private String taskNameRdd; private String taskNameRdd;
@Column(name="STEP_CODE_RDD") @Column(name="TASK_CODE_RDD")
@ApiParam(value ="任务代码") @ApiParam(value ="任务代码")
private String taskCodeRdd; private String taskCodeRdd;

@ -82,6 +82,7 @@ public class LacSuitTaskParam extends BaseBean {
@Column(name="PARAM_VALUE_TYPE") @Column(name="PARAM_VALUE_TYPE")
@ApiParam(value ="参数值类型") @ApiParam(value ="参数值类型")
@AnnoOutputColumn(refClass = LacEnumUtil.PARAM_VALUE_TYPE.class)
private Integer paramValueType; private Integer paramValueType;
@Column(name="PARAM_DEFAULT_VALUE") @Column(name="PARAM_DEFAULT_VALUE")

@ -15,6 +15,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient;
/** /**
* @Description : * @Description :
@ -97,4 +98,11 @@ public class LacTaskCheck extends BaseBean {
@ApiParam(value ="目标步骤ID") @ApiParam(value ="目标步骤ID")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long targetStepId; private Long targetStepId;
@Column(name="TARGET_STEP_NAME_RDD")
@ApiParam(value ="目标步骤名称")
private String targetStepNameRdd;
@Transient
private String value;
} }

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.model.lac; package cn.estsh.i3plus.pojo.model.lac;
import cn.estsh.i3plus.pojo.lac.bean.LacCommandStackRecord; import cn.estsh.i3plus.pojo.lac.bean.LacCommandStackRecord;
import cn.estsh.i3plus.pojo.lac.bean.LacCommandStackStepTask;
import lombok.Data; import lombok.Data;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -55,9 +56,13 @@ public class LacCommandStackModel {
this.recordId = commandStackRecord.getId(); this.recordId = commandStackRecord.getId();
} }
public Object getTaskRequestParam(String taskCode){ public Object getTaskRequestParam(LacCommandStackStepTask stepTask){
for (Task task : this.getRequest().getTaskList()) { for (Task task : this.getRequest().getTaskList()) {
if(task.getCode().equals(taskCode)){ // 步骤代码为空时匹配所有任务参数
if (task.getStepCode() == null && task.getCode().equals(stepTask.getTaskCodeRdd())) {
return task.getParamList();
} else if (task.getStepCode() != null && task.getStepCode().equals(stepTask.getStepCodeRdd())
&& task.getCode().equals(stepTask.getTaskCodeRdd())) {
return task.getParamList(); return task.getParamList();
} }
} }

@ -15,7 +15,8 @@ import java.util.List;
@Data @Data
public class WmsJobParamModel implements Serializable { public class WmsJobParamModel implements Serializable {
private static final long serialVersionUID = 5784492509251527816L; private static final long serialVersionUID = 5784492509251527816L;
private String organizeCode; private String organizeCode;//工厂代码
private List<String> zonesNoList; private List<String> zonesNoList;//存储区编号
private Integer snType; private Integer snType;//条码类型(虚拟,实物)
private String devOpsEmail;//运维人员邮箱
} }

@ -3,6 +3,7 @@ package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn; import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.BlockSoftSwitchEnumUtil; import cn.estsh.i3plus.pojo.base.enumutil.BlockSoftSwitchEnumUtil;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamAlias;
@ -68,6 +69,7 @@ public class BsSuitCaseParam extends BaseBean {
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.PARAM_VALUE_TYPE.class) @AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.PARAM_VALUE_TYPE.class)
private Integer paramValTypeId; private Integer paramValTypeId;
@JsonIgnore
public int getParamValTypeIdVal() { public int getParamValTypeIdVal() {
return paramValTypeId == null ? NumberUtils.INTEGER_MINUS_ONE : paramValTypeId.intValue(); return paramValTypeId == null ? NumberUtils.INTEGER_MINUS_ONE : paramValTypeId.intValue();
} }
@ -88,6 +90,7 @@ public class BsSuitCaseParam extends BaseBean {
@ApiParam(value = "参数值") @ApiParam(value = "参数值")
private Object paramValue; private Object paramValue;
@JsonIgnore
public String getParamValueStr() { public String getParamValueStr() {
if (paramValue == null) { if (paramValue == null) {
return null; return null;

@ -123,4 +123,13 @@ public class WmsBom extends BaseBean {
this.bomNum = bomNum; this.bomNum = bomNum;
this.itemQty = itemQty; this.itemQty = itemQty;
} }
public WmsBom(String itemPartNo, String itemPartNam, String itemUnit, String bomNum, Double itemQty,String effStartTime) {
this.itemPartNo = itemPartNo;
this.itemPartNam = itemPartNam;
this.itemUnit = itemUnit;
this.bomNum = bomNum;
this.itemQty = itemQty;
this.effStartTime = effStartTime;
}
} }

@ -181,6 +181,23 @@ public class WmsCSFactTrans extends BaseBean {
this.srcZoneNo = srcZoneNo; this.srcZoneNo = srcZoneNo;
this.srcWhNo = srcWhNo; this.srcWhNo = srcWhNo;
} }
public WmsCSFactTrans(String orderNo, String whNo, String zoneNo, String locateNo,Double factQty, String partNo, String partNameRdd, String sn, Double qty, String unit, String srcLocateNo, String srcZoneNo, String srcWhNo,String vendorNo) {
this.orderNo = orderNo;
this.whNo = whNo;
this.zoneNo = zoneNo;
this.locateNo = locateNo;
this.factQty = factQty;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.sn = sn;
this.qty = qty;
this.unit = unit;
this.srcLocateNo = srcLocateNo;
this.srcZoneNo = srcZoneNo;
this.srcWhNo = srcWhNo;
this.vendorNo= vendorNo;
}
public WmsCSFactTrans(String partNo,String partNameRdd,String unit, String orderNo, String organizeCode,double qty) { public WmsCSFactTrans(String partNo,String partNameRdd,String unit, String orderNo, String organizeCode,double qty) {
this.partNo=partNo; this.partNo=partNo;
this.partNameRdd = partNameRdd; this.partNameRdd = partNameRdd;

@ -47,4 +47,8 @@ public class WmsContainerType extends BaseBean {
@ApiParam(value = "是否回收") @ApiParam(value = "是否回收")
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description") @AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description")
private Integer isRecycle; private Integer isRecycle;
@Column(name = "LIMIT_UOM")
@ApiParam(value = "期限单位")
private String limitUom;
} }

@ -210,9 +210,6 @@ public class WmsDocMovementDetails extends BaseBean {
@ApiParam("优先级") @ApiParam("优先级")
private Integer priority; private Integer priority;
@Transient
@ApiParam("优先级描述")
private String priorityStr;
@Transient @Transient
@ApiParam(value = "汇总需求数量", example = "0") @ApiParam(value = "汇总需求数量", example = "0")

@ -62,9 +62,9 @@ public class WmsMoveDetails extends BaseBean {
@ApiParam(value = "处理数量", example = "0") @ApiParam(value = "处理数量", example = "0")
public Double transQty; public Double transQty;
public Double getTransQty() { @Column(name = "HANDLED_QTY", columnDefinition = "decimal(18,8)")
return this.transQty == null ? 0 : this.transQty.doubleValue(); @ApiParam(value = "已处理数量", example = "0")
} public Double handledQty;
@Column(name = "REJECT_QTY", columnDefinition = "decimal(18,8)") @Column(name = "REJECT_QTY", columnDefinition = "decimal(18,8)")
@ApiParam(value = "不合格处理数量", example = "0") @ApiParam(value = "不合格处理数量", example = "0")
@ -198,17 +198,6 @@ public class WmsMoveDetails extends BaseBean {
return isSnapshot == null ? 0 : isSnapshot.intValue(); return isSnapshot == null ? 0 : isSnapshot.intValue();
} }
/* @JSONField(name="fPartNo")
public String getfPartNo() {
return fPartNo;
}
@JSONField(name="fPartName")
public String getfPartName() {
return fPartName;
}*/
public WmsMoveDetails() { public WmsMoveDetails() {
} }
@ -289,4 +278,12 @@ public class WmsMoveDetails extends BaseBean {
this.modifyDatetime = modifyDatetime; this.modifyDatetime = modifyDatetime;
this.modifyUser = modifyUser; this.modifyUser = modifyUser;
} }
public Double getTransQty() {
return this.transQty == null ? 0 : this.transQty.doubleValue();
}
public Double getHandledQtyVal() {
return this.handledQty == null ? 0 : this.handledQty.doubleValue();
}
} }

@ -54,7 +54,7 @@ public class WmsPackageSpec extends BaseBean {
@Column(name = "POCKET_TYPE") @Column(name = "POCKET_TYPE")
@ApiParam(value = "默认容器类型") @ApiParam(value = "容器类型")
private String pocketType; private String pocketType;
@ApiParam(value = "上级规格名称") @ApiParam(value = "上级规格名称")

@ -90,7 +90,7 @@ public class WmsPart extends BaseBean {
private Double pu2su; private Double pu2su;
@Column(name = "SNP", columnDefinition = "decimal(18,8)") @Column(name = "SNP", columnDefinition = "decimal(18,8)")
@ApiParam(value = "标", example = "1") @ApiParam(value = "标包", example = "1")
private Double snp; private Double snp;
@ColumnDefault("2") @ColumnDefault("2")

@ -124,14 +124,18 @@ public class WmsStockQuan extends BaseBean {
private String prodCfgTypeName; private String prodCfgTypeName;
@Transient @Transient
@ApiParam(value = "箱数", example = "-1") @ApiParam(value = "箱数")
private Integer boxQty; private Integer boxQty;
@Transient @Transient
@ApiParam(value = "零件数", example = "-1") @ApiParam(value = "零件数")
private Double partQty; private Double partQty;
@Transient @Transient
@ApiParam(value = "处理中数量")
private Double transQty;
@Transient
@ApiParam(value = "ERP库存地") @ApiParam(value = "ERP库存地")
private String areaNo; private String areaNo;
@ -211,7 +215,7 @@ public class WmsStockQuan extends BaseBean {
public WmsStockQuan(String whNo, String zoneNo, String unit, String partNo, String partName, public WmsStockQuan(String whNo, String zoneNo, String unit, String partNo, String partName,
Double qty, Double failQty, Double holdQty, Double qcQty, Double rinQty, Double freezeQty, Double qty, Double failQty, Double holdQty, Double qcQty, Double rinQty, Double freezeQty,
Double consignQty, Double lockQty,Double sumQty, String prodCfgTypeCode, String prodCfgTypeName, Double scrapQty) { Double consignQty, Double lockQty, Double sumQty, String prodCfgTypeCode, String prodCfgTypeName, Double scrapQty) {
this.whNo = whNo; this.whNo = whNo;
this.zoneNo = zoneNo; this.zoneNo = zoneNo;
this.partNo = partNo; this.partNo = partNo;
@ -281,5 +285,6 @@ public class WmsStockQuan extends BaseBean {
this.consignQty = consignQty; this.consignQty = consignQty;
this.lockQty = lockQty; this.lockQty = lockQty;
this.scrapQty = scrapQty; this.scrapQty = scrapQty;
this.totalQty = qty + failQty + holdQty + qcQty + rinQty + freezeQty + consignQty + lockQty + scrapQty;
} }
} }

@ -229,13 +229,13 @@ public class WmsHqlPack {
DdlPreparedPack.getStringEqualPack(wmsPOMaster.getSrc(), "src", result); DdlPreparedPack.getStringEqualPack(wmsPOMaster.getSrc(), "src", result);
DdlPreparedPack.getStringEqualPack(wmsPOMaster.getIsAsn(), "isAsn", result); DdlPreparedPack.getStringEqualPack(wmsPOMaster.getIsAsn(), "isAsn", result);
DdlPreparedPack.getStringEqualPack(wmsPOMaster.getContainerNo(), "containerNo", result); DdlPreparedPack.getStringEqualPack(wmsPOMaster.getContainerNo(), "containerNo", result);
if (wmsPOMaster.getPriorRC()!=null&&wmsPOMaster.getPriorRC()==WmsEnumUtil.TRUE_OR_FALSE.FALSE.getValue()){ if (wmsPOMaster.getPriorRC() != null && wmsPOMaster.getPriorRC() == WmsEnumUtil.TRUE_OR_FALSE.FALSE.getValue()) {
ArrayList<Integer> numList = new ArrayList<>(); ArrayList<Integer> numList = new ArrayList<>();
numList.add(0); numList.add(0);
numList.add(wmsPOMaster.getPriorRC()); numList.add(wmsPOMaster.getPriorRC());
numList.add(null); numList.add(null);
DdlPreparedPack.getNotOrIsNull(numList, "priorRC", result); DdlPreparedPack.getNotOrIsNull(numList, "priorRC", result);
}else{ } else {
DdlPreparedPack.getNumEqualPack(wmsPOMaster.getPriorRC(), "priorRC", result); DdlPreparedPack.getNumEqualPack(wmsPOMaster.getPriorRC(), "priorRC", result);
} }
@ -923,8 +923,8 @@ public class WmsHqlPack {
DdlPreparedPack.getStringEqualPack(wmsStockSn.getRefSrc(), "refSrc", result); DdlPreparedPack.getStringEqualPack(wmsStockSn.getRefSrc(), "refSrc", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getPrinted(), "printed", result); DdlPreparedPack.getNumEqualPack(wmsStockSn.getPrinted(), "printed", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getSnStatus(), "snStatus", result); DdlPreparedPack.getNumEqualPack(wmsStockSn.getSnStatus(), "snStatus", result);
DdlPreparedPack.getStringLikerPack(wmsStockSn.getPackageNo(),"packageNo",result); DdlPreparedPack.getStringLikerPack(wmsStockSn.getPackageNo(), "packageNo", result);
DdlPreparedPack.getStringLikerPack(wmsStockSn.getQualityDate(),"qualityDate",result); DdlPreparedPack.getStringLikerPack(wmsStockSn.getQualityDate(), "qualityDate", result);
if (wmsStockSn.getSnStatus() == null) { if (wmsStockSn.getSnStatus() == null) {
DdlPreparedPack.getInPackArray(new Integer[]{ DdlPreparedPack.getInPackArray(new Integer[]{
WmsEnumUtil.STOCK_SN_STATUS.QUALITY_CONTROL.getValue(), WmsEnumUtil.STOCK_SN_STATUS.PRE_INSTOCK.getValue(), WmsEnumUtil.STOCK_SN_STATUS.QUALITY_CONTROL.getValue(), WmsEnumUtil.STOCK_SN_STATUS.PRE_INSTOCK.getValue(),
@ -1613,7 +1613,9 @@ public class WmsHqlPack {
DdlPackBean result = new DdlPackBean(); DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringRightLikerPack(wmsStockSn.getSn(), "sn", result); DdlPreparedPack.getStringRightLikerPack(wmsStockSn.getSn(), "sn", result);
DdlPreparedPack.getStringEqualPack(wmsStockSn.getOrganizeCode(), "organizeCode", result); DdlPreparedPack.getStringEqualPack(wmsStockSn.getOrganizeCode(), "organizeCode", result);
DdlPreparedPack.getOrderByPack(new Object[]{2}, new String[]{"createDatetime"}, result); DdlPreparedPack.getOrderByPack(
new Object[]{CommonEnumUtil.FALSE, CommonEnumUtil.FALSE},
new String[]{"sn", "createDatetime"}, result);
return result; return result;
} }
@ -2007,8 +2009,8 @@ public class WmsHqlPack {
DdlPreparedPack.getStringEqualPack(wmsStockSn.getPartNo(), "partNo", result); DdlPreparedPack.getStringEqualPack(wmsStockSn.getPartNo(), "partNo", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getSnStatus(), "snStatus", result); DdlPreparedPack.getNumEqualPack(wmsStockSn.getSnStatus(), "snStatus", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getQcStatus(), "qcStatus", result); DdlPreparedPack.getNumEqualPack(wmsStockSn.getQcStatus(), "qcStatus", result);
DdlPreparedPack.getStringLikerPack(wmsStockSn.getPackageNo(),"packageNo", result); DdlPreparedPack.getStringLikerPack(wmsStockSn.getPackageNo(), "packageNo", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getVendorNo(),"vendorNo", result); DdlPreparedPack.getNumEqualPack(wmsStockSn.getVendorNo(), "vendorNo", result);
DdlPreparedPack.getStringNotNullPack("locateNo", result); DdlPreparedPack.getStringNotNullPack("locateNo", result);
result.setWhereAppend(result.getWhereAppend() + " and locateNo != ''"); result.setWhereAppend(result.getWhereAppend() + " and locateNo != ''");
@ -2618,15 +2620,15 @@ public class WmsHqlPack {
* @param wmsPullTaskMaster * @param wmsPullTaskMaster
* @return * @return
*/ */
public static DdlPackBean packHqlWmsPullTaskMaster(WmsPullTaskMaster wmsPullTaskMaster,String statusList) { public static DdlPackBean packHqlWmsPullTaskMaster(WmsPullTaskMaster wmsPullTaskMaster, String statusList) {
DdlPackBean result = new DdlPackBean(); DdlPackBean result = new DdlPackBean();
List<String> stringList = null; List<String> stringList = null;
List<Integer> integerList = null; List<Integer> integerList = null;
//List<Integer> integers = Arrays.stream(statusList.split(",")).map(Integer::parseInt).collect(Collectors.toList()); //List<Integer> integers = Arrays.stream(statusList.split(",")).map(Integer::parseInt).collect(Collectors.toList());
if(StringUtils.isNotBlank(statusList)){ if (StringUtils.isNotBlank(statusList)) {
stringList = Arrays.asList(statusList.split(",")); stringList = Arrays.asList(statusList.split(","));
integerList = new ArrayList<>(); integerList = new ArrayList<>();
for(String sl : stringList){ for (String sl : stringList) {
integerList.add(Integer.valueOf(sl)); integerList.add(Integer.valueOf(sl));
} }
} }

@ -15,7 +15,8 @@
<groupId>i3plus.pojo</groupId> <groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo</artifactId> <artifactId>i3plus-pojo</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>1.0-DEV-SNAPSHOT</version> <modules> <version>1.0-DEV-SNAPSHOT</version>
<modules>
<module>modules/i3plus-pojo-base</module> <module>modules/i3plus-pojo-base</module>
<module>modules/i3plus-pojo-platform</module> <module>modules/i3plus-pojo-platform</module>
<module>modules/i3plus-pojo-model</module> <module>modules/i3plus-pojo-model</module>

Loading…
Cancel
Save