Merge branch 'dev' of http://git.estsh.com/i3-IMPP/i3plus-pojo into dev
commit
638d9cb1a1
@ -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 {
|
||||
}
|
@ -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,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> {
|
||||
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue