yun-zuoyi
yunhao.wang 6 years ago
commit 9a895f2e6a

@ -47,8 +47,8 @@ public class DdlPreparedPack {
endDate += " 23:59:59"; endDate += " 23:59:59";
} }
packBean.addColumnQuery(columnName,"and model." + columnName + " >= :m_" + columnName, startDate); packBean.addColumnQuery(columnName," and model." + columnName + " >= :m_" + columnName, startDate);
packBean.addColumnQuery(columnName,"and model." + columnName + " <= :m_" + columnName, endDate); packBean.addColumnQuery(columnName," and model." + columnName + " <= :m_" + columnName, endDate);
} }
/** /**
@ -71,7 +71,7 @@ public class DdlPreparedPack {
String[] time = date.split(","); String[] time = date.split(",");
if (time.length == 1) { if (time.length == 1) {
//只有开始日期,没有结束日期 //只有开始日期,没有结束日期
packBean.addColumnQuery(columnName,"and model." + columnName + " like :m_" + columnName, "%" + time[0] + "%"); packBean.addColumnQuery(columnName," and model." + columnName + " like :m_" + columnName, "%" + time[0] + "%");
} else if (time.length == 2 && ((time[0] != null && time[0].trim().length() > 0) } else if (time.length == 2 && ((time[0] != null && time[0].trim().length() > 0)
|| (time[1] != null & time[1].trim().length() > 0))) { || (time[1] != null & time[1].trim().length() > 0))) {
if (time[0] == null || time[0].trim().length() == 0) { if (time[0] == null || time[0].trim().length() == 0) {
@ -90,16 +90,16 @@ public class DdlPreparedPack {
if (isShowTime && time[1].trim().length() <= 11) { if (isShowTime && time[1].trim().length() <= 11) {
time[1] += " 23:59:59"; time[1] += " 23:59:59";
} }
packBean.addColumnQuery(columnName,"and model." + columnName + " >= :m_" + columnName, time[0]); packBean.addColumnQuery(columnName," and model." + columnName + " >= :m_" + columnName, time[0]);
packBean.addColumnQuery(columnName,"and model." + columnName + " <= :m_" + columnName, time[1]); packBean.addColumnQuery(columnName," and model." + columnName + " <= :m_" + columnName, time[1]);
} else { } else {
if (showTaday) { if (showTaday) {
if (isShowTime) { if (isShowTime) {
packBean.addColumnQuery(columnName,"and model." + columnName + " >= :m_" + columnName, today + " 00:00:00"); packBean.addColumnQuery(columnName," and model." + columnName + " >= :m_" + columnName, today + " 00:00:00");
packBean.addColumnQuery(columnName,"and model." + columnName + " <= :m_" + columnName, today + " 23:59:59"); packBean.addColumnQuery(columnName," and model." + columnName + " <= :m_" + columnName, today + " 23:59:59");
} else { } else {
packBean.addColumnQuery(columnName,"and model." + columnName + " >= :m_" + columnName, today); packBean.addColumnQuery(columnName," and model." + columnName + " >= :m_" + columnName, today);
packBean.addColumnQuery(columnName,"and model." + columnName + " <= :m_" + columnName, today); packBean.addColumnQuery(columnName," and model." + columnName + " <= :m_" + columnName, today);
} }
} }
} }

@ -39,4 +39,8 @@ public class MesAction extends BaseBean {
@Column(name="ACTION_TYPE") @Column(name="ACTION_TYPE")
@ApiParam("动作类型") @ApiParam("动作类型")
private Integer actionType; private Integer actionType;
public int getActionTypeVal() {
return this.actionType == null ? 0 : this.actionType;
}
} }

@ -39,4 +39,9 @@ public class MesActionMethod extends BaseBean {
@Column(name="SEQ") @Column(name="SEQ")
@ApiParam("序号") @ApiParam("序号")
private Integer seq; private Integer seq;
public int getSeqVal() {
return this.seq == null ? 0 : this.seq;
}
} }

@ -72,10 +72,18 @@ public class MesBom extends BaseBean {
@Column(name = "EFF_START_TIME") @Column(name = "EFF_START_TIME")
@ApiParam(value = "生效时间") @ApiParam(value = "生效时间")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date effStartTime; private String effStartTime;
@Column(name = "EFF_END_TIME") @Column(name = "EFF_END_TIME")
@ApiParam(value = "失效时间") @ApiParam(value = "失效时间")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date effEndTime; private String effEndTime;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}
public double getitemQtyVal() {
return this.itemQty == null ? 0.0d : this.itemQty;
}
} }

@ -34,7 +34,7 @@ public class MesDefectRecord extends BaseBean {
@Column(name="PART_NO") @Column(name="PART_NO")
@ApiParam("物料号") @ApiParam("物料号")
private Integer partNo; private String partNo;
@Column(name="DEFECT_CODE") @Column(name="DEFECT_CODE")
@ApiParam("不良代码") @ApiParam("不良代码")
@ -42,17 +42,21 @@ public class MesDefectRecord extends BaseBean {
@Column(name="REPAIR_STATUS") @Column(name="REPAIR_STATUS")
@ApiParam("维修状态") @ApiParam("维修状态")
private Double repairStatus; private Integer repairStatus;
@Column(name="WORK_CENTER_CODE") @Column(name="WORK_CENTER_CODE")
@ApiParam("工作中心代码") @ApiParam("工作中心代码")
private Double workCenterCode; private String workCenterCode;
@Column(name="WORK_CELL_CODE") @Column(name="WORK_CELL_CODE")
@ApiParam("工作单元代码") @ApiParam("工作单元代码")
private Double workCellCode; private String workCellCode;
@Column(name="MEMO") @Column(name="MEMO")
@ApiParam("备注") @ApiParam("备注")
private Double memo; private String memo;
public int getRepairStatusVal() {
return this.repairStatus == null ? 0 : this.repairStatus;
}
} }

@ -39,4 +39,8 @@ public class MesEvent extends BaseBean {
@Column(name="EVENT_TYPE") @Column(name="EVENT_TYPE")
@ApiParam("事件类型") @ApiParam("事件类型")
private Integer eventType; private Integer eventType;
public int getEventTypeVal() {
return this.eventType == null ? 0 : this.eventType;
}
} }

@ -39,4 +39,10 @@ public class MesEventAction extends BaseBean {
@Column(name="SEQ") @Column(name="SEQ")
@ApiParam("序号") @ApiParam("序号")
private Integer seq; private Integer seq;
public int getSeqVal() {
return this.seq == null ? 0 : this.seq;
}
} }

@ -42,4 +42,12 @@ public class MesKeyData extends BaseBean {
@Column(name="LOWER_LIMIT") @Column(name="LOWER_LIMIT")
@ApiParam("数据下限") @ApiParam("数据下限")
private Double lowerLimit; private Double lowerLimit;
public double getUpperLimitVal() {
return this.upperLimit == null ? 0.0d : this.upperLimit;
}
public double getLowerLimitVal() {
return this.lowerLimit == null ? 0.0d : this.lowerLimit;
}
} }

@ -70,4 +70,24 @@ public class MesKpsnRule extends BaseBean {
@Column(name="SUPPLIER_CODE") @Column(name="SUPPLIER_CODE")
@ApiParam("供应商代码") @ApiParam("供应商代码")
private String supplierCode; private String supplierCode;
public int getLengthVal() {
return this.length == null ? 0 : this.length;
}
public int getFrom1Val() {
return this.from1 == null ? 0 : this.from1;
}
public int getTo1Val() {
return this.to1 == null ? 0 : this.to1;
}
public int getFrom2Val() {
return this.from2 == null ? 0 : this.from2;
}
public int getTo2Val() {
return this.to2 == null ? 0 : this.to2;
}
} }

@ -43,4 +43,8 @@ public class MesMethod extends BaseBean {
@Column(name="METHOD_TYPE") @Column(name="METHOD_TYPE")
@ApiParam("方法类型") @ApiParam("方法类型")
private Integer methodType; private Integer methodType;
public int getMethodTypeVal() {
return this.methodType == null ? 0 : this.methodType;
}
} }

@ -53,4 +53,16 @@ public class MesPackSpec extends BaseBean {
@Column(name="SPEC_LEVEL") @Column(name="SPEC_LEVEL")
@ApiParam("规格级别") @ApiParam("规格级别")
private Integer specLevel; private Integer specLevel;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}
public int getIsMixedVal() {
return this.isMixed == null ? 0 : this.isMixed;
}
public int getSpecLevelVal() {
return this.specLevel == null ? 0 : this.specLevel;
}
} }

@ -42,4 +42,8 @@ public class MesPartScheduleBom extends BaseBean {
@Column(name="SCHEDULE_TYPE") @Column(name="SCHEDULE_TYPE")
@ApiParam("排程类型") @ApiParam("排程类型")
private Double scheduleType; private Double scheduleType;
public double getScheduletTypeVal() {
return this.scheduleType == null ? 0.0d : this.scheduleType;
}
} }

@ -82,4 +82,20 @@ public class MesPlanOrder extends BaseBean {
@Column(name="MEMO") @Column(name="MEMO")
@ApiParam("备注") @ApiParam("备注")
private String memo; private String memo;
public double getPlanQtyVal() {
return this.planQty == null ? 0.0d : this.planQty;
}
public double getDecomposeQtyVal() {
return this.decomposeQty == null ? 0.0d : this.decomposeQty;
}
public int getStatusVal() {
return this.status == null ? 0 : this.status;
}
public int getOrderTypeVal() {
return this.orderType == null ? 0 : this.orderType;
}
} }

@ -55,4 +55,16 @@ public class MesProcessBom extends BaseBean {
@Column(name = "IS_CHECK") @Column(name = "IS_CHECK")
@ApiParam(value = "是否检查") @ApiParam(value = "是否检查")
private Integer isCheck; private Integer isCheck;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}
public int getIsRepeatVal() {
return this.isRepeat == null ? 0 : this.isRepeat;
}
public int getIsCheckVal() {
return this.isCheck == null ? 0 : this.isCheck;
}
} }

@ -39,4 +39,8 @@ public class MesProdCfgDetail extends BaseBean {
@Column(name="IS_VIRTUAL") @Column(name="IS_VIRTUAL")
@ApiParam("是否虚零件") @ApiParam("是否虚零件")
private Integer isVirtual; private Integer isVirtual;
public int getIsVirtualVal() {
return this.isVirtual == null ? 0 : this.isVirtual;
}
} }

@ -54,4 +54,12 @@ public class MesProdRouteOptParam extends BaseBean {
@Column(name = "PARAM_VALUE") @Column(name = "PARAM_VALUE")
@ApiParam("工步参数值") @ApiParam("工步参数值")
private String paramValue; private String paramValue;
public long getProdRouteCfgIdVal() {
return this.prodRouteCfgId == null ? 0l : this.prodRouteCfgId;
}
public int getStepSeq() {
return this.stepSeq == null ? 0 : this.stepSeq;
}
} }

@ -103,4 +103,24 @@ public class MesProduceSn extends BaseBean {
@Column(name="PACKAGE_SN") @Column(name="PACKAGE_SN")
@ApiParam("包装条码") @ApiParam("包装条码")
private String packageSn; private String packageSn;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}
public int getQcStatusVal() {
return this.qcStatus == null ? 0 : this.qcStatus;
}
public int getSnStatusVal() {
return this.snStatus == null ? 0 : this.snStatus;
}
public int getPrintCountVal() {
return this.printCount == null ? 0 : this.printCount;
}
public int getPrintStatusVal() {
return this.printStatus == null ? 0 : this.printStatus;
}
} }

@ -45,7 +45,7 @@ public class MesQueueOrder extends BaseBean {
@Column(name="WORK_ORDER_NO") @Column(name="WORK_ORDER_NO")
@ApiParam("生产工单号") @ApiParam("生产工单号")
private Double workOrderNo; private String workOrderNo;
@Column(name="STATUS") @Column(name="STATUS")
@ApiParam("状态") @ApiParam("状态")
@ -53,9 +53,17 @@ public class MesQueueOrder extends BaseBean {
@Column(name="CUST_PROD_LINE_CODE") @Column(name="CUST_PROD_LINE_CODE")
@ApiParam("客户产线代码") @ApiParam("客户产线代码")
private Double custProdLineCode; private String custProdLineCode;
@Column(name="AREA_CODE") @Column(name="AREA_CODE")
@ApiParam("区域代码") @ApiParam("区域代码")
private Double areaCode; private String areaCode;
public int getStatusVal() {
return this.status == null ? 0 : this.status;
}
public double getSeq() {
return this.seq == null ? 0.0d : this.seq;
}
} }

@ -53,9 +53,21 @@ public class MesQueueOrderDetail extends BaseBean {
@Column(name="WORK_TYPE") @Column(name="WORK_TYPE")
@ApiParam("生产类型") @ApiParam("生产类型")
private Double workType; private String workType;
@Column(name="PRODUCE_CATEGORY") @Column(name="PRODUCE_CATEGORY")
@ApiParam("产品类型") @ApiParam("产品类型")
private Double produceCategory; private String produceCategory;
public double getDetailSeqVal() {
return this.detailSeq == null ? 0.0d : this.detailSeq;
}
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}
public int getStatusVal() {
return this.status == null ? 0 : this.status;
}
} }

@ -50,4 +50,12 @@ public class MesRouteProcess extends BaseBean {
@Column(name = "IS_NECESSARY") @Column(name = "IS_NECESSARY")
@ApiParam("是否必须") @ApiParam("是否必须")
private Integer isNecessary; private Integer isNecessary;
public int getSeqVal() {
return this.seq == null ? 0 : this.seq;
}
public int getIsNecessaryVal() {
return this.isNecessary == null ? 0 : this.isNecessary;
}
} }

@ -50,4 +50,8 @@ public class MesRouteProcessStep extends BaseBean {
@Column(name = "PARAM_VALUE") @Column(name = "PARAM_VALUE")
@ApiParam("工步参数值") @ApiParam("工步参数值")
private String paramValue; private String paramValue;
public int getStepSeqVal() {
return this.stepSeq == null ? 0 : this.stepSeq;
}
} }

@ -33,7 +33,7 @@ public class MesWorkOrder extends BaseBean {
@Column(name="PART_NO") @Column(name="PART_NO")
@ApiParam("物料号") @ApiParam("物料号")
private Integer partNo; private String partNo;
@Column(name="PROD_CFG_CODE") @Column(name="PROD_CFG_CODE")
@ApiParam("产品配置代码") @ApiParam("产品配置代码")
@ -110,4 +110,32 @@ public class MesWorkOrder extends BaseBean {
@Column(name="MEMO") @Column(name="MEMO")
@ApiParam("备注") @ApiParam("备注")
private String memo; private String memo;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}
public double getCompleteQtyVal() {
return this.completeQty == null ? 0.0d : this.completeQty;
}
public double getRepairQtyVal() {
return this.repairQty == null ? 0.0d : this.repairQty;
}
public double getScrapQtyVal() {
return this.scrapQty == null ? 0.0d : this.scrapQty;
}
public double getSeqVal() {
return this.seq == null ? 0.0d : this.seq;
}
public int getWorkOrderStatusVal() {
return this.workOrderStatus == null ? 0 : this.workOrderStatus;
}
public int getWorkOrderTypeVal() {
return this.workOrderType == null ? 0 : this.workOrderType;
}
} }

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

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

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

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

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

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

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

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

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

@ -413,16 +413,16 @@ public class WmsHqlPack {
* @param wmsOpType * @param wmsOpType
* @return * @return
*/ */
public static String packHqlWmsOpType(WmsOpType wmsOpType) { public static DdlPackBean packHqlWmsOpType(WmsOpType wmsOpType) {
StringBuffer result = new StringBuffer(); DdlPackBean result = new DdlPackBean();
HqlPack.getStringEqualPack(wmsOpType.getOpTypeCode(), "opTypeCode", result); DdlPreparedPack.getStringEqualPack(wmsOpType.getOpTypeCode(), "opTypeCode", result);
HqlPack.getStringLikerPack(wmsOpType.getOpTypeName(), "opTypeName", result); DdlPreparedPack.getStringLikerPack(wmsOpType.getOpTypeName(), "opTypeName", result);
HqlPack.getNumEqualPack(wmsOpType.getSeq(), "seq", result); DdlPreparedPack.getNumEqualPack(wmsOpType.getSeq(), "seq", result);
getStringBuilderPack(wmsOpType, result); getStringBuilderPack(wmsOpType, result);
return result.toString(); return result;
} }
/** /**
@ -462,15 +462,15 @@ public class WmsHqlPack {
return result.toString(); return result.toString();
} }
public static String packHqlWmsOpTypeUnique(WmsOpType wmsOpType) { public static DdlPackBean packHqlWmsOpTypeUnique(WmsOpType wmsOpType) {
StringBuffer result = new StringBuffer(); DdlPackBean result = new DdlPackBean();
HqlPack.getStringEqualPack(wmsOpType.getOpTypeCode(), "opTypeCode", result); DdlPreparedPack.getStringEqualPack(wmsOpType.getOpTypeCode(), "opTypeCode", result);
HqlPack.getStringLikerPack(wmsOpType.getOpTypeName(), "opTypeName", result); DdlPreparedPack.getStringLikerPack(wmsOpType.getOpTypeName(), "opTypeName", result);
getStringBuilderPack(wmsOpType, result); getStringBuilderPack(wmsOpType, result);
return result.toString(); return result;
} }
/** /**
@ -1431,13 +1431,13 @@ public class WmsHqlPack {
* *
* @return * @return
*/ */
public static String packHqlWmsDataAuth(WmsDataAuth dataAuth, List<String> roleIds) { public static DdlPackBean packHqlWmsDataAuth(WmsDataAuth dataAuth, List<String> roleIds) {
StringBuffer result = new StringBuffer(); DdlPackBean result = new DdlPackBean();
HqlPack.getStringEqualPack(dataAuth.getDataObj(), "dataObj", result); DdlPreparedPack.getStringEqualPack(dataAuth.getDataObj(), "dataObj", result);
String data = String.join(",", roleIds); String data = String.join(",", roleIds);
HqlPack.getInPackString(data, "roleCode", result); DdlPreparedPack.getInPack(data, "roleCode", result);
getStringBuilderPack(new WmsDataAuth(), result); getStringBuilderPack(new WmsDataAuth(), result);
return result.toString(); return result;
} }
/** /**
@ -1446,8 +1446,8 @@ public class WmsHqlPack {
* @param groupDataAuth * @param groupDataAuth
* @return * @return
*/ */
public static String packHqlWmsTaskDetail(Map<String, List<WmsDataAuth>> groupDataAuth) { public static DdlPackBean packHqlWmsTaskDetail(Map<String, List<WmsDataAuth>> groupDataAuth) {
StringBuffer result = new StringBuffer(); DdlPackBean result = new DdlPackBean();
Set<Map.Entry<String, List<WmsDataAuth>>> entries = groupDataAuth.entrySet(); Set<Map.Entry<String, List<WmsDataAuth>>> entries = groupDataAuth.entrySet();
//拼sql //拼sql
entries.stream().filter(o -> !Strings.isNullOrEmpty(o.getKey())).forEach(o -> { entries.stream().filter(o -> !Strings.isNullOrEmpty(o.getKey())).forEach(o -> {
@ -1458,25 +1458,25 @@ public class WmsHqlPack {
List<Map> mapList = JSONObject.parseArray(data, Map.class); List<Map> mapList = JSONObject.parseArray(data, Map.class);
if (StringUtils.equalsIgnoreCase(WmsEnumUtil.DATA_OBJ_TYPE.WAREHOUSE.getValue() + "", o.getKey())) { if (StringUtils.equalsIgnoreCase(WmsEnumUtil.DATA_OBJ_TYPE.WAREHOUSE.getValue() + "", o.getKey())) {
for (Map whNoItem : mapList) { for (Map whNoItem : mapList) {
HqlPack.getInOrPackString(whNoItem.get("WH_CODE").toString(), "destWhNo", result); DdlPreparedPack.getInOrPackString(whNoItem.get("WH_CODE").toString(), "destWhNo", result);
} }
} else if (StringUtils.equalsIgnoreCase(WmsEnumUtil.DATA_OBJ_TYPE.LOCATE.getValue() + "", o.getKey())) { } else if (StringUtils.equalsIgnoreCase(WmsEnumUtil.DATA_OBJ_TYPE.LOCATE.getValue() + "", o.getKey())) {
for (Map locateNoItem : mapList) { for (Map locateNoItem : mapList) {
HqlPack.getInOrPackString(locateNoItem.get("LOCATE_NO").toString(), "destLocateNo", result); DdlPreparedPack.getInOrPackString(locateNoItem.get("LOCATE_NO").toString(), "destLocateNo", result);
} }
} else if (StringUtils.equalsIgnoreCase(WmsEnumUtil.DATA_OBJ_TYPE.ZONE.getValue() + "", o.getKey())) { } else if (StringUtils.equalsIgnoreCase(WmsEnumUtil.DATA_OBJ_TYPE.ZONE.getValue() + "", o.getKey())) {
for (Map zoneNoItem : mapList) { for (Map zoneNoItem : mapList) {
HqlPack.getInOrPackString(zoneNoItem.get("ZONE_CODE").toString(), "destZoneNo", result); DdlPreparedPack.getInOrPackString(zoneNoItem.get("ZONE_CODE").toString(), "destZoneNo", result);
} }
} else if (StringUtils.equalsIgnoreCase(WmsEnumUtil.DATA_OBJ_TYPE.MATERIAL.getValue() + "", o.getKey())) { } else if (StringUtils.equalsIgnoreCase(WmsEnumUtil.DATA_OBJ_TYPE.MATERIAL.getValue() + "", o.getKey())) {
for (Map zoneNoItem : mapList) { for (Map zoneNoItem : mapList) {
HqlPack.getInOrPackString(zoneNoItem.get("PART_NO").toString(), "partNo", result); DdlPreparedPack.getInOrPackString(zoneNoItem.get("PART_NO").toString(), "partNo", result);
} }
} }
} }
}); });
getStringBuilderPack(new WmsDataAuth(), result); getStringBuilderPack(new WmsDataAuth(), result);
return result.toString(); return result;
} }
/** /**
@ -1486,14 +1486,17 @@ public class WmsHqlPack {
* @param vals * @param vals
* @return * @return
*/ */
public static String packHqlAndIn(WmsTaskInfo bean, String columnName, List<String> vals) { public static DdlPackBean packHqlAndIn(WmsTaskInfo bean, String columnName, List<String> vals) {
StringBuffer result = new StringBuffer(); DdlPackBean packBean = new DdlPackBean();
String data = String.join(",", vals); String data = String.join(",", vals);
HqlPack.getInPackString(data, columnName, result); DdlPreparedPack.getInPack(data, columnName, packBean);
HqlPack.getStringRightLikerPack(bean.getOrderNo(), "orderNo", result); DdlPreparedPack.getStringRightLikerPack(bean.getOrderNo(), "orderNo", packBean);
HqlPack.getNumNOEqualPack(bean.getTaskStatus(), "taskStatus", result); DdlPreparedPack.getNumNOEqualPack(bean.getTaskStatus(), "taskStatus", packBean);
getStringBuilderPack(bean, result);
return result.toString(); getStringBuilderPack(bean, packBean);
DdlPreparedPack.getOrderByPack(new Object[]{2}, new String[]{"createDatetime"}, packBean);
return packBean;
} }
/** /**

Loading…
Cancel
Save