yun-zuoyi
陈思洁 6 years ago
commit 638d9cb1a1

@ -3,6 +3,8 @@ package cn.estsh.i3plus.pojo.base.enumutil;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import java.util.Date;
/** /**
* @Description : * @Description :
* @Reference : * @Reference :
@ -831,8 +833,9 @@ public class BlockFormEnumUtil {
TEXT(200, "TEXT", "文本"), TEXT(200, "TEXT", "文本"),
NUMBER(210, "NUMBER", "数字"), NUMBER(210, "NUMBER", "数字"),
PASSWORD(230, "PASSWORD", "密码"), PASSWORD(230, "PASSWORD", "密码"),
DATE(300, "DATE", "日期(yyyy-MM-dd)"), DATE_TIME(300, "DATE", "日期"),
DATE_TIME(310, "DATE_TIME", "时间(yyyy-MM-dd hh:mm:ss)"), // DATE(300, "DATE", "日期(yyyy-MM-dd)"),
// DATE_TIME(310, "DATE_TIME", "时间(yyyy-MM-dd hh:mm:ss)"),
// ELEMENT(700, "DICT_SELECT", "元素"), // ELEMENT(700, "DICT_SELECT", "元素"),
DICTIONARY(800, "DICT_SELECT", "字典"), DICTIONARY(800, "DICT_SELECT", "字典"),
CASCADE(900, "CASCADE", "级联"); CASCADE(900, "CASCADE", "级联");
@ -973,7 +976,8 @@ public class BlockFormEnumUtil {
NUM_ADD(20, "ADD", "加法计算",Double.class), NUM_ADD(20, "ADD", "加法计算",Double.class),
NUM_LESS(30, "MIN", "减法计算",Double.class), NUM_LESS(30, "MIN", "减法计算",Double.class),
NUM_MAKE(40, "MUL", "乘法计算",Double.class), NUM_MAKE(40, "MUL", "乘法计算",Double.class),
NUM_DIVISION(50, "DIVISION", "除法计算",Double.class); NUM_DIVISION(50, "DIVISION", "除法计算",Double.class),
JOIN_TABLE(60, "JOIN_TABLE", "连表查询",String.class);
private int value; private int value;
private String code; private String code;
@ -1162,16 +1166,16 @@ public class BlockFormEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROPERTY_TYPE { public enum PROPERTY_TYPE {
STRING(10, "String", "字符串", "java.lang.String", String.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.LIKE,null), STRING(10, "String", "字符串", "java.lang.String", String.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.LIKE,""),
CHAR(11, "Character", "单字符", "java.lang.Character", Character.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.EQUAL,null), CHAR(11, "Character", "单字符", "java.lang.Character", Character.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.EQUAL,""),
INTEGER(20, "Integer", "短整型", "java.lang.Integer", Integer.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,null), INTEGER(20, "Integer", "短整型", "java.lang.Integer", Integer.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0"),
LONG(21, "Long", "长整型", "java.lang.Long", Long.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,null), LONG(21, "Long", "长整型", "java.lang.Long", Long.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0"),
DOUBLE(30, "Double", "大浮点型", "java.lang.Double", Double.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,null), DOUBLE(30, "Double", "大浮点型", "java.lang.Double", Double.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0.0"),
FLOAT(31, "Float", "小浮点型", "java.lang.Float", Float.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,null), FLOAT(31, "Float", "小浮点型", "java.lang.Float", Float.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0.0"),
BIG_DECIMAL(32, "Double", "大浮点型", "java.math.BigDecimal", Double.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,null), BIG_DECIMAL(32, "Double", "大浮点型", "java.math.BigDecimal", Double.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0.0"),
BOOLEAN(40, "Boolean", "布尔值", "java.lang.Boolean", Boolean.class,PROPERTY_CONTROL_TYPE.RADIO,SQL_WHERE.EQUAL,null), BOOLEAN(40, "Boolean", "布尔值", "java.lang.Boolean", Boolean.class,PROPERTY_CONTROL_TYPE.RADIO,SQL_WHERE.EQUAL,null),
BYTE(50, "Byte", "字节", "java.lang.Byte", Byte.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.EQUAL,null); BYTE(50, "Byte", "字节", "java.lang.Byte", Byte.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.EQUAL,null),
// DATE(60, "Date", "日期", "java.lang.String", String.class,PROPERTY_CONTROL_TYPE.DATE_TIME,null); DATE_TIME(12, "String", "日期时分秒", "java.sql.Timestamp", String.class,PROPERTY_CONTROL_TYPE.DATE_TIME,SQL_WHERE.BETWEEN,null,"yyyy-MM-dd hh:mm:ss");
/** /**
* *
@ -1204,11 +1208,28 @@ public class BlockFormEnumUtil {
private SQL_WHERE defaultWhere; private SQL_WHERE defaultWhere;
/** /**
*
*/
private String defaultFormat;
/**
* *
*/ */
private String defaultValue; private String defaultValue;
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue) { private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere) {
this.value = value;
this.code = code;
this.description = description;
this.classPath = classPath;
this.clzFullName = clzFullName;
this.controlType = controlType;
this.defaultWhere = defaultWhere;
}
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue) {
this.value = value; this.value = value;
this.code = code; this.code = code;
this.description = description; this.description = description;
@ -1217,6 +1238,20 @@ public class BlockFormEnumUtil {
this.controlType = controlType; this.controlType = controlType;
this.defaultWhere = defaultWhere; this.defaultWhere = defaultWhere;
this.defaultValue = defaultValue; this.defaultValue = defaultValue;
this.defaultFormat = defaultFormat;
}
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue,String defaultFormat) {
this.value = value;
this.code = code;
this.description = description;
this.classPath = classPath;
this.clzFullName = clzFullName;
this.controlType = controlType;
this.defaultWhere = defaultWhere;
this.defaultValue = defaultValue;
this.defaultFormat = defaultFormat;
} }
public int getValue() { public int getValue() {
@ -1247,6 +1282,14 @@ public class BlockFormEnumUtil {
return defaultWhere; return defaultWhere;
} }
public String getDefaultFormat() {
return defaultFormat;
}
public String getDefaultValue() {
return defaultValue;
}
public static String valueOfCode(int val) { public static String valueOfCode(int val) {
String tmp = null; String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
@ -2377,7 +2420,8 @@ public class BlockFormEnumUtil {
LIKE(7, "LIKE", "全模糊"), LIKE(7, "LIKE", "全模糊"),
START_LIKE(7, "LIKE", "前模糊"), START_LIKE(7, "LIKE", "前模糊"),
END_LIKE(7, "LIKE", "后模糊"), END_LIKE(7, "LIKE", "后模糊"),
IN(8, "in", "in"); IN(8, "in", "in"),
BETWEEN(9, "BETWEEN", "区间查询(逗号区分)"),;
private int value; private int value;
private String code; private String code;

@ -0,0 +1,11 @@
package cn.estsh.i3plus.pojo.base.enumutil;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:34
* @Modify:
**/
public class SoftSwitchEnumUtil {
}

@ -70,6 +70,11 @@ public class BfElementPropertyVirtual extends BaseBean {
@ApiParam(value = "提示信息") @ApiParam(value = "提示信息")
private String propertyLabelText; private String propertyLabelText;
@Lob
@ApiParam(value = "自定义执行SQL")
@Column(name = "PROPERTY_EXECUTE_SQL")
private String propertyExecuteSql;
@Column(name = "PROPERTY_SORT") @Column(name = "PROPERTY_SORT")
@ApiParam(value = "显示顺序") @ApiParam(value = "显示顺序")
private Integer propertySort; private Integer propertySort;

@ -37,6 +37,10 @@ public class BfMenu extends BaseBean {
@ApiParam(value ="菜单名称") @ApiParam(value ="菜单名称")
private String menuName; private String menuName;
@Column(name="MENU_CODE")
@ApiParam(value ="功能代码(唯一校验,路径跳转使用)")
private String menuCode;
@Column(name="PARENT_ID") @Column(name="PARENT_ID")
@ApiParam(value ="父级菜单id") @ApiParam(value ="父级菜单id")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)

@ -105,20 +105,20 @@ public class SysUser extends BaseBean {
@ApiParam(value ="组织名称" , access ="组织名称") @ApiParam(value ="组织名称" , access ="组织名称")
private String organizeNameRdd; private String organizeNameRdd;
@Lob // @Lob
@Column(name="ROLE_NAMES_RDD") // @Column(name="ROLE_NAMES_RDD")
@ApiParam(value ="角色名称集合") // @ApiParam(value ="角色名称集合")
private String roleNamesRdd; // private String roleNamesRdd;
//
@Lob // @Lob
@Column(name="DEPARTMENT_NAMES_RDD") // @Column(name="DEPARTMENT_NAMES_RDD")
@ApiParam(value ="部门名称集合") // @ApiParam(value ="部门名称集合")
private String departmentNamesRdd; // private String departmentNamesRdd;
//
@Lob // @Lob
@Column(name="ORGANIZE_NAMES_RDD") // @Column(name="ORGANIZE_NAMES_RDD")
@ApiParam(value ="组织名称集合") // @ApiParam(value ="组织名称集合")
private String organizeNamesRdd; // private String organizeNamesRdd;
/********************************** 非数据库信息 ********************************/ /********************************** 非数据库信息 ********************************/

@ -183,28 +183,28 @@ public class SysUserInfo extends BaseBean {
@ApiParam(value ="部门名称" , access ="部门名称") @ApiParam(value ="部门名称" , access ="部门名称")
private String departmentNameRdd; private String departmentNameRdd;
@Column(name="DEPARTMENT_NAMES_RDD") // @Column(name="DEPARTMENT_NAMES_RDD")
@ApiParam(value ="部门集合" , access ="部门集合") // @ApiParam(value ="部门集合" , access ="部门集合")
@AnnoOutputColumn(hidden = true) // @AnnoOutputColumn(hidden = true)
private String departmentNamesRdd; // private String departmentNamesRdd;
@Column(name="POSITION_NAME_RDD") @Column(name="POSITION_NAME_RDD")
@ApiParam(value ="岗位名称" , access ="岗位名称") @ApiParam(value ="岗位名称" , access ="岗位名称")
private String positionNameRdd; private String positionNameRdd;
@Column(name="POSITION_NAMES_RDD") // @Column(name="POSITION_NAMES_RDD")
@ApiParam(value ="岗位集合" , access ="岗位集合") // @ApiParam(value ="岗位集合" , access ="岗位集合")
@AnnoOutputColumn(hidden = true) // @AnnoOutputColumn(hidden = true)
private String positionNamesRdd; // private String positionNamesRdd;
@Column(name="ORGANIZE_NAME_RDD") @Column(name="ORGANIZE_NAME_RDD")
@ApiParam(value ="组织名称" , access ="组织名称") @ApiParam(value ="组织名称" , access ="组织名称")
private String organizeNameRdd; private String organizeNameRdd;
@Column(name="ORGANIZE_NAMES_RDD") // @Column(name="ORGANIZE_NAMES_RDD")
@ApiParam(value ="组织集合" , access ="组织集合") // @ApiParam(value ="组织集合" , access ="组织集合")
@AnnoOutputColumn(hidden = true) // @AnnoOutputColumn(hidden = true)
private String organizeNamesRdd; // private String organizeNamesRdd;
/********************************** 非数据库信息 ********************************/ /********************************** 非数据库信息 ********************************/

@ -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;
} }
/** /**

@ -0,0 +1,59 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_DATA_SOURCE")
@Api(value = "数据源管理", description = "数据源管理")
public class BsDataSource extends BaseBean {
@Column(name = "DATA_SOURCE_NAME")
@ApiParam(value = "数据源名称")
private String dataSourceName;
@Column(name = "DATA_SOURCE_TYPE_ID")
@ApiParam(value = "数据源类型id")
private int dataSourceTypeId;
@Column(name = "DATA_SOURCE_HOST")
@ApiParam(value = "数据源主机")
private String dataSourceHost;
@Column(name = "DATA_SOURCE_PORT")
@ApiParam(value = "数据源端口")
private int dataSourcePort;
@Column(name = "DATA_SOURCE_USER")
@ApiParam(value = "用户名")
private String dataSourceUser;
@Column(name = "DATA_SOURCE_PASSWORD")
@ApiParam(value = "密码")
private String dataSourcePassword;
@Column(name = "DATA_SOURCE_DESCRIPTION")
@ApiParam(value = "数据源用户描述")
private String dataSourceDescription;
}

@ -0,0 +1,47 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_DATA_SOURCE_SUIT_CASE")
@Api(value = "数据库套件", description = "数据库套件")
public class BsDataSourceSuitCase extends BaseBean {
@Column(name = "SUIT_CASE_ID")
@ApiParam(value = "套件id")
private long suitCaseId;
@Column(name = "DATA_SOURCE_MODE_ID")
@ApiParam(value = "数据源套件模式(枚举,被动读,主动写)")
private int dataSourceModeId;
@Column(name = "DATA_SOURCE_ID")
@ApiParam(value = "数据源id")
private long dataSourceId;
@Column(name = "DATA_SOURCE_NAME_RDD")
@ApiParam(value = "数据源名称")
private String dataSourceNameRdd;
}

@ -0,0 +1,55 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_DATA_SOURCE_SUIT_CASE_TABLE")
@Api(value = "数据库表操作", description = "数据库表操作")
public class BsDataSourceSuitCaseTable extends BaseBean {
@Column(name = "SUIT_CASE_ID")
@ApiParam(value = "套件id")
private long suitCaseId;
@Column(name = "TABLE_NAME")
@ApiParam(value = "数据库表名")
private String tableName;
@Column(name = "QUERY_SQL")
@ApiParam(value = "查询sql")
private String querySql;
@Column(name = "AFTER_QUERY_SQL")
@ApiParam(value = "查询后操作sql")
private String afterQuerySql;
@Column(name = "INSERT_SQL")
@ApiParam(value = "插入sql")
private String insertSql;
@Column(name = "AFTER_INSERT_SQL")
@ApiParam(value = "插入后执行sql")
private String afterInsertSql;
}

@ -0,0 +1,51 @@
package cn.estsh.i3plus.pojo.softswitch.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 : MQ
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_MESSAGE_QUEUE")
@Api(value = "MQ管理", description = "MQ管理")
public class BsMessageQueue extends BaseBean {
@Column(name = "MESSAGE_QUEUE_NAME")
@ApiParam(value = "消息队列名称")
private String messageQueueName;
@Column(name = "MESSAGE_QUEUE_TYPE")
@ApiParam(value = "消息队列类型")
private int messageQueueType;
@Column(name = "MESSAGE_QUEUE_HOST")
@ApiParam(value = "消息队列主机")
private String messageQueueHost;
@Column(name = "MESSAGE_QUEUE_PORT")
@ApiParam(value = "消息队列端口")
private int messageQueuePort;
@Column(name = "CERTIFICATE_ID")
@ApiParam(value = "证书id")
private long certificateId;
}

@ -0,0 +1,67 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_PARAM_ADAPTER")
@Api(value = "数据适配转换", description = "数据适配转换")
public class BsParamAdapter extends BaseBean {
@Column(name = "SUIT_CASE_ID")
@ApiParam(value = "适配套件id")
private long suitCaseId;
@Column(name = "SUIT_CASE_NAME")
@ApiParam(value = "适配套件名称")
private String suitCaseName;
@Column(name = "SUIT_CASE_CODE")
@ApiParam(value = "适配套件代码")
private String suitCaseCode;
@Column(name = "SUIT_PARAM_TYPE_ID")
@ApiParam(value = "参数类型枚举")
private int suitParamTypeId;
@Column(name = "SUIT_PARAM_ID")
@ApiParam(value = "原参数id")
private long suitParamId;
@Column(name = "SUIT_PARAM_NAME_RDD")
@ApiParam(value = "参数名称")
private String suitParamNameRdd;
@Column(name = "SUIT_PARAM_VAL_TYPE_ID")
@ApiParam(value = "原参数值类型")
private int suitParamValTypeId;
@Column(name = "TRANSFER_PARAM_NAME")
@ApiParam(value = "转换参数名称")
private String transferParamName;
@Column(name = "TRANSFER_PARAM_VAL_TYPE_ID")
@ApiParam(value = "转换参数类型")
private int transferParamValTypeId;
}

@ -0,0 +1,39 @@
package cn.estsh.i3plus.pojo.softswitch.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 : socket
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SOCKET_SUIT_CASE")
@Api(value = "socket套件", description = "socket套件")
public class BsSocketSuitCase extends BaseBean {
@Column(name = "SOCKET_TYPE_ID")
@ApiParam(value = "socket类型枚举")
private int socketTypeId;
@Column(name = "SOCKET_MODE_ID")
@ApiParam(value = "socket模式(枚举,服务端,客户端)")
private int socketModeId;
}

@ -0,0 +1,67 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SSL_KEY")
@Api(value = "安全证书", description = "安全证书")
public class BsSslKey extends BaseBean {
@Column(name = "VERIFICATION_METHOD_ID")
@ApiParam(value = "认证方式(枚举)")
private int verificationMethodId;
@Column(name = "VERIFICATION_URL")
@ApiParam(value = "认证url")
private String verificationUrl;
@Column(name = "KEY_TYPE")
@ApiParam(value = "证书类型枚举")
private int keyType;
@Column(name = "KEY_NAME")
@ApiParam(value = "证书名称")
private String keyName;
@Column(name = "KEY_FILE_ID")
@ApiParam(value = "证书文件id")
private long keyFileId;
@Column(name = "KEY_FILE_PATH")
@ApiParam(value = "证书文件路径")
private String keyFilePath;
@Column(name = "KEY_FILE_NAME")
@ApiParam(value = "证书文件名称")
private String keyFileName;
@Column(name = "KEY_CONTENT")
@ApiParam(value = "秘钥内容")
private String keyContent;
@Column(name = "KEY_DESCRIPTION")
@ApiParam(value = "证书描述")
private String keyDescription;
}

@ -0,0 +1,87 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SUIT_CASE")
@Api(value = "适配套件", description = "适配套件")
public class BsSuitCase extends BaseBean {
@Column(name = "CASE_TYPE_ID")
@ApiParam(value = "套件类型id(枚举)")
private int caseTypeId;
@Column(name = "CASE_DETAIL_ID")
@ApiParam(value = "适配器明细id")
private long caseDetailId;
@Column(name = "SUIT_TYPE_ID")
@ApiParam(value = "适配类型id")
private long suitTypeId;
@Column(name = "SUIT_TYPE_NAME")
@ApiParam(value = "适配类型名称")
private String suitTypeName;
@Column(name = "SUIT_CASE_CODE")
@ApiParam(value = "适配器代码")
private String suitCaseCode;
@Column(name = "SUIT_CASE_HOST")
@ApiParam(value = "适配主机")
private String suitCaseHost;
@Column(name = "SUIT_CASE_PORT")
@ApiParam(value = "适配端口")
private int suitCasePort;
@Column(name = "IS_NEED_CERTIFICATION")
@ApiParam(value = "是否需要认证")
private int isNeedCertification;
@Column(name = "CERTIFICATE_ID")
@ApiParam(value = "证书id")
private long certificateId;
@Column(name = "TIMING_SUIT_NUM")
@ApiParam(value = "定时适配次数")
private int timingSuitNum;
@Column(name = "INITIATIVE_SUIT_NUM")
@ApiParam(value = "主动适配测试")
private int initiativeSuitNum;
@Column(name = "SUCCESS_NUM")
@ApiParam(value = "成功次数")
private int successNum;
@Column(name = "FAIL_NUM")
@ApiParam(value = "失败次数")
private int failNum;
@Column(name = "SUIT_CASE_DESCRIPTION")
@ApiParam(value = "适配类型描述")
private String suitCaseDescription;
}

@ -0,0 +1,59 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SUIT_CASE_PARAM")
@Api(value = "适配器出入参", description = "适配器出入参")
public class BsSuitCaseParam extends BaseBean {
@Column(name = "SUIT_CASE_ID")
@ApiParam(value = "套件id")
private long suitCaseId;
@Column(name = "SUIT_CASE_CODE_RDD")
@ApiParam(value = "套件代码")
private String suitCaseCodeRdd;
@Column(name = "PARAM_TYPE_ID")
@ApiParam(value = "参数类型,枚举(出,入)")
private int paramTypeId;
@Column(name = "PARAM_NAME")
@ApiParam(value = "参数名称)")
private String paramName;
@Column(name = "PARAM_VAL_TYPE_ID")
@ApiParam(value = "参数值类型")
private int paramValTypeId;
@Column(name = "PARAM_DEFAULT_VAL")
@ApiParam(value = "参数默认值")
private String paramDefaultVal;
@Column(name = "PARAM_DESCRIPTION")
@ApiParam(value = "参数描述")
private String paramDescription;
}

@ -0,0 +1,67 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SUIT_DATA_DETAIL")
@Api(value = "适配报文详情", description = "适配报文详情")
public class BsSuitDataDetail extends BaseBean {
@Column(name = "SUIT_CASE_NAME_RDD")
@ApiParam(value = "适配套件名称")
private String suitCaseNameRdd;
@Column(name = "SUIT_CASE_CODE_RDD")
@ApiParam(value = "适配套件代码")
private String suitCaseCodeRdd;
@Column(name = "SUIT_TYPE_NAME_RDD")
@ApiParam(value = "适配类型名称")
private String suitTypeNameRdd;
@Column(name = "SUIT_RECORD_ID")
@ApiParam(value = "适配记录id")
private long suitRecordId;
@Column(name = "GET_DATE_TIME")
@ApiParam(value = "获取报文时间")
private String getDateTime;
@Column(name = "ORGIN_DATA")
@ApiParam(value = "原始报文数据")
private String orginData;
@Column(name = "TRANS_DATA")
@ApiParam(value = "转换后的报文数据")
private String transData;
@Column(name = "PROCESS_STATE")
@ApiParam(value = "处理状态")
private int processState;
@Column(name = "PROCESS_TIME")
@ApiParam(value = "处理时间")
private String processTime;
}

@ -0,0 +1,87 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SUIT_RECORD")
@Api(value = "适配记录", description = "适配记录")
public class BsSuitRecord extends BaseBean {
@Column(name = "SUIT_CASE_NAME_RDD")
@ApiParam(value = "适配套件名称")
private String suitCaseNameRdd;
@Column(name = "SUIT_CASE_CODE_RDD")
@ApiParam(value = "适配套件代码")
private String suitCaseCodeRdd;
@Column(name = "SUIT_CASE_TYPE")
@ApiParam(value = "适配套件类型id枚举")
private int suitCaseType;
@Column(name = "SUIT_CASE_ID")
@ApiParam(value = "适配器套件id")
private long suitCaseId;
@Column(name = "SUIT_CASE_DETAIL_ID")
@ApiParam(value = "适配套件明细id")
private long suitCaseDetailId;
@Column(name = "SUIT_METHOD_ID")
@ApiParam(value = "适配方式id枚举")
private int suitMethodId;
@Column(name = "SUIT_TYPE_ID")
@ApiParam(value = "适配类型id")
private long suitTypeId;
@Column(name = "SUIT_TYPE_NAME_RDD")
@ApiParam(value = "适配类型名称")
private String suitTypeNameRdd;
@Column(name = "REQUEST_SOURCE")
@ApiParam(value = "请求来源(枚举)")
private int requestSource;
@Column(name = "SUIT_SSL_KEY_ID")
@ApiParam(value = "证书id")
private long suitSslKeyId;
@Column(name = "SUIT_SSL_KEY_NAME_RDD")
@ApiParam(value = "证书名称")
private String suitSslKeyNameRdd;
@Column(name = "SUIT_RESULT")
@ApiParam(value = "适配结果")
private int suitResult;
@Column(name = "PROCESS_STATE")
@ApiParam(value = "处理状态")
private int processState;
@Column(name = "PROCESS_TIME")
@ApiParam(value = "处理时间")
private String processTime;
}

@ -0,0 +1,47 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SUIT_REQUEST_RECORD")
@Api(value = "请求适配记录", description = "请求适配记录")
public class BsSuitRequestRecord extends BaseBean {
@Column(name = "SUIT_RECORD_ID")
@ApiParam(value = "适配记录id")
private long suitRecordId;
@Column(name = "SUIT_CASE_ID")
@ApiParam(value = "适配器套件id")
private long suitCaseId;
@Column(name = "REQUEST_SOURCE")
@ApiParam(value = "请求来源(枚举)")
private int requestSource;
@Column(name = "REQUEST_ORGIN_PARAM")
@ApiParam(value = "请求原始参数")
private String requestOrginParam;
}

@ -0,0 +1,47 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SUIT_SCHEDULE")
@Api(value = "定时适配任务", description = "定时适配任务")
public class BsSuitSchedule extends BaseBean {
@Column(name = "SUIT_CASE_ID")
@ApiParam(value = "适配套件id")
private long suitCaseId;
@Column(name = "SUIT_CASE_NAME_RDD")
@ApiParam(value = "适配套件名称")
private String suitCaseNameRdd;
@Column(name = "EXECUTE_CRON")
@ApiParam(value = "执行时间表达式")
private String executeCron;
@Column(name = "LAST_EXECUTE_DATE_TIME")
@ApiParam(value = "最后一次执行时间")
private String lastExecuteDateTime;
}

@ -0,0 +1,39 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SUIT_TYPE")
@Api(value = "适配类型", description = "适配类型")
public class BsSuitType extends BaseBean {
@Column(name = "SUIT_TYPE_NAME")
@ApiParam(value = "适配类型")
private String suitTypeName;
@Column(name = "SUIT_CASE_NUM")
@ApiParam(value = "适配器数量")
private int suitCaseNum;
}

@ -0,0 +1,43 @@
package cn.estsh.i3plus.pojo.softswitch.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 : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "SUIT_RECORD_PARAM")
@Api(value = "适配记录参数", description = "适配记录参数")
public class SuitRecordParam extends BaseBean {
@Column(name = "SUIT_RECORD_ID")
@ApiParam(value = "适配记录id")
private long suitRecordId;
@Column(name = "PARAM_NAME")
@ApiParam(value = "参数名称")
private String paramName;
@Column(name = "PARAM_VAL")
@ApiParam(value = "参数值")
private String paramVal;
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsDataSource;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsDataSourceRepository extends BaseRepository<BsDataSource,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsDataSourceSuitCase;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsDataSourceSuitCaseRepository extends BaseRepository<BsDataSourceSuitCase,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsDataSourceSuitCaseTable;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsDataSourceSuitCaseTableRepository extends BaseRepository<BsDataSourceSuitCaseTable,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsMessageQueue;
import org.springframework.stereotype.Repository;
/**
* @Description : MQ
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsMessageQueueRepository extends BaseRepository<BsMessageQueue,Long> {
}

@ -0,0 +1,19 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsParamAdapter;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsParamAdapterRepository extends BaseRepository<BsParamAdapter,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSocketSuitCase;
import org.springframework.stereotype.Repository;
/**
* @Description : socket
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsSocketSuitCaseRepository extends BaseRepository<BsSocketSuitCase,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSslKey;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsSslKeyRepository extends BaseRepository<BsSslKey,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCaseParam;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsSuitCaseParamRepository extends BaseRepository<BsSuitCaseParam,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCase;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsSuitCaseRepository extends BaseRepository<BsSuitCase,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitDataDetail;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsSuitDataDetailRepository extends BaseRepository<BsSuitDataDetail,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitRecord;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsSuitRecordRepository extends BaseRepository<BsSuitRecord,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitRequestRecord;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsSuitRequestRecordRepository extends BaseRepository<BsSuitRequestRecord,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitSchedule;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsSuitScheduleRepository extends BaseRepository<BsSuitSchedule,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitType;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface BsSuitTypeRepository extends BaseRepository<BsSuitType,Long> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.SuitRecordParam;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
* @Modify:
*/
@Repository
public interface SuitRecordParamRepository extends BaseRepository<SuitRecordParam,Long> {
}

@ -2,6 +2,7 @@ package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.TestDataBase; import cn.estsh.i3plus.pojo.softswitch.bean.TestDataBase;
import org.springframework.stereotype.Repository;
/** /**
* @Description : * @Description :
@ -10,5 +11,6 @@ import cn.estsh.i3plus.pojo.softswitch.bean.TestDataBase;
* @CreateDate : 2019-02-28 15:48 * @CreateDate : 2019-02-28 15:48
* @Modify: * @Modify:
**/ **/
@Repository
public interface TestDataBaseRepository extends BaseRepository<TestDataBase,Long> { public interface TestDataBaseRepository extends BaseRepository<TestDataBase,Long> {
} }

@ -0,0 +1,79 @@
package cn.estsh.i3plus.pojo.softswitch.sqlpack;
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCaseParam;
import cn.estsh.i3plus.pojo.softswitch.bean.TestDataBase;
import org.apache.commons.lang3.StringUtils;
/**
* @Description :
* @Reference :
* @Author : Adair Peng
* @CreateDate : 2019-02-28 16:05
* @Modify:
**/
public class SoftSwitchHqlPack {
/**
* In
* @param columnName
* @return
*/
public static String packHqlIds(String columnName,String[] params){
StringBuffer result = new StringBuffer();
// 参数数组 [1,2,3] -> "1,2,3"
HqlPack.getInPack(String.join(",",params),columnName,result);
return result.toString();
}
/**
*
* @param testDataBase
* @return
*/
public static String packHqlTestDataBase(TestDataBase testDataBase){
StringBuffer result = new StringBuffer();
// 查询参数封装
// HqlPack.getStringLikerPack(testDataBase.getName(),"name",result);
return result.toString();
}
/**
*
* @param bsSuitCaseParam
* @return
*/
public static DdlPackBean packHqlBsSuitCaseParam(BsSuitCaseParam bsSuitCaseParam){
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getStringLikerPack(bsSuitCaseParam.getParamName(),"paramName",ddlPackBean);
DdlPreparedPack.getNumEqualPack(bsSuitCaseParam.getParamTypeId(), "paramTypeId", ddlPackBean);
DdlPreparedPack.getNumEqualPack(bsSuitCaseParam.getSuitCaseId(), "suitCaseId", 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;
}
}

@ -1,44 +0,0 @@
package cn.estsh.i3plus.pojo.softswitch.sqlpack;
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
import cn.estsh.i3plus.pojo.softswitch.bean.TestDataBase;
import org.apache.commons.lang3.StringUtils;
/**
* @Description :
* @Reference :
* @Author : Adair Peng
* @CreateDate : 2019-02-28 16:05
* @Modify:
**/
public class SoftswitchHqlPack {
/**
* In
* @param columnName
* @return
*/
public static String packHqlIds(String columnName,String[] params){
StringBuffer result = new StringBuffer();
// 参数数组 [1,2,3] -> "1,2,3"
HqlPack.getInPack(String.join(",",params),columnName,result);
return result.toString();
}
/**
*
* @param testDataBase
* @return
*/
public static String packHqlTestDataBase(TestDataBase testDataBase){
StringBuffer result = new StringBuffer();
// 查询参数封装
// HqlPack.getStringLikerPack(testDataBase.getName(),"name",result);
return result.toString();
}
}

@ -24,18 +24,17 @@ import javax.persistence.Transient;
**/ **/
@Data @Data
@Entity @Entity
@Table(name="WMS_ACTION_STEP_CALL_PARAM") @Table(name = "WMS_ACTION_STEP_CALL_PARAM")
@DynamicInsert @DynamicInsert
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Api(value="作业步骤调用参数表",description = "作业步骤调用参数表") @Api(value = "作业步骤调用参数表", description = "作业步骤调用参数表")
public class WmsActionStepCallParam extends BaseBean { public class WmsActionStepCallParam extends BaseBean {
private static final long serialVersionUID = -2813779192436803301L; private static final long serialVersionUID = -2813779192436803301L;
@Column(name = "AGD_ID") @Column(name = "AGD_ID")
@ApiParam(value = "流程明细编号") @ApiParam(value = "流程明细编号")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long agdId; private Long agdId;
@Column(name = "SEQ") @Column(name = "SEQ")
@ -59,4 +58,15 @@ public class WmsActionStepCallParam extends BaseBean {
@ApiParam(value = "组件名称") @ApiParam(value = "组件名称")
private String amName; private String amName;
@Transient
@ApiParam(value = "流程ID")
private Long agId;
public WmsActionStepCallParam() {
}
public WmsActionStepCallParam(Long id, Long agId) {
this.id = id;
this.agId = agId;
}
} }

@ -334,7 +334,7 @@ public class WmsHqlPack {
DdlPackBean result = new DdlPackBean(); DdlPackBean result = new DdlPackBean();
//查询参数封装 //查询参数封装
DdlPreparedPack.getStringLikerPack(wmsTransType.getTransTypeCode(), "transTypeCode", result); DdlPreparedPack.getStringRightLikerPack(wmsTransType.getTransTypeCode(), "transTypeCode", result);
DdlPreparedPack.getStringLikerPack(wmsTransType.getTransTypeName(), "transTypeName", result); DdlPreparedPack.getStringLikerPack(wmsTransType.getTransTypeName(), "transTypeName", result);
DdlPreparedPack.getNumEqualPack(wmsTransType.getAgId(), "agId", result); DdlPreparedPack.getNumEqualPack(wmsTransType.getAgId(), "agId", result);
@ -922,6 +922,7 @@ public class WmsHqlPack {
DdlPreparedPack.getStringLikerPack(wmsTransQuan.getMoveNo(), "moveNo", result); DdlPreparedPack.getStringLikerPack(wmsTransQuan.getMoveNo(), "moveNo", result);
DdlPreparedPack.getStringEqualPack(wmsTransQuan.getPartNo(), "partNo", result); DdlPreparedPack.getStringEqualPack(wmsTransQuan.getPartNo(), "partNo", result);
DdlPreparedPack.getStringEqualPack(wmsTransQuan.getLocateNo(), "locateNo", result); DdlPreparedPack.getStringEqualPack(wmsTransQuan.getLocateNo(), "locateNo", result);
DdlPreparedPack.getStringEqualPack(wmsTransQuan.getTransTypeName(), "transTypeName", result);
getStringBuilderPack(wmsTransQuan, result); getStringBuilderPack(wmsTransQuan, result);

Loading…
Cancel
Save