yun-zuoyi
crish 6 years ago
commit 47ab4c7a45

@ -13,5 +13,11 @@
<artifactId>i3plus-pojo-andon</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-base</artifactId>
</dependency>
</dependencies>
</project>

@ -0,0 +1,38 @@
package cn.estsh.i3plus.pojo.andon.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : silliter.yuan
* @CreateDate : 2019-05-10 17:16
* @Modify:
**/
@Data
@Entity
@Table(name="ANDON_ALARM_TYPE")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api("安灯类型")
public class AndonAlarmType extends BaseBean {
@Column(name = "ALARM_CODE")
@ApiParam(value = "安灯类型代码")
private String alarmCode;
@Column(name = "ALARM_NAME")
@ApiParam(value = "安灯类型名称")
private String alarmName;
}

@ -0,0 +1,74 @@
package cn.estsh.i3plus.pojo.andon.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description : ANDON_PLC
* @Reference :
* @Author : hansen.ke
* @CreateDate : 2019-05-10 17:32
* @Modify:
**/
@Data
@Entity
@Table(name="ANDON_PLC")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api("安灯PLC控制")
public class AndonPLC extends BaseBean {
@Column(name = "WORK_CENTER_CODE")
@ApiParam(value = "工作中心代码")
private String workCenterCode;
@Column(name = "WORK_CENTER_NAME")
@ApiParam(value = "工作中心名称")
private String workCenterName;
@Column(name = "WORK_CELL_CODE")
@ApiParam(value = "工作单元代码")
private String workCellCode;
@Column(name = "WORK_CELL_NAME")
@ApiParam(value = "工作单元名称")
private String workCellName;
@Column(name = "NODE_CODE")
@ApiParam(value = "控制节点代码")
private String nodeCode;
@Column(name = "NODE_IP")
@ApiParam(value = "IP地址")
private String nodeIP;
@Column(name = "CHANNEL_NAME")
@ApiParam(value = "通道名称")
private String channelName;
@Column(name = "TAG_NAME")
@ApiParam(value = "标签名称")
private String tagName;
@Column(name = "TAG_ADDRESS")
@ApiParam(value = "标签地址")
private String tagAddress;
@Column(name = "TAG_TYPE")
@ApiParam(value = "标签类型")
private String tagType;
@Column(name = "GROUP_NO")
@ApiParam(value = "分组号")
private String groupNo;
}

@ -0,0 +1,82 @@
package cn.estsh.i3plus.pojo.andon.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description : ANDON_PLC
* @Reference :
* @Author : hansen.ke
* @CreateDate : 2019-05-10 17:58
* @Modify:
**/
@Data
@Entity
@Table(name="ANDON_PLC_RECORD")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api("安灯PLC监控记录")
public class AndonPLCRecord extends BaseBean {
@Column(name = "WORK_CENTER_CODE")
@ApiParam(value = "工作中心代码")
private String workCenterCode;
@Column(name = "WORK_CENTER_NAME")
@ApiParam(value = "工作中心名称")
private String workCenterName;
@Column(name = "WORK_CELL_CODE")
@ApiParam(value = "工作单元代码")
private String workCellCode;
@Column(name = "WORK_CELL_NAME")
@ApiParam(value = "工作单元名称")
private String workCellName;
@Column(name = "NODE_CODE")
@ApiParam(value = "控制节点代码")
private String nodeCode;
@Column(name = "NODE_IP")
@ApiParam(value = "IP地址")
private String nodeIP;
@Column(name = "CHANNEL_NAME")
@ApiParam(value = "通道名称")
private String channelName;
@Column(name = "TAG_NAME")
@ApiParam(value = "标签名称")
private String tagName;
@Column(name = "TAG_ADDRESS")
@ApiParam(value = "标签地址")
private String tagAddress;
@Column(name = "TAG_TYPE")
@ApiParam(value = "标签类型")
private String tagType;
@Column(name = "GROUP_NO")
@ApiParam(value = "分组号")
private String groupNo;
@Column(name = "TAG_VALUE")
@ApiParam(value = "标签数值")
private String tagValue;
@Column(name = "TAG_POINT")
@ApiParam(value = "传递方向")
private String tagPoint;
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.andon.repository;
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmType;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import org.springframework.stereotype.Repository;
/**
* @Description :()
* @Reference :
* @Author : silliter.yuan
* @CreateDate : 2019-05-10 17:27
* @Modify:
**/
@Repository
public interface IAndonAlarmTypeRepository extends BaseRepository<AndonAlarmType,Long> {
}

@ -0,0 +1,11 @@
package cn.estsh.i3plus.pojo.andon.sqlpack;
/**
* @Description :
* @Reference :
* @Author : silliter.yuan
* @CreateDate : 2019-05-10 10:45
* @Modify:
**/
public class AndonHqlPack {
}

@ -139,17 +139,17 @@ public class WmsEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MASTER_ORDER_STATUS {
CREATE(10, "CREATE","新建"),
RECEIPT(20, "RECEIPT","处理中"),
RECEIPT_FINISH(30, "RECEIPT_FINISH","已完成"),
CLOSED(40, "CLOSED","已关闭"),
CANCELLED(50, "CANCELLED","已取消");
CREATE(10, "CREATE", "新建"),
RECEIPT(20, "RECEIPT", "处理中"),
RECEIPT_FINISH(30, "RECEIPT_FINISH", "已完成"),
CLOSED(40, "CLOSED", "已关闭"),
CANCELLED(50, "CANCELLED", "已取消");
private int value;
private String code;
private String description;
MASTER_ORDER_STATUS(int value,String code, String description) {
MASTER_ORDER_STATUS(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
@ -670,6 +670,40 @@ public class WmsEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MODULE_METHOD_NAME {
EXECUTE("execute", "执行方法"),
GETOPTIONS("getOptions", "流程初始化方法"),
PROMPT("prompt", "初始化方法"),
GETLIST("getList", "获取列表数据"),
DOCOMPLETE("doComplete", "执行完成方法"),
SHOWINFORMATION("showInformation", "回显方法"),
INSTALL("install", "安装组件"),
UNINSTALL("unInstall", "卸载组件");
private String value;
private String description;
MODULE_METHOD_NAME(String value, String description) {
this.value = value;
this.description = description;
}
public String getCode() {
return value;
}
public String getDescription() {
return description;
}
public String getValue() {
return value;
}
}
/**
*
@ -1456,6 +1490,16 @@ public class WmsEnumUtil {
}
return tmp;
}
public static COMPONENT_TYPE switchGetValue(int val) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i];
}
}
return null;
}
}
/**
@ -2109,11 +2153,11 @@ public class WmsEnumUtil {
* 10=20=30=40=JOB50=
*/
public enum SCRIPT_TYPE {
MODUAL(10,"Modual","组件脚本"),
FORM(20,"Form","表单脚本"),
REPORT(30,"Report","报表脚本"),
JOB(40,"Job","JOB脚本"),
OTHER(50,"Other","其他脚本");
MODUAL(10, "Modual", "组件脚本"),
FORM(20, "Form", "表单脚本"),
REPORT(30, "Report", "报表脚本"),
JOB(40, "Job", "JOB脚本"),
OTHER(50, "Other", "其他脚本");
private String description;
private int value;
@ -2147,9 +2191,9 @@ public class WmsEnumUtil {
* 10=Groovy, 20=Jython, 30=JavaScript, 40=Scala, 50=JRuby
*/
public enum LANGUAGE_TYPE {
GROOVY(1,"Groovy", 10),
PYTHON(2,"Python", 20),
JS(3,"JavaScript", 30);
GROOVY(1, "Groovy", 10),
PYTHON(2, "Python", 20),
JS(3, "JavaScript", 30);
// 下面这2种语言没人会写暂不支持
//SCALA(40,"scala"),
//JRUBY(50,"jruby");
@ -2194,9 +2238,9 @@ public class WmsEnumUtil {
* 2.BUSI
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WMS_CONFIG_TYPE{
public enum WMS_CONFIG_TYPE {
SYSTEM(10,"系统参数","系统参数"),
SYSTEM(10, "系统参数", "系统参数"),
BUSI(20, "业务参数", "业务参数");
private int value;

@ -0,0 +1,25 @@
package cn.estsh.i3plus.pojo.sweb.modelbean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.Collections;
import java.util.List;
/**
* @Description :
* @Reference :
* @Author : jack.lv
* @CreateDate : 2019-04-02 13:13
* @Modify:
**/
@Data
public class SwebPOForPubListResultModelV2 extends BaseBean {
@ApiParam(value = "拆分请求时间数量列表", example = "1")
private List<String> reqTimeList = Collections.EMPTY_LIST;
@ApiParam(value = "列表", example = "1")
private List<SwebPOForPubListResultItemModel> list = Collections.EMPTY_LIST;
}

@ -121,7 +121,6 @@ public class SwebHqlPack {
public static DdlPackBean getPurchaseOrderDetailsPublishListStatusWhereHql(SwebPurchaseOrderDetails details) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(details.getOrderNo(), "orderNo", result);
DdlPreparedPack.getStringEqualPack(details.getVendorCode(), "vendorCode", result);
DdlPreparedPack.getStringEqualPack(details.getPartNo(), "partNo", result);
DdlPreparedPack.getNumEqualPack(details.getOrderType(), "orderType", result);

@ -49,33 +49,33 @@ public class WmsActionGroup extends BaseBean {
@ApiParam(value = "初始化组件编号", example = "0")
private Long initAmId;
@Transient
@ApiParam(value = "初始化组件名称")
private String initAmName;
// @Transient
// @ApiParam(value = "初始化组件名称")
// private String initAmName;
@Column(name = "DETAILS_AM_ID")
@ApiParam(value = "明细处理组件编号", example = "0")
private Long detailsAmId;
@Transient
@ApiParam(value = "明细处理组件名称")
private String detailsAmName;
// @Transient
// @ApiParam(value = "明细处理组件名称")
// private String detailsAmName;
@Column(name = "SUBMIT_AM_ID")
@ApiParam(value = "提交组件编号", example = "0")
private Long submitAmId;
@Transient
@ApiParam(value = "提交组件名称")
private String submitAmName;
// @Transient
// @ApiParam(value = "提交组件名称")
// private String submitAmName;
@Column(name = "END_AM_ID")
@ApiParam(value = "结束组件编号", example = "0")
private Long endAmId;
@Transient
@ApiParam(value = "结束组件名称")
private String endAmName;
//
// @Transient
// @ApiParam(value = "结束组件名称")
// private String endAmName;
// 1=true, 2 = false
@Column(name = "AUTO_INIT")
@ -108,20 +108,4 @@ public class WmsActionGroup extends BaseBean {
public WmsActionGroup() {
}
public WmsActionGroup(String agNameE, String agDescE, String agNameC, String agDescC, Integer autoInit, Long initAmId, String initAmName, Long detailsAmId, String detailsAmName, Long submitAmId, String submitAmName, Long endAmId, String endAmName) {
this.agNameE = agNameE;
this.agDescE = agDescE;
this.agNameC = agNameC;
this.agDescC = agDescC;
this.autoInit = autoInit;
this.initAmId = initAmId;
this.initAmName = initAmName;
this.detailsAmId = detailsAmId;
this.detailsAmName = detailsAmName;
this.submitAmId = submitAmId;
this.submitAmName = submitAmName;
this.endAmId = endAmId;
this.endAmName = endAmName;
}
}

@ -170,6 +170,18 @@ public class WmsDocMovementDetails extends BaseBean {
@Transient
public Double inputMoveQty;
@Transient
@ApiParam(value ="标准包装",example = "1")
private Double snp;
@Transient
@ApiParam(value ="条码总数量",example = "1")
private Double detailsSnCount;
@Transient
@ApiParam(value ="余数",example = "1")
private Double restQty;
public String getRecommondLot() {
return recommondLot == null ? "无" : this.recommondLot;
}

@ -25,13 +25,6 @@ import java.util.stream.Collectors;
**/
public class WmsHqlPack {
public static String packInParams(String colnumName, String[] params) {
StringBuffer sb = new StringBuffer();
HqlPack.getInPackString(String.join(",", params), colnumName, sb);
HqlPack.getNumEqualPack(WmsEnumUtil.IS_PART.IS_ADJUST.getValue(), "snControl", sb);
return sb.toString();
}
/**
*
*
@ -54,27 +47,6 @@ public class WmsHqlPack {
}
/**
*
*
* @param bean
* @param hqlStr
* @return
*/
public static String getStringBuilderPack(BaseBean bean, StringBuffer hqlStr) {
// 判断工厂代码是否为空
if (StringUtils.isNotBlank(bean.getOrganizeCode())) {
HqlPack.getStringEqualPack(bean.getOrganizeCode(), "organizeCode", hqlStr);
}
// 封装有效状态和删除状态
HqlPack.getNumEqualPack(bean.getIsValid(), "isValid", hqlStr);
HqlPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(), "isDeleted", hqlStr);
return hqlStr.toString();
}
/**
* PO
*
* @param wmsPOMasterDetails
@ -202,14 +174,14 @@ public class WmsHqlPack {
* @param routingCode
* @return
*/
public static String packHqlWmsRoutingChildren(String routingCode) {
StringBuffer result = new StringBuffer();
public static DdlPackBean packHqlWmsRoutingChildren(String routingCode) {
DdlPackBean result = new DdlPackBean();
HqlPack.getStringEqualPack(routingCode, "routingCode", result);
HqlPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(),
DdlPreparedPack.getStringEqualPack(routingCode, "routingCode", result);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(),
"isDeleted", result);
return result.toString();
return result;
}
@ -219,14 +191,14 @@ public class WmsHqlPack {
* @param wmsRoutingMaster
* @return
*/
public static String packHqlWmsRoutingMaster(WmsRoutingMaster wmsRoutingMaster) {
StringBuffer result = new StringBuffer();
HqlPack.getStringLikerPack(wmsRoutingMaster.getRoutingCode(), "routingCode", result);
HqlPack.getStringLikerPack(wmsRoutingMaster.getRoutingName(), "routingName", result);
public static DdlPackBean packHqlWmsRoutingMaster(WmsRoutingMaster wmsRoutingMaster) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringLikerPack(wmsRoutingMaster.getRoutingCode(), "routingCode", result);
DdlPreparedPack.getStringLikerPack(wmsRoutingMaster.getRoutingName(), "routingName", result);
getStringBuilderPack(wmsRoutingMaster, result);
return result.toString();
return result;
}
/**
@ -235,18 +207,18 @@ public class WmsHqlPack {
* @param wmsPart
* @return
*/
public static String packHqlWmsPart(WmsPart wmsPart) {
StringBuffer result = new StringBuffer();
public static DdlPackBean packHqlWmsPart(WmsPart wmsPart) {
DdlPackBean result = new DdlPackBean();
HqlPack.getStringLikerPack(wmsPart.getPartNo(), "partNo", result);
HqlPack.getStringLikerPack(wmsPart.getPartName(), "partName", result);
HqlPack.getStringLikerPack(wmsPart.getPartSpec(), "partSpec", result);
HqlPack.getStringLikerPack(wmsPart.getPartType(), "partType", result);
HqlPack.getNumEqualPack(wmsPart.getSnControl(), "snControl", result);
DdlPreparedPack.getStringLikerPack(wmsPart.getPartNo(), "partNo", result);
DdlPreparedPack.getStringLikerPack(wmsPart.getPartName(), "partName", result);
DdlPreparedPack.getStringLikerPack(wmsPart.getPartSpec(), "partSpec", result);
DdlPreparedPack.getStringLikerPack(wmsPart.getPartType(), "partType", result);
DdlPreparedPack.getNumEqualPack(wmsPart.getSnControl(), "snControl", result);
getStringBuilderPack(wmsPart, result);
return result.toString();
return result;
}
/**
@ -293,26 +265,6 @@ public class WmsHqlPack {
}
/**
*
*
* @param wmsTrans
* @return
*/
public static String packHqlWmsTrans(WmsTrans wmsTrans) {
StringBuffer result = new StringBuffer();
//查询参数封装
HqlPack.getStringEqualPack(wmsTrans.getTransCode(), "transCode", result);
HqlPack.getStringEqualPack(wmsTrans.getSn(), "sn", result);
HqlPack.timeBuilder(wmsTrans.getCreateDatetime(), null, "createDatetime", result, true);
getStringBuilderPack(wmsTrans, result);
return result.toString();
}
/**
*
*
* @param basVendor
@ -467,25 +419,6 @@ public class WmsHqlPack {
return result;
}
/**
*
*
* @param basVendor
* @return
*/
public static DdlPackBean packHqlBasVendorUnique(BasVendor basVendor) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getNumNOEqualPack(basVendor.getId(), "id", result);
DdlPreparedPack.getStringEqualPack(basVendor.getVendorNo(), "vendorNo", result);
DdlPreparedPack.getStringEqualPack(basVendor.getVendorName(), "vendorName", result);
DdlPreparedPack.getStringEqualPack(basVendor.getVendorDesc(), "vendorDesc", result);
getStringBuilderPack(basVendor, result);
return result;
}
public static DdlPackBean packHqlWmsOpTypeUnique(WmsOpType wmsOpType) {
DdlPackBean result = new DdlPackBean();
@ -498,38 +431,6 @@ public class WmsHqlPack {
}
/**
*
*
* @param wmsOpType
* @return
*/
public static String packHqlWmsOpTypeTime(WmsOpType wmsOpType) {
StringBuffer result = new StringBuffer();
getStringBuilderPack(wmsOpType, result);
result.append(" and isnull(model.lastTransTime) or timestampdiff(Minute,nvl(model.lastTransTime,'2000'),now()) >= model.cycleMins");
return result.toString();
}
/**
*
*
* @param wmsTaskSrc
* @return
*/
public static String packHqlWmsTaskSrc(WmsTaskSrc wmsTaskSrc) {
StringBuffer result = new StringBuffer();
//作业类型代码
HqlPack.getStringLikerPack(wmsTaskSrc.getOpTypeCode(), "opTypeCode", result);
getStringBuilderPack(wmsTaskSrc, result);
return result.toString();
}
/**
*
*
* @param basCustomer
@ -805,25 +706,25 @@ public class WmsHqlPack {
* @param wmsAreaOwner
* @return
*/
public static String packHqlWmsAreaOwner(WmsAreaOwner wmsAreaOwner) {
StringBuffer result = new StringBuffer();
public static DdlPackBean packHqlWmsAreaOwner(WmsAreaOwner wmsAreaOwner) {
DdlPackBean result = new DdlPackBean();
// 仓库代码
HqlPack.getStringEqualPack(wmsAreaOwner.getWhNo(), "whNo", result);
DdlPreparedPack.getStringEqualPack(wmsAreaOwner.getWhNo(), "whNo", result);
// 来源单据号
HqlPack.getStringEqualPack(wmsAreaOwner.getZoneNo(), "zoneNo", result);
DdlPreparedPack.getStringEqualPack(wmsAreaOwner.getZoneNo(), "zoneNo", result);
// 供应商编码
HqlPack.getStringEqualPack(wmsAreaOwner.getVendorNo(), "vendorNo", result);
DdlPreparedPack.getStringEqualPack(wmsAreaOwner.getVendorNo(), "vendorNo", result);
// 物料编码
HqlPack.getStringEqualPack(wmsAreaOwner.getPartNo(), "partNo", result);
DdlPreparedPack.getStringEqualPack(wmsAreaOwner.getPartNo(), "partNo", result);
// 负责人
HqlPack.getStringEqualPack(wmsAreaOwner.getOwnerUserNo(), "ownerUserNo", result);
DdlPreparedPack.getStringEqualPack(wmsAreaOwner.getOwnerUserNo(), "ownerUserNo", result);
// 是否预分配
HqlPack.getNumEqualPack(wmsAreaOwner.getIsPreAssign(), "isPreAssign", result);
DdlPreparedPack.getNumEqualPack(wmsAreaOwner.getIsPreAssign(), "isPreAssign", result);
getStringBuilderPack(wmsAreaOwner, result);
return result.toString();
return result;
}
/**
@ -1238,7 +1139,8 @@ public class WmsHqlPack {
DdlPackBean result = new DdlPackBean();
//查询参数封装
DdlPreparedPack.getStringEqualPack(wmsActionStepType.getAtNameC(), "atNameC", result);
DdlPreparedPack.getStringLikerPack(wmsActionStepType.getAtNameC(), "atNameC", result);
DdlPreparedPack.getStringLikerPack(wmsActionStepType.getFunCallName(), "funCallName", result);
getStringBuilderPack(wmsActionStepType, result);
@ -1291,7 +1193,7 @@ public class WmsHqlPack {
DdlPreparedPack.getStringLikerPack(wmsActionModule.getAmName(), "amName", result);
DdlPreparedPack.getNumEqualPack(wmsActionModule.getId(), "id", result);
DdlPreparedPack.getNumEqualPack(wmsActionModule.getAmType(), "amType", result);
DdlPreparedPack.getNumEqualPack(wmsActionModule.getOpTypeCode(), "opTypeCode", result);
DdlPreparedPack.getStringEqualPack(wmsActionModule.getOpTypeCode(), "opTypeCode", result);
DdlPreparedPack.getNumEqualPack(wmsActionModule.getIsShowInfo(), "isShowInfo", result);
getStringBuilderPack(wmsActionModule, result);
@ -1373,22 +1275,6 @@ public class WmsHqlPack {
}
/**
* moveNo
*
* @param wmsMoveSn
* @return
*/
public static String packHqlLastWmsMoveSn(WmsMoveSn wmsMoveSn) {
StringBuffer result = new StringBuffer();
HqlPack.getStringEqualPack(wmsMoveSn.getOrderNo(), "orderNo", result);
getStringBuilderPack(wmsMoveSn, result);
HqlPack.getOrderByPack(new Object[]{2}, new String[]{"createDatetime"}, result);
return result.toString();
}
/**
*
*
* @param wmsStockSn
@ -1590,19 +1476,19 @@ public class WmsHqlPack {
* @param wmsTransModule
* @return
*/
public static String packHqlWmsTransModule(WmsTransModule wmsTransModule) {
StringBuffer result = new StringBuffer();
public static DdlPackBean packHqlWmsTransModule(WmsTransModule wmsTransModule) {
DdlPackBean result = new DdlPackBean();
if (!Strings.isNullOrEmpty(wmsTransModule.getTmName())) {
HqlPack.getStringEqualPack(wmsTransModule.getTmName(), "tmName", result);
DdlPreparedPack.getStringEqualPack(wmsTransModule.getTmName(), "tmName", result);
}
if (!Strings.isNullOrEmpty(wmsTransModule.getCallClass())) {
HqlPack.getStringEqualPack(wmsTransModule.getCallClass(), "callClass", result);
DdlPreparedPack.getStringEqualPack(wmsTransModule.getCallClass(), "callClass", result);
}
if (!Strings.isNullOrEmpty(wmsTransModule.getTmDesc())) {
HqlPack.getStringLikerPack(wmsTransModule.getTmDesc(), "tmDesc", result);
DdlPreparedPack.getStringLikerPack(wmsTransModule.getTmDesc(), "tmDesc", result);
}
getStringBuilderPack(wmsTransModule, result);
return result.toString();
return result;
}
/**

Loading…
Cancel
Save