Merge remote-tracking branch 'remotes/origin/test'

yun-zuoyi
汪云昊 6 years ago
commit b9d9d7402e

@ -316,7 +316,8 @@ public class MesEnumUtil {
NORMAL(10, "正常"), NORMAL(10, "正常"),
ONLINE(20, "已上线"), ONLINE(20, "已上线"),
OFFLINE(30, "已下线"), OFFLINE(30, "已下线"),
CLOSE(40,"已关闭"),; CLOSE(40, "已关闭"),
;
private int value; private int value;
private String description; private String description;
@ -392,7 +393,8 @@ public class MesEnumUtil {
OFFLINE(30, "下线"), OFFLINE(30, "下线"),
INSTOCKED(40, "入库"), INSTOCKED(40, "入库"),
SHIPING(50, "发运"), SHIPING(50, "发运"),
CLOSE(90,"关闭"),; CLOSE(90, "关闭"),
;
private int value; private int value;
private String description; private String description;
@ -645,6 +647,7 @@ public class MesEnumUtil {
return tmp; return tmp;
} }
} }
/** /**
* *
*/ */
@ -710,4 +713,80 @@ public class MesEnumUtil {
return description; return description;
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ACTION_TYPE {
SEATS(10, "座椅"),
METAL(20, "金属件"),
FOAMING(30, "发泡");
private int value;
private String description;
ACTION_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum EVENT_TYPE {
SEATS(10, "座椅"),
METAL(20, "金属件"),
FOAMING(30, "发泡");
private int value;
private String description;
EVENT_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
} }

@ -1,5 +1,7 @@
package cn.estsh.i3plus.pojo.base.enumutil; package cn.estsh.i3plus.pojo.base.enumutil;
import com.fasterxml.jackson.annotation.JsonFormat;
/** /**
* @Description : * @Description :
* @Reference : * @Reference :
@ -8,4 +10,76 @@ package cn.estsh.i3plus.pojo.base.enumutil;
* @Modify: * @Modify:
**/ **/
public class SoftSwitchEnumUtil { public class SoftSwitchEnumUtil {
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CASE_TYPE{
SOCKET(1,"SOCKET"),
RESTFUL(2,"RESTFUL"),
DATASOURCE(3,"数据源");
private int value;
private String description;
CASE_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum REQUEST_SOURCE{
ACTIVE(1,"主动请求"),
SCHEDULE(2,"定时调度");
private int value;
private String description;
REQUEST_SOURCE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
} }

@ -271,7 +271,7 @@ public class DdlPreparedPack {
} }
/** /**
* longintequal * longintequal
* *
* @param columnName * @param columnName
* @param packBean * @param packBean
@ -283,6 +283,18 @@ public class DdlPreparedPack {
} }
/** /**
* longintequal
*
* @param columnName
* @param packBean
*/
public static void getNegativeNumEqualPack(Object data, String columnName, DdlPackBean packBean) {
if (data != null) {
packBean.addColumnQuery(columnName," and model." + columnName + " = :m_" + columnName, data);
}
}
/**
* longintequal * longintequal
* *
* @param columnName * @param columnName

@ -329,4 +329,25 @@ public final class FormHqlPack {
return ddlPackBean; return ddlPackBean;
} }
/**
*
* @param bfMenu
* @return hql
*/
public static DdlPackBean packHqlBfMenuTree(BfMenu bfMenu) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getNegativeNumEqualPack(bfMenu.getId(), "parentId", result);
DdlPreparedPack.getNumEqualPack(
CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(), "isDeleted", result);
// 按顺序字段进行排序
bfMenu.setOrderByParam("menuSort");
bfMenu.setAscOrDesc(CommonEnumUtil.ASC_OR_DESC.DESC.getValue());
result.setOrderByStr(bfMenu.orderBy());
return result;
}
} }

@ -42,7 +42,7 @@ public class MesStepParam extends BaseBean {
@Column(name = "PARAM_NAME") @Column(name = "PARAM_NAME")
@ApiParam("参数名称") @ApiParam("参数名称")
private String paramName; private String paramName;
//text select
@Column(name = "PARAM_ATTRIBUTE") @Column(name = "PARAM_ATTRIBUTE")
@ApiParam("参数属性") @ApiParam("参数属性")
private String paramAttribute; private String paramAttribute;

@ -16,7 +16,4 @@ import java.util.List;
@Repository @Repository
public interface MesActionRepository extends BaseRepository<MesAction, Long> { public interface MesActionRepository extends BaseRepository<MesAction, Long> {
List<MesAction> findByOrganizeCodeAndIsDeleted(String organizeCode,Integer isDeleted);
List<MesAction> findByActionCodeAndIsValidAndIsDeleted(String actionCode,Integer isValid,Integer isDeleted);
} }

@ -16,10 +16,4 @@ import java.util.List;
@Repository @Repository
public interface MesEventRepository extends BaseRepository<MesEvent, Long> { public interface MesEventRepository extends BaseRepository<MesEvent, Long> {
List<MesEvent> findByOrganizeCodeAndIsDeleted(String organizeCode,Integer isDeleted);
List<MesEvent> findByButtonCodeAndIsValidAndIsDeleted(String buttonCode,Integer isValid,Integer isDeleted);
List<MesEvent> findByEventCodeAndIsValidAndIsDeleted(String eventCode,Integer isValid,Integer isDeleted);
} }

@ -474,6 +474,26 @@ public class MesHqlPack {
return packBean; return packBean;
} }
public static DdlPackBean getMesEventByButtonCode(String buttonCode,String org){
DdlPackBean packBean=getAllBaseData(org);
DdlPreparedPack.getStringEqualPack(buttonCode,"buttonCode",packBean);
DdlPreparedPack.getStringEqualPack(CommonEnumUtil.IS_VAILD.VAILD.getValue()+"","isValid",packBean);
return packBean;
}
public static DdlPackBean getMesEventByEventCode(String eventCode,String org){
DdlPackBean packBean=getAllBaseData(org);
DdlPreparedPack.getStringEqualPack(eventCode,"eventCode",packBean);
DdlPreparedPack.getStringEqualPack(CommonEnumUtil.IS_VAILD.VAILD.getValue()+"","isValid",packBean);
return packBean;
}
public static DdlPackBean getMesActionByActionCode(MesAction mesAction,String organizeCode){
DdlPackBean packBean=getAllBaseDataByNormalPro(mesAction,organizeCode);
DdlPreparedPack.getStringEqualPack(mesAction.getActionCode(),"actionCode",packBean);
return packBean;
}
/** /**
* *
* *
@ -521,6 +541,13 @@ public class MesHqlPack {
return packBean; return packBean;
} }
public static DdlPackBean getMesMethodByMethodCode(MesMethod mesMethod, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesMethod, organizeCode);
if (StringUtils.isNotEmpty(mesMethod.getMethodCode())) {
DdlPreparedPack.getStringEqualPack(mesMethod.getMethodCode(), "methodCode", packBean);
}
return packBean;
}
/** /**
* *
* *

@ -42,6 +42,10 @@
<groupId>i3plus.pojo</groupId> <groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-form</artifactId> <artifactId>i3plus-pojo-form</artifactId>
</dependency> </dependency>
<dependency>
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-softswitch</artifactId>
</dependency>
</dependencies> </dependencies>

@ -1,10 +1,17 @@
package cn.estsh.i3plus.pojo.model.softswitch; package cn.estsh.i3plus.pojo.model.softswitch;
import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA; import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSslKey;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCase;
import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute; import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import lombok.Data; import lombok.Data;
import javax.persistence.Transient;
/** /**
* @Description : * @Description :
* @Reference : * @Reference :
@ -16,27 +23,88 @@ import lombok.Data;
@XStreamAlias("model") @XStreamAlias("model")
public class SuitCoreModel { public class SuitCoreModel {
/**
*
*/
@XStreamAsAttribute @XStreamAsAttribute
private Long id; private String suitCaseCode;// adapterId
/**
*
*/
@XStreamAsAttribute @XStreamAsAttribute
private Integer caseType; private Integer caseType;
/**
*
*/
private String suitMessage;
/**
*
*/
private Integer requestSource;
private String suitCaseStatusCode; private String suitCaseStatusCode;
private String suitCaseMessage;
private String key; /**
private PojoAuth auth; *
private Request request; */
private BsSslKey sslKey;
/**
*
*/
private String token;
/**
*
*/
@XStreamOmitField
private BsSuitCase bsSuitCase;
/**
*
*/
private Integer suitSslKeyResult;
/**
*
*/
private String suitSslKeyResultMessage;
/**
*
*/
private Integer suitResult;
/**
*
*/
@XStreamCDATA @XStreamCDATA
private String responseResult; private String suitResultMessage;
public SuitCoreModel(Long id, Integer caseType, String suitCaseStatusCode, String key, PojoAuth auth, Request request) { /**
this.id = id; *
this.caseType = caseType; * @param requestSource
this.suitCaseStatusCode = suitCaseStatusCode; * @param sslKey
this.key = key; * @param bsSuitCase
this.auth = auth; */
this.request = request; public SuitCoreModel(Integer requestSource,BsSslKey sslKey, BsSuitCase bsSuitCase) {
this.sslKey = sslKey;
this.bsSuitCase = bsSuitCase;
this.requestSource = requestSource;
// 设置套件类型
this.caseType = bsSuitCase.getCaseTypeId();
// 设置套件代码
this.suitCaseCode = bsSuitCase.getSuitCaseCode();
// 设置默认
this.suitCaseStatusCode = ResourceEnumUtil.MESSAGE.FAIL.getCode();
// 设置默认
this.suitSslKeyResult = CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue();
// 设置默认
this.suitResult = CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue();
} }
} }

@ -801,14 +801,14 @@ public class CoreHqlPack {
* @param ids * @param ids
* @return * @return
*/ */
public static String packHqlSysDictionaryByIdsAndIsDefault(Long[] ids) { public static DdlPackBean packHqlSysDictionaryByIdsAndIsDefault(Long[] ids) {
StringBuffer result = new StringBuffer(); DdlPackBean result = new DdlPackBean();
// hql拼接 // hql拼接
HqlPack.getInPack(StringUtils.join(ids,","),"id",result); DdlPreparedPack.getInPack(StringUtils.join(ids,","),"id",result);
HqlPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue(),"isDefault",result); DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue(),"isDefault",result);
return result.toString(); return result;
} }
/** /**

@ -31,9 +31,17 @@ public class BsDataSource extends BaseBean {
@ApiParam(value = "数据源名称") @ApiParam(value = "数据源名称")
private String dataSourceName; private String dataSourceName;
@Column(name = "DATA_SOURCE_CODE")
@ApiParam(value = "数据源编码",access = "作为关系引用在数据切换的时候会找不到ID 数据变了引用还在")
private String dataSourceCode;
@Column(name = "DATA_BASE_NAME")
@ApiParam(value = "数据库名称")
private String dataBaseName;
@Column(name = "DATA_SOURCE_TYPE_ID") @Column(name = "DATA_SOURCE_TYPE_ID")
@ApiParam(value = "数据源类型id") @ApiParam(value = "数据源类型id")
private int dataSourceTypeId; private Integer dataSourceTypeId;
@Column(name = "DATA_SOURCE_HOST") @Column(name = "DATA_SOURCE_HOST")
@ApiParam(value = "数据源主机") @ApiParam(value = "数据源主机")
@ -41,7 +49,7 @@ public class BsDataSource extends BaseBean {
@Column(name = "DATA_SOURCE_PORT") @Column(name = "DATA_SOURCE_PORT")
@ApiParam(value = "数据源端口") @ApiParam(value = "数据源端口")
private int dataSourcePort; private Integer dataSourcePort;
@Column(name = "DATA_SOURCE_USER") @Column(name = "DATA_SOURCE_USER")
@ApiParam(value = "用户名") @ApiParam(value = "用户名")

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -29,15 +31,16 @@ public class BsDataSourceSuitCase extends BaseBean {
@Column(name = "SUIT_CASE_ID") @Column(name = "SUIT_CASE_ID")
@ApiParam(value = "套件id") @ApiParam(value = "套件id")
private long suitCaseId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitCaseId;
@Column(name = "DATA_SOURCE_MODE_ID") @Column(name = "DATA_SOURCE_MODE_ID")
@ApiParam(value = "数据源套件模式(枚举,被动读,主动写)") @ApiParam(value = "数据源套件模式(枚举,被动读,主动写)")
private int dataSourceModeId; private Integer dataSourceModeId;
@Column(name = "DATA_SOURCE_ID") @Column(name = "DATA_SOURCE_CODE")
@ApiParam(value = "数据源id") @ApiParam(value = "数据源编码")
private long dataSourceId; private String dataSourceCode;
@Column(name = "DATA_SOURCE_NAME_RDD") @Column(name = "DATA_SOURCE_NAME_RDD")
@ApiParam(value = "数据源名称") @ApiParam(value = "数据源名称")

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -29,7 +31,8 @@ public class BsDataSourceSuitCaseTable extends BaseBean {
@Column(name = "SUIT_CASE_ID") @Column(name = "SUIT_CASE_ID")
@ApiParam(value = "套件id") @ApiParam(value = "套件id")
private long suitCaseId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitCaseId;
@Column(name = "TABLE_NAME") @Column(name = "TABLE_NAME")
@ApiParam(value = "数据库表名") @ApiParam(value = "数据库表名")

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -33,7 +35,7 @@ public class BsMessageQueue extends BaseBean {
@Column(name = "MESSAGE_QUEUE_TYPE") @Column(name = "MESSAGE_QUEUE_TYPE")
@ApiParam(value = "消息队列类型") @ApiParam(value = "消息队列类型")
private int messageQueueType; private Integer messageQueueType;
@Column(name = "MESSAGE_QUEUE_HOST") @Column(name = "MESSAGE_QUEUE_HOST")
@ApiParam(value = "消息队列主机") @ApiParam(value = "消息队列主机")
@ -41,11 +43,7 @@ public class BsMessageQueue extends BaseBean {
@Column(name = "MESSAGE_QUEUE_PORT") @Column(name = "MESSAGE_QUEUE_PORT")
@ApiParam(value = "消息队列端口") @ApiParam(value = "消息队列端口")
private int messageQueuePort; private Integer messageQueuePort;
@Column(name = "CERTIFICATE_ID")
@ApiParam(value = "证书id")
private long certificateId;
} }

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -29,7 +31,8 @@ public class BsParamAdapter extends BaseBean {
@Column(name = "SUIT_CASE_ID") @Column(name = "SUIT_CASE_ID")
@ApiParam(value = "适配套件id") @ApiParam(value = "适配套件id")
private long suitCaseId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitCaseId;
@Column(name = "SUIT_CASE_NAME") @Column(name = "SUIT_CASE_NAME")
@ApiParam(value = "适配套件名称") @ApiParam(value = "适配套件名称")
@ -41,11 +44,12 @@ public class BsParamAdapter extends BaseBean {
@Column(name = "SUIT_PARAM_TYPE_ID") @Column(name = "SUIT_PARAM_TYPE_ID")
@ApiParam(value = "参数类型枚举") @ApiParam(value = "参数类型枚举")
private int suitParamTypeId; private Integer suitParamTypeId;
@Column(name = "SUIT_PARAM_ID") @Column(name = "SUIT_PARAM_ID")
@ApiParam(value = "原参数id") @ApiParam(value = "原参数id")
private long suitParamId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitParamId;
@Column(name = "SUIT_PARAM_NAME_RDD") @Column(name = "SUIT_PARAM_NAME_RDD")
@ApiParam(value = "参数名称") @ApiParam(value = "参数名称")
@ -53,7 +57,7 @@ public class BsParamAdapter extends BaseBean {
@Column(name = "SUIT_PARAM_VAL_TYPE_ID") @Column(name = "SUIT_PARAM_VAL_TYPE_ID")
@ApiParam(value = "原参数值类型") @ApiParam(value = "原参数值类型")
private int suitParamValTypeId; private Integer suitParamValTypeId;
@Column(name = "TRANSFER_PARAM_NAME") @Column(name = "TRANSFER_PARAM_NAME")
@ApiParam(value = "转换参数名称") @ApiParam(value = "转换参数名称")
@ -61,7 +65,7 @@ public class BsParamAdapter extends BaseBean {
@Column(name = "TRANSFER_PARAM_VAL_TYPE_ID") @Column(name = "TRANSFER_PARAM_VAL_TYPE_ID")
@ApiParam(value = "转换参数类型") @ApiParam(value = "转换参数类型")
private int transferParamValTypeId; private Integer transferParamValTypeId;
} }

@ -29,11 +29,11 @@ public class BsSocketSuitCase extends BaseBean {
@Column(name = "SOCKET_TYPE_ID") @Column(name = "SOCKET_TYPE_ID")
@ApiParam(value = "socket类型枚举") @ApiParam(value = "socket类型枚举")
private int socketTypeId; private Integer socketTypeId;
@Column(name = "SOCKET_MODE_ID") @Column(name = "SOCKET_MODE_ID")
@ApiParam(value = "socket模式(枚举,服务端,客户端)") @ApiParam(value = "socket模式(枚举,服务端,客户端)")
private int socketModeId; private Integer socketModeId;
} }

@ -1,6 +1,9 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -10,6 +13,8 @@ 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;
import java.util.List;
/** /**
* @Description : * @Description :
@ -29,7 +34,7 @@ public class BsSslKey extends BaseBean {
@Column(name = "VERIFICATION_METHOD_ID") @Column(name = "VERIFICATION_METHOD_ID")
@ApiParam(value = "认证方式(枚举)") @ApiParam(value = "认证方式(枚举)")
private int verificationMethodId; private Integer verificationMethodId;
@Column(name = "VERIFICATION_URL") @Column(name = "VERIFICATION_URL")
@ApiParam(value = "认证url") @ApiParam(value = "认证url")
@ -37,7 +42,7 @@ public class BsSslKey extends BaseBean {
@Column(name = "KEY_TYPE") @Column(name = "KEY_TYPE")
@ApiParam(value = "证书类型枚举") @ApiParam(value = "证书类型枚举")
private int keyType; private Integer keyType;
@Column(name = "KEY_NAME") @Column(name = "KEY_NAME")
@ApiParam(value = "证书名称") @ApiParam(value = "证书名称")
@ -45,7 +50,8 @@ public class BsSslKey extends BaseBean {
@Column(name = "KEY_FILE_ID") @Column(name = "KEY_FILE_ID")
@ApiParam(value = "证书文件id") @ApiParam(value = "证书文件id")
private long keyFileId; @JsonSerialize(using = ToStringSerializer.class)
private Long keyFileId;
@Column(name = "KEY_FILE_PATH") @Column(name = "KEY_FILE_PATH")
@ApiParam(value = "证书文件路径") @ApiParam(value = "证书文件路径")
@ -63,5 +69,9 @@ public class BsSslKey extends BaseBean {
@ApiParam(value = "证书描述") @ApiParam(value = "证书描述")
private String keyDescription; private String keyDescription;
@Transient
@ApiParam(value = "证书参数集合")
private List<BsSslKeyParam> bsSslKeyParamList;
} }

@ -0,0 +1,48 @@
package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.thoughtworks.xstream.annotations.XStreamAlias;
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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SSL_KEY_PARAM")
@Api(value = "安全证书参数", description = "安全证书参数")
@XStreamAlias("BsSslKeyParam")
public class BsSslKeyParam extends BaseBean {
@Column(name = "SSL_KEY_ID")
@ApiParam(value = "证书id")
@JsonSerialize(using = ToStringSerializer.class)
private Long sslKeyId;
@Column(name = "PARAM_NAME")
@ApiParam(value = "参数名称")
private String paramName;
@Column(name = "PARAM_VALUE")
@ApiParam(value = "参数值")
private String paramValue;
}

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -10,6 +12,8 @@ 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;
import java.util.List;
/** /**
* @Description : * @Description :
@ -27,17 +31,23 @@ import javax.persistence.Table;
@Api(value = "适配套件", description = "适配套件") @Api(value = "适配套件", description = "适配套件")
public class BsSuitCase extends BaseBean { public class BsSuitCase extends BaseBean {
@Column(name = "SUIT_CASE_NAME")
@ApiParam(value = "套件名称")
private String suitCaseName;
@Column(name = "CASE_TYPE_ID") @Column(name = "CASE_TYPE_ID")
@ApiParam(value = "套件类型id(枚举)") @ApiParam(value = "套件类型id(枚举)")
private int caseTypeId; private Integer caseTypeId;
@Column(name = "CASE_DETAIL_ID") @Column(name = "CASE_DETAIL_ID")
@ApiParam(value = "适配器明细id") @ApiParam(value = "适配器明细id")
private long caseDetailId; @JsonSerialize(using = ToStringSerializer.class)
private Long caseDetailId;
@Column(name = "SUIT_TYPE_ID") @Column(name = "SUIT_TYPE_ID")
@ApiParam(value = "适配类型id") @ApiParam(value = "适配类型id")
private long suitTypeId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitTypeId;
@Column(name = "SUIT_TYPE_NAME") @Column(name = "SUIT_TYPE_NAME")
@ApiParam(value = "适配类型名称") @ApiParam(value = "适配类型名称")
@ -53,35 +63,43 @@ public class BsSuitCase extends BaseBean {
@Column(name = "SUIT_CASE_PORT") @Column(name = "SUIT_CASE_PORT")
@ApiParam(value = "适配端口") @ApiParam(value = "适配端口")
private int suitCasePort; private Integer suitCasePort;
@Column(name = "SUIT_CASE_URL")
@ApiParam(value = "适配URL")
private String suitCaseURL;
@Column(name = "IS_NEED_CERTIFICATION") @Column(name = "IS_NEED_CERTIFICATION")
@ApiParam(value = "是否需要认证") @ApiParam(value = "是否需要认证")
private int isNeedCertification; private Integer isNeedCertification;
@Column(name = "CERTIFICATE_ID") @Column(name = "SSL_KEY_ID")
@ApiParam(value = "证书id") @ApiParam(value = "证书id")
private long certificateId; @JsonSerialize(using = ToStringSerializer.class)
private Long sslKeyId;
@Column(name = "TIMING_SUIT_NUM") @Column(name = "TIMING_SUIT_NUM")
@ApiParam(value = "定时适配次数") @ApiParam(value = "定时适配次数")
private int timingSuitNum; private Integer timingSuitNum;
@Column(name = "INITIATIVE_SUIT_NUM") @Column(name = "INITIATIVE_SUIT_NUM")
@ApiParam(value = "主动适配测试") @ApiParam(value = "主动适配测试")
private int initiativeSuitNum; private Integer initiativeSuitNum;
@Column(name = "SUCCESS_NUM") @Column(name = "SUCCESS_NUM")
@ApiParam(value = "成功次数") @ApiParam(value = "成功次数")
private int successNum; private Integer successNum;
@Column(name = "FAIL_NUM") @Column(name = "FAIL_NUM")
@ApiParam(value = "失败次数") @ApiParam(value = "失败次数")
private int failNum; private Integer failNum;
@Column(name = "SUIT_CASE_DESCRIPTION") @Column(name = "SUIT_CASE_DESCRIPTION")
@ApiParam(value = "适配类型描述") @ApiParam(value = "适配类型描述")
private String suitCaseDescription; private String suitCaseDescription;
@Transient
@ApiParam(value = "适配器参数")
List<BsSuitCaseParam> bsSuitCaseParamList;
} }

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -10,6 +12,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 :
@ -29,7 +32,8 @@ public class BsSuitCaseParam extends BaseBean {
@Column(name = "SUIT_CASE_ID") @Column(name = "SUIT_CASE_ID")
@ApiParam(value = "套件id") @ApiParam(value = "套件id")
private long suitCaseId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitCaseId;
@Column(name = "SUIT_CASE_CODE_RDD") @Column(name = "SUIT_CASE_CODE_RDD")
@ApiParam(value = "套件代码") @ApiParam(value = "套件代码")
@ -37,7 +41,7 @@ public class BsSuitCaseParam extends BaseBean {
@Column(name = "PARAM_TYPE_ID") @Column(name = "PARAM_TYPE_ID")
@ApiParam(value = "参数类型,枚举(出,入)") @ApiParam(value = "参数类型,枚举(出,入)")
private int paramTypeId; private Integer paramTypeId;
@Column(name = "PARAM_NAME") @Column(name = "PARAM_NAME")
@ApiParam(value = "参数名称)") @ApiParam(value = "参数名称)")
@ -45,7 +49,7 @@ public class BsSuitCaseParam extends BaseBean {
@Column(name = "PARAM_VAL_TYPE_ID") @Column(name = "PARAM_VAL_TYPE_ID")
@ApiParam(value = "参数值类型") @ApiParam(value = "参数值类型")
private int paramValTypeId; private Integer paramValTypeId;
@Column(name = "PARAM_DEFAULT_VAL") @Column(name = "PARAM_DEFAULT_VAL")
@ApiParam(value = "参数默认值") @ApiParam(value = "参数默认值")
@ -55,5 +59,9 @@ public class BsSuitCaseParam extends BaseBean {
@ApiParam(value = "参数描述") @ApiParam(value = "参数描述")
private String paramDescription; private String paramDescription;
@Transient
@ApiParam(value = "参数值")
private String paramValue;
} }

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -41,7 +43,8 @@ public class BsSuitDataDetail extends BaseBean {
@Column(name = "SUIT_RECORD_ID") @Column(name = "SUIT_RECORD_ID")
@ApiParam(value = "适配记录id") @ApiParam(value = "适配记录id")
private long suitRecordId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitRecordId;
@Column(name = "GET_DATE_TIME") @Column(name = "GET_DATE_TIME")
@ApiParam(value = "获取报文时间") @ApiParam(value = "获取报文时间")
@ -57,7 +60,7 @@ public class BsSuitDataDetail extends BaseBean {
@Column(name = "PROCESS_STATE") @Column(name = "PROCESS_STATE")
@ApiParam(value = "处理状态") @ApiParam(value = "处理状态")
private int processState; private Integer processState;
@Column(name = "PROCESS_TIME") @Column(name = "PROCESS_TIME")
@ApiParam(value = "处理时间") @ApiParam(value = "处理时间")

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -37,23 +39,30 @@ public class BsSuitRecord extends BaseBean {
@Column(name = "SUIT_CASE_TYPE") @Column(name = "SUIT_CASE_TYPE")
@ApiParam(value = "适配套件类型id枚举") @ApiParam(value = "适配套件类型id枚举")
private int suitCaseType; private Integer suitCaseType;
@Column(name = "SUIT_CASE_ID") @Column(name = "SUIT_CASE_ID")
@ApiParam(value = "适配器套件id") @ApiParam(value = "适配器套件id")
private long suitCaseId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitCaseId;
@Column(name = "CASE_TYPE_ID")
@ApiParam(value = "套件类型id(枚举)")
private Integer caseTypeId;
@Column(name = "SUIT_CASE_DETAIL_ID") @Column(name = "SUIT_CASE_DETAIL_ID")
@ApiParam(value = "适配套件明细id") @ApiParam(value = "适配套件明细id")
private long suitCaseDetailId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitCaseDetailId;
@Column(name = "SUIT_METHOD_ID") @Column(name = "SUIT_METHOD_ID")
@ApiParam(value = "适配方式id枚举") @ApiParam(value = "适配方式id枚举")
private int suitMethodId; private Integer suitMethodId;
@Column(name = "SUIT_TYPE_ID") @Column(name = "SUIT_TYPE_ID")
@ApiParam(value = "适配类型id") @ApiParam(value = "适配类型id")
private long suitTypeId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitTypeId;
@Column(name = "SUIT_TYPE_NAME_RDD") @Column(name = "SUIT_TYPE_NAME_RDD")
@ApiParam(value = "适配类型名称") @ApiParam(value = "适配类型名称")
@ -61,23 +70,36 @@ public class BsSuitRecord extends BaseBean {
@Column(name = "REQUEST_SOURCE") @Column(name = "REQUEST_SOURCE")
@ApiParam(value = "请求来源(枚举)") @ApiParam(value = "请求来源(枚举)")
private int requestSource; private Integer requestSource;
@Column(name = "SUIT_SSL_KEY_ID") @Column(name = "SSL_KEY_ID")
@ApiParam(value = "证书id") @ApiParam(value = "证书id")
private long suitSslKeyId; @JsonSerialize(using = ToStringSerializer.class)
private Long sslKeyId;
@Column(name = "SUIT_SSL_KEY_NAME_RDD") @Column(name = "SUIT_SSL_KEY_NAME_RDD")
@ApiParam(value = "证书名称") @ApiParam(value = "证书名称")
private String suitSslKeyNameRdd; private String suitSslKeyNameRdd;
@Column(name = "SUIT_SSL_KEY_RESULT")
@ApiParam(value = "认证结果")
private String suitSslKeyResult;
@Column(name = "SUIT_SSL_KEY_RESULT_MESSAGE")
@ApiParam(value = "认证信息")
private String suitSslKeyResultMessage;
@Column(name = "SUIT_RESULT") @Column(name = "SUIT_RESULT")
@ApiParam(value = "适配结果") @ApiParam(value = "适配结果")
private int suitResult; private Integer suitResult;
@Column(name = "SUIT_MESSAGE")
@ApiParam(value = "适配信息")
private String suitMessage;
@Column(name = "PROCESS_STATE") @Column(name = "PROCESS_STATE")
@ApiParam(value = "处理状态") @ApiParam(value = "处理状态")
private int processState; private Integer processState;
@Column(name = "PROCESS_TIME") @Column(name = "PROCESS_TIME")
@ApiParam(value = "处理时间") @ApiParam(value = "处理时间")

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -29,15 +31,17 @@ public class BsSuitRequestRecord extends BaseBean {
@Column(name = "SUIT_RECORD_ID") @Column(name = "SUIT_RECORD_ID")
@ApiParam(value = "适配记录id") @ApiParam(value = "适配记录id")
private long suitRecordId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitRecordId;
@Column(name = "SUIT_CASE_ID") @Column(name = "SUIT_CASE_ID")
@ApiParam(value = "适配器套件id") @ApiParam(value = "适配器套件id")
private long suitCaseId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitCaseId;
@Column(name = "REQUEST_SOURCE") @Column(name = "REQUEST_SOURCE")
@ApiParam(value = "请求来源(枚举)") @ApiParam(value = "请求来源(枚举)")
private int requestSource; private Integer requestSource;
@Column(name = "REQUEST_ORGIN_PARAM") @Column(name = "REQUEST_ORGIN_PARAM")
@ApiParam(value = "请求原始参数") @ApiParam(value = "请求原始参数")

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean; package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -29,7 +31,8 @@ public class BsSuitSchedule extends BaseBean {
@Column(name = "SUIT_CASE_ID") @Column(name = "SUIT_CASE_ID")
@ApiParam(value = "适配套件id") @ApiParam(value = "适配套件id")
private long suitCaseId; @JsonSerialize(using = ToStringSerializer.class)
private Long suitCaseId;
@Column(name = "SUIT_CASE_NAME_RDD") @Column(name = "SUIT_CASE_NAME_RDD")
@ApiParam(value = "适配套件名称") @ApiParam(value = "适配套件名称")

@ -33,7 +33,7 @@ public class BsSuitType extends BaseBean {
@Column(name = "SUIT_CASE_NUM") @Column(name = "SUIT_CASE_NUM")
@ApiParam(value = "适配器数量") @ApiParam(value = "适配器数量")
private int suitCaseNum; private Integer suitCaseNum = 0;
} }

@ -29,7 +29,7 @@ public class SuitRecordParam extends BaseBean {
@Column(name = "SUIT_RECORD_ID") @Column(name = "SUIT_RECORD_ID")
@ApiParam(value = "适配记录id") @ApiParam(value = "适配记录id")
private long suitRecordId; private Long suitRecordId;
@Column(name = "PARAM_NAME") @Column(name = "PARAM_NAME")
@ApiParam(value = "参数名称") @ApiParam(value = "参数名称")

@ -3,6 +3,7 @@ package cn.estsh.i3plus.pojo.softswitch.sqlpack;
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean; import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack; import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
import cn.estsh.i3plus.pojo.base.tool.HqlPack; import cn.estsh.i3plus.pojo.base.tool.HqlPack;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCase;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCaseParam; import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCaseParam;
import cn.estsh.i3plus.pojo.softswitch.bean.TestDataBase; import cn.estsh.i3plus.pojo.softswitch.bean.TestDataBase;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@ -56,6 +57,56 @@ public class SoftSwitchHqlPack {
DdlPreparedPack.getNumEqualPack(bsSuitCaseParam.getSuitCaseId(), "suitCaseId", ddlPackBean); DdlPreparedPack.getNumEqualPack(bsSuitCaseParam.getSuitCaseId(), "suitCaseId", ddlPackBean);
DdlPreparedPack.getStringEqualPack(bsSuitCaseParam.getSuitCaseCodeRdd(),"suitCaseCodeRdd",ddlPackBean); DdlPreparedPack.getStringEqualPack(bsSuitCaseParam.getSuitCaseCodeRdd(),"suitCaseCodeRdd",ddlPackBean);
ddlPackBean.setOrderByStr(bsSuitCaseParam.orderBy());
return ddlPackBean;
}
/**
*
* @param bsSuitCaseParam
* @return
*/
public static DdlPackBean packHqlCheckBsSuitCaseParamOnly(BsSuitCaseParam bsSuitCaseParam){
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getNumNOEqualPack(bsSuitCaseParam.getId(),"id",ddlPackBean);
DdlPreparedPack.getNumEqualPack(bsSuitCaseParam.getSuitCaseId(), "suitCaseId", ddlPackBean);
DdlPreparedPack.getStringLikerPack(bsSuitCaseParam.getParamName(),"paramName",ddlPackBean);
return ddlPackBean;
}
/**
*
* @param bsSuitCase
* @return
*/
public static DdlPackBean packHqlBsSuitCaseParam(BsSuitCase bsSuitCase){
DdlPackBean ddlPackBean = new DdlPackBean();
// DdlPreparedPack.getStringLikerPack(bsSuitCase.getSuitCaseCode(),"suitCaseCode",ddlPackBean);
// DdlPreparedPack.getStringLikerPack(bsSuitCase.getSuitTypeName(),"suitTypeName",ddlPackBean);
// DdlPreparedPack.getNumEqualPack(bsSuitCase.getParamTypeId(), "paramTypeId", ddlPackBean);
// DdlPreparedPack.getNumEqualPack(bsSuitCase.getSuitCaseId(), "suitCaseId", ddlPackBean);
// DdlPreparedPack.getStringEqualPack(bsSuitCase.getSuitCaseCodeRdd(),"suitCaseCodeRdd",ddlPackBean);
ddlPackBean.setOrderByStr(bsSuitCase.orderBy());
return ddlPackBean;
}
/**
*
* @param bsSuitCase
* @return
*/
public static DdlPackBean packHqlCheckBsSuitCaseOnly(BsSuitCase bsSuitCase){
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getNumNOEqualPack(bsSuitCase.getId(),"id",ddlPackBean);
DdlPreparedPack.getNumEqualPack(bsSuitCase.getSuitCaseCode(), "suitCaseCode", ddlPackBean);
return ddlPackBean; return ddlPackBean;
} }

@ -171,8 +171,8 @@ public class WmsMoveDetails extends BaseBean {
} }
public WmsMoveDetails(String organizeCode,String orderNo,Integer item,String partNo,String partNameRdd,String transTypeCode public WmsMoveDetails(String organizeCode,String orderNo,Integer item,String partNo,String partNameRdd,String transTypeCode
,String transTypeName,Integer itemStatus,String unit,String srcWhNo, ,String transTypeName,Integer itemStatus,String unit,String srcWhNo,String destWhNo,
String srcZoneNo,String srcLocateNo,String destWhNo, String destZoneNo, String destLocateNo, String srcZoneNo,String destZoneNo,String srcLocateNo, String destLocateNo,
Double transQty,Double rejectQty,String refSrc,String vendorNo, String custNo){ Double transQty,Double rejectQty,String refSrc,String vendorNo, String custNo){
this.organizeCode = organizeCode; this.organizeCode = organizeCode;
this.partNo = partNo; this.partNo = partNo;
@ -184,10 +184,10 @@ public class WmsMoveDetails extends BaseBean {
this.itemStatus = itemStatus; this.itemStatus = itemStatus;
this.unit = unit; this.unit = unit;
this.srcWhNo = srcWhNo; this.srcWhNo = srcWhNo;
this.srcZoneNo = srcZoneNo;
this.srcLocateNo = srcLocateNo;
this.destWhNo = destWhNo; this.destWhNo = destWhNo;
this.srcZoneNo = srcZoneNo;
this.destZoneNo = destZoneNo; this.destZoneNo = destZoneNo;
this.srcLocateNo = srcLocateNo;
this.destLocateNo = destLocateNo; this.destLocateNo = destLocateNo;
this.transQty = transQty; this.transQty = transQty;
this.rejectQty = rejectQty; this.rejectQty = rejectQty;

@ -211,7 +211,7 @@ public class WmsMoveSn extends BaseBean {
} }
public WmsMoveSn( String organizeCode,String orderNo,Integer item,String partNo,String partNameRdd, public WmsMoveSn( String organizeCode,String orderNo,Integer item,String partNo,String partNameRdd,
String transTypeCode,String transTypeName,Integer itemStatus,String unit, String srcLocateNo,String destLocateNo,Double srcQty,Double destQty,Integer srcQcStatus,Integer descQcStatus,Integer srcSnStatus, String transTypeCode,String transTypeName,Integer itemStatus,String unit, String srcLocateNo,String destLocateNo,Double srcQty,Double destQty,Integer srcQcStatus,Integer descQcStatus,Integer srcSnStatus,
Integer destSnStatus, String lotNo,String dateCode){ Integer destSnStatus, String lotNo,String dateCode,String refSrc,String destZoneNo,String destWhNo){
this.organizeCode=organizeCode; this.organizeCode=organizeCode;
this.orderNo=orderNo; this.orderNo=orderNo;
this.item=item; this.item=item;
@ -232,6 +232,9 @@ public class WmsMoveSn extends BaseBean {
this.destSnStatus=destSnStatus; this.destSnStatus=destSnStatus;
this.lotNo=lotNo; this.lotNo=lotNo;
this.dateCode=dateCode; this.dateCode=dateCode;
this.refSrc = refSrc;
this.destZoneNo = destZoneNo;
this.destWhNo =destWhNo;
} }
} }

@ -167,7 +167,7 @@ public class WmsTransQuan extends BaseBean {
public WmsTransQuan(String organizeCode,String partNo,String partNameRdd,String transCode,String unit,String whNo,String zoneNo, public WmsTransQuan(String organizeCode,String partNo,String partNameRdd,String transCode,String unit,String whNo,String zoneNo,
Double qty,Double failQty,Double holdQty,Double scrapQty,Double qcQty,Double rinQty, Double qty,Double failQty,Double holdQty,Double scrapQty,Double qcQty,Double rinQty,
Double freezeQty,Double consignQty,Double lockQty){ Double freezeQty,Double consignQty,Double lockQty,String createUser,String createDatetime){
this.organizeCode = organizeCode; this.organizeCode = organizeCode;
this.partNo = partNo; this.partNo = partNo;
this.partNameRdd = partNameRdd; this.partNameRdd = partNameRdd;
@ -184,6 +184,8 @@ public class WmsTransQuan extends BaseBean {
this.freezeQty = freezeQty; this.freezeQty = freezeQty;
this.consignQty = consignQty; this.consignQty = consignQty;
this.lockQty = lockQty; this.lockQty = lockQty;
this.createUser = createUser;
this.createDatetime = createDatetime;
} }

@ -2051,6 +2051,8 @@ public class WmsHqlPack {
DdlPreparedPack.getNumEqualPack(wmsCSRange.getLocateNo(), "locateNo", result); DdlPreparedPack.getNumEqualPack(wmsCSRange.getLocateNo(), "locateNo", result);
DdlPreparedPack.getStringLikerPack(wmsCSRange.getZoneNo(), "zoneNo", result); DdlPreparedPack.getStringLikerPack(wmsCSRange.getZoneNo(), "zoneNo", result);
DdlPreparedPack.getOrderByPack(new Object[]{1}, new String[]{"item"}, result);
getStringBuilderPack(wmsCSRange, result); getStringBuilderPack(wmsCSRange, result);
return result; return result;

@ -127,6 +127,12 @@
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-softswitch</artifactId>
<version>${project.version}</version>
</dependency>
<!-- spring-json转换 --> <!-- spring-json转换 -->
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>

Loading…
Cancel
Save