Merge branch 'test'
commit
bbfc9b320f
@ -0,0 +1,519 @@
|
||||
package cn.estsh.i3plus.pojo.base.enumutil;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
/**
|
||||
* @Description : 软适配 枚举接口
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2019-08-13 9:34
|
||||
* @Modify:
|
||||
**/
|
||||
public class BlockSoftSwitchEnumUtil {
|
||||
|
||||
/**
|
||||
* 套件类型
|
||||
*/
|
||||
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
||||
public enum CASE_TYPE{
|
||||
SOCKET(10,"SOCKET"),
|
||||
RESTFUL(20,"RESTFUL"),
|
||||
DATASOURCE(30,"数据源"),
|
||||
WEBSERVICE(40,"WebService"),
|
||||
MQ(50,"消息队列"),
|
||||
WebSocket(60,"WebSocket");
|
||||
|
||||
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,"定时调度"),
|
||||
RABBITMQ(3,"MQ 调用");
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 认证方式
|
||||
*/
|
||||
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
||||
public enum VERIFICATION_METHOD{
|
||||
LOGIN(1,"登录");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
VERIFICATION_METHOD(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 KEY_TYPE{
|
||||
ACCOUNT_PASSWORD(1,"账号密码");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
KEY_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 DATA_SOURCE_TYPE {
|
||||
SOURCE_MARIA_DB(100, "MariaDB", "MariaDB 10.1","com.mysql.jdbc.Driver",3306,null),
|
||||
SOURCE_SQL_SERVER(200, "SQL Server", "SQL Server 2017","com.microsoft.sqlserver.jdbc.SQLServerDriver",1433,"dbo"),
|
||||
SOURCE_ORACLE(300, "Oracle", "Oralce 12C","oracle.jdbc.driver.OracleDriver",1521,null),
|
||||
SOURCE_POSTGRE_SQL(400, "PostgreSql", "PostgreSql 10.5","org.postgresql.Driver",5432,"public");
|
||||
|
||||
private int value;
|
||||
private String code;
|
||||
private String description;
|
||||
private String driverClassName;
|
||||
private int defaultPort;
|
||||
private String defaultSchemaPattern;
|
||||
|
||||
private DATA_SOURCE_TYPE (int value, String code, String description,String driverClassName,int port,String defaultSchemaPattern) {
|
||||
this.value = value;
|
||||
this.code = code;
|
||||
this.description = description;
|
||||
this.driverClassName = driverClassName;
|
||||
this.defaultPort = port;
|
||||
this.defaultSchemaPattern = defaultSchemaPattern;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public String getDriverClassName() {
|
||||
return driverClassName;
|
||||
}
|
||||
|
||||
public int getDefaultPort() {
|
||||
return defaultPort;
|
||||
}
|
||||
|
||||
public String getDefaultSchemaPattern() {
|
||||
return defaultSchemaPattern;
|
||||
}
|
||||
|
||||
public static String valueOfCode(int val) {
|
||||
String tmp = null;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].value == val) {
|
||||
tmp = values()[i].code;
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
public static int codeOfValue(String code) {
|
||||
int tmp = 1;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].code.equals(code)) {
|
||||
tmp = values()[i].value;
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public static BlockSoftSwitchEnumUtil.DATA_SOURCE_TYPE valueOf(int val) {
|
||||
String tmp = null;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].value == val) {
|
||||
return values()[i];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String codeOfDescription(String code) {
|
||||
String tmp = null;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].code.equals(code)) {
|
||||
tmp = values()[i].description;
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
public String getJDBCUrl(String database,String host,Integer port){
|
||||
if(this.getValue() == SOURCE_MARIA_DB.getValue()){
|
||||
return getJDBCUrlMySQL(database,host,port);
|
||||
}else if(this.getValue() == SOURCE_ORACLE.getValue()){
|
||||
return getJDBCUrlOracle(database,host,port);
|
||||
}else if(this.getValue() == SOURCE_POSTGRE_SQL.getValue()){
|
||||
return getJDBCUrlPostgreSQL(database,host,port);
|
||||
}else if(this.getValue() == SOURCE_SQL_SERVER.getValue()){
|
||||
return getJDBCUrlSQLServer(database,host,port);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static BlockSoftSwitchEnumUtil.DATA_SOURCE_TYPE getDataSourceURL(String databaseProductName){
|
||||
if(StringUtils.isNotBlank(databaseProductName)){
|
||||
if(databaseProductName.indexOf(":mysql:") != -1){
|
||||
return SOURCE_MARIA_DB;
|
||||
}else if(databaseProductName.indexOf(":oracle:") != -1){
|
||||
return SOURCE_ORACLE;
|
||||
}else if(databaseProductName.indexOf(":postgresql:") != -1){
|
||||
return SOURCE_POSTGRE_SQL;
|
||||
}else if(databaseProductName.indexOf(":sqlserver:") != -1){
|
||||
return SOURCE_SQL_SERVER;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private String getJDBCUrlMySQL(String database,String host,Integer port){
|
||||
return "jdbc:mysql://"+host+":"+port+"/"+database+"?autoReconnect=true&useSSL=false&characterEncoding=utf-8";
|
||||
}
|
||||
|
||||
private String getJDBCUrlOracle(String database,String host,Integer port){
|
||||
return "jdbc:oracle:thin:@"+host+":"+port+":"+database;
|
||||
}
|
||||
|
||||
private String getJDBCUrlPostgreSQL(String database,String host,Integer port){
|
||||
return "jdbc:postgresql://"+host+":"+port+"/"+database;
|
||||
}
|
||||
|
||||
private String getJDBCUrlSQLServer(String database,String host,Integer port){
|
||||
return "jdbc:sqlserver://" + host + ":" + port + ";database=" + database;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 参数值类型
|
||||
*/
|
||||
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
||||
public enum PARAM_VALUE_TYPE{
|
||||
NUM(10,"数字"),
|
||||
STRING(20,"字符串"),
|
||||
BOOLEAN(30,"布尔"),
|
||||
MAP(40,"字典"),
|
||||
LIST(50,"列表");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
PARAM_VALUE_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 PARAM_TYPE{
|
||||
OUT_PARAM(1,"出参"),
|
||||
IN_PARAM(2,"入参"),
|
||||
REQUEST_HEADER(3,"请求头");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
PARAM_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 SUIT_MODE{
|
||||
ACTIVE(1,"客户端"),
|
||||
PASSIVE(2,"服务端");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
SUIT_MODE(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 SUIT_METHOD{
|
||||
ACTIVE(1,"主动适配"),
|
||||
SCHEDULE(2,"定时调度");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
SUIT_METHOD(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 DATABASE_OPERATE_TYPE{
|
||||
READ(1,"读取"),
|
||||
WRITE(2,"写入");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
DATABASE_OPERATE_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 SUIT_SERVER_WEB_SERVICE{
|
||||
ACTIVE(40001,"serverWebServiceHello","hello"),
|
||||
SCHEDULE(40002,"serverWebServiceSendEmail","邮件测试");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
private String clazzName;
|
||||
|
||||
SUIT_SERVER_WEB_SERVICE(int value, String clazzName,String description) {
|
||||
this.value = value;
|
||||
this.clazzName = clazzName;
|
||||
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,154 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.base.enumutil;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
/**
|
||||
* @Description : 软适配 枚举接口
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2019-08-13 9:34
|
||||
* @Modify:
|
||||
**/
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 认证方式
|
||||
*/
|
||||
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
||||
public enum VERIFICATION_METHOD{
|
||||
LOGIN(1,"登录");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
VERIFICATION_METHOD(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 KEY_TYPE{
|
||||
ACCOUNT_PASSWORD(1,"账号密码");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
KEY_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;
|
||||
}
|
||||
}
|
||||
|
||||
//keyTypeId
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.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 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;
|
||||
import javax.persistence.Transient;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 账号离线登陆表
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-09-01 11:02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="MES_PCN_SYS_USER_OFFLINE")
|
||||
@Api(value="账号离线登陆表",description = "账号离线登陆表。")
|
||||
public class MesPcnSysUserOffline extends BaseBean {
|
||||
|
||||
@Column(name = "USER_ID")
|
||||
@ApiParam(value = "人员ID", example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long userId;
|
||||
|
||||
@Column(name = "USER_CODE")
|
||||
@ApiParam(value = "用户编号", access = "用户编号")
|
||||
private String userCode;
|
||||
|
||||
@Column(name = "USER_NAME")
|
||||
@ApiParam(value = "用户名称", access = "账号名称")
|
||||
private String userName;
|
||||
|
||||
@Column(name = "LOGIN_NAME")
|
||||
@ApiParam(value = "登陆名称", access = "登陆名称")
|
||||
private String loginName;
|
||||
|
||||
@Column(name="ORGANIZE_ID")
|
||||
@ApiParam(value ="部门ID" , example ="-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long organizeId;
|
||||
|
||||
@Column(name="ORGANIZE_NAME")
|
||||
@ApiParam(value ="部门名称" , access ="部门名称")
|
||||
private String organizeName;
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesPcnSysUserOffline;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-09-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesPcnSysUserOfflineRepository extends BaseRepository<MesPcnSysUserOffline, Long> {
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import cn.estsh.i3plus.pojo.softswitch.bean.BsSocketSuitCase;
|
||||
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCase;
|
||||
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCaseDataSource;
|
||||
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCaseWebService;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description : 适配器model
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2019-09-04 15:30
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
public class BsSuitCaseModel {
|
||||
|
||||
@ApiParam(value = "适配器")
|
||||
private BsSuitCase bsSuitCase;
|
||||
|
||||
@ApiParam(value = "数据源适配套件")
|
||||
private BsSuitCaseDataSource bsDataSourceSuitCase;
|
||||
|
||||
@ApiParam(value = "socket适配套件")
|
||||
private BsSocketSuitCase bsSocketSuitCase;
|
||||
|
||||
@ApiParam(value = "Web Service 适配套件")
|
||||
private BsSuitCaseWebService webService;
|
||||
|
||||
}
|
@ -1,26 +1,26 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description : 数据模型转换对象
|
||||
* @Reference :
|
||||
* @Author : alwaysfrin
|
||||
* @CreateDate : 2019-04-29 11:11
|
||||
* @Modify:
|
||||
**/
|
||||
public class DataSwitchModel {
|
||||
|
||||
private String stringVal;
|
||||
|
||||
private Long longVal;
|
||||
|
||||
private Double doubleVal;
|
||||
|
||||
private List<?> listVal;
|
||||
|
||||
private Map<String,?> mapVal;
|
||||
|
||||
private Object[] arrayVal;
|
||||
}
|
||||
//package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
//
|
||||
//import java.util.List;
|
||||
//import java.util.Map;
|
||||
//
|
||||
///**
|
||||
// * @Description : 数据模型转换对象
|
||||
// * @Reference :
|
||||
// * @Author : alwaysfrin
|
||||
// * @CreateDate : 2019-04-29 11:11
|
||||
// * @Modify:
|
||||
// **/
|
||||
//public class DataSwitchModel {
|
||||
//
|
||||
// private String stringVal;
|
||||
//
|
||||
// private Long longVal;
|
||||
//
|
||||
// private Double doubleVal;
|
||||
//
|
||||
// private List<?> listVal;
|
||||
//
|
||||
// private Map<String,?> mapVal;
|
||||
//
|
||||
// private Object[] arrayVal;
|
||||
//}
|
||||
|
@ -1,50 +1,50 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
import com.thoughtworks.xstream.annotations.XStreamImplicit;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-7-25 下午3:31
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@XStreamAlias("auth")
|
||||
public class PojoAuth{
|
||||
|
||||
@XStreamAsAttribute
|
||||
private Long id;
|
||||
@XStreamAsAttribute
|
||||
private Integer authType;
|
||||
|
||||
@XStreamImplicit
|
||||
private List<Prop> params;
|
||||
|
||||
private String authPath;
|
||||
private String userName ="登录名称";
|
||||
private String password ="登录名称";
|
||||
private String languageCode ="登录名称";
|
||||
|
||||
// 认证令牌
|
||||
private String token;
|
||||
// // 认证令牌集合(复杂认证令牌)
|
||||
// private List<Prop> tokenList;
|
||||
// 原始认证数据
|
||||
@XStreamCDATA
|
||||
private String result;
|
||||
|
||||
public PojoAuth(Long id, Integer authType,String authPath, List<Prop> params) {
|
||||
this.id = id;
|
||||
this.authType = authType;
|
||||
this.authPath = authPath;
|
||||
this.params = params;
|
||||
}
|
||||
}
|
||||
//package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
//
|
||||
//import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamImplicit;
|
||||
//import lombok.Data;
|
||||
//
|
||||
//import java.util.List;
|
||||
//import java.util.Map;
|
||||
//
|
||||
///**
|
||||
// * @Description :
|
||||
// * @Reference :
|
||||
// * @Author : wei.peng
|
||||
// * @CreateDate : 19-7-25 下午3:31
|
||||
// * @Modify:
|
||||
// **/
|
||||
//@Data
|
||||
//@XStreamAlias("auth")
|
||||
//public class PojoAuth{
|
||||
//
|
||||
// @XStreamAsAttribute
|
||||
// private Long id;
|
||||
// @XStreamAsAttribute
|
||||
// private Integer authType;
|
||||
//
|
||||
// @XStreamImplicit
|
||||
// private List<Prop> params;
|
||||
//
|
||||
// private String authPath;
|
||||
// private String userName ="登录名称";
|
||||
// private String password ="登录名称";
|
||||
// private String languageCode ="登录名称";
|
||||
//
|
||||
// // 认证令牌
|
||||
// private String token;
|
||||
//// // 认证令牌集合(复杂认证令牌)
|
||||
//// private List<Prop> tokenList;
|
||||
// // 原始认证数据
|
||||
// @XStreamCDATA
|
||||
// private String result;
|
||||
//
|
||||
// public PojoAuth(Long id, Integer authType,String authPath, List<Prop> params) {
|
||||
// this.id = id;
|
||||
// this.authType = authType;
|
||||
// this.authPath = authPath;
|
||||
// this.params = params;
|
||||
// }
|
||||
//}
|
@ -1,28 +1,28 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-7-25 下午5:18
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@XStreamAlias("prop")
|
||||
public class Prop {
|
||||
|
||||
@XStreamAsAttribute
|
||||
private Long id;
|
||||
private String paramName;
|
||||
private String paramValue;
|
||||
|
||||
public Prop(Long id, String paramName, String paramValue) {
|
||||
this.id = id;
|
||||
this.paramName = paramName;
|
||||
this.paramValue = paramValue;
|
||||
}
|
||||
}
|
||||
//package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
//
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
//import lombok.Data;
|
||||
//
|
||||
///**
|
||||
// * @Description :
|
||||
// * @Reference :
|
||||
// * @Author : wei.peng
|
||||
// * @CreateDate : 19-7-25 下午5:18
|
||||
// * @Modify:
|
||||
// **/
|
||||
//@Data
|
||||
//@XStreamAlias("prop")
|
||||
//public class Prop {
|
||||
//
|
||||
// @XStreamAsAttribute
|
||||
// private Long id;
|
||||
// private String paramName;
|
||||
// private String paramValue;
|
||||
//
|
||||
// public Prop(Long id, String paramName, String paramValue) {
|
||||
// this.id = id;
|
||||
// this.paramName = paramName;
|
||||
// this.paramValue = paramValue;
|
||||
// }
|
||||
//}
|
||||
|
@ -1,33 +1,33 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-7-25 下午3:31
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@XStreamAlias("request")
|
||||
public class Request{
|
||||
|
||||
@XStreamAsAttribute
|
||||
private Long id;
|
||||
@XStreamAsAttribute
|
||||
private Integer requestType;
|
||||
private String requestPath;
|
||||
|
||||
@XStreamCDATA
|
||||
private String result;
|
||||
|
||||
public Request(Long id, Integer requestType,String requestPath) {
|
||||
this.id = id;
|
||||
this.requestType = requestType;
|
||||
this.requestPath = requestPath;
|
||||
}
|
||||
}
|
||||
//package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
//
|
||||
//import cn.estsh.i3plus.pojo.base.annotation.XStreamCDATA;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
//import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
||||
//import lombok.Data;
|
||||
//
|
||||
///**
|
||||
// * @Description :
|
||||
// * @Reference :
|
||||
// * @Author : wei.peng
|
||||
// * @CreateDate : 19-7-25 下午3:31
|
||||
// * @Modify:
|
||||
// **/
|
||||
//@Data
|
||||
//@XStreamAlias("request")
|
||||
//public class Request{
|
||||
//
|
||||
// @XStreamAsAttribute
|
||||
// private Long id;
|
||||
// @XStreamAsAttribute
|
||||
// private Integer requestType;
|
||||
// private String requestPath;
|
||||
//
|
||||
// @XStreamCDATA
|
||||
// private String result;
|
||||
//
|
||||
// public Request(Long id, Integer requestType,String requestPath) {
|
||||
// this.id = id;
|
||||
// this.requestType = requestType;
|
||||
// this.requestPath = requestPath;
|
||||
// }
|
||||
//}
|
@ -0,0 +1,35 @@
|
||||
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-9-5 下午7:30
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@XStreamAlias("model")
|
||||
public class SuitServerModel {
|
||||
|
||||
// 执行方法命令
|
||||
private String action;
|
||||
// 执行类型固定类型(SoftSwitchEnumUtil.CASE_TYPE)
|
||||
private Integer caseType;
|
||||
/* 认证使用 以后使用 */
|
||||
private String token;
|
||||
// 传输单对象
|
||||
private Object obj;
|
||||
// 传输集合
|
||||
private List list;
|
||||
// 传输键值对
|
||||
private Map<String,Object> map;
|
||||
// 传输 JSON 数据
|
||||
private String json;
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
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 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 : WebService 适配套件
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 2019/9/9 上午11:09
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "BS_SUIT_CASE_WEB_SERVICE")
|
||||
@Api(value = "WebService", description = "WebService 适配套件")
|
||||
public class BsSuitCaseWebService extends BaseBean {
|
||||
|
||||
@Column(name = "SUIT_CASE_ID")
|
||||
@ApiParam(value = "套件id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long suitCaseId;
|
||||
|
||||
@Column(name = "SERVICE_TAG_NAME")
|
||||
@ApiParam(value = "Service Tag Name(包名称)")
|
||||
private String serviceTagName;
|
||||
|
||||
@Column(name = "SERVICE_FUNCTION_NAME")
|
||||
@ApiParam(value = "Service Function Name(方法名称)")
|
||||
private String serviceFunctionName;
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.softswitch.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCaseWebService;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 2019/9/9 上午11:41
|
||||
* @Modify:
|
||||
**/
|
||||
public interface BsSuitCaseWebServiceRepository extends BaseRepository<BsSuitCaseWebService,Long> {
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package cn.estsh.i3plus.pojo.wms.bean.iotio;
|
||||
|
||||
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 : jessica.chen
|
||||
* @CreateDate : 2019-09-09 11:14
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="SWEB_PROCUREMENT_PLAN_ORDER")
|
||||
@Api("开口合同主表")
|
||||
public class SwebProcurementPlanOrder extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = -4332932784803175933L;
|
||||
@Column(name = "ORDER_NO")
|
||||
@ApiParam(value = "合同号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "VENDOR_CODE")
|
||||
@ApiParam(value = "物料名称")
|
||||
private String vendorCode;
|
||||
|
||||
@Column(name = "VENDOR_NAME")
|
||||
@ApiParam(value = "物料名称")
|
||||
private String vendorName;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam(value = "物料名称")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam(value = "物料名称")
|
||||
private String partName;
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.iotio.SwebProcurementPlanOrder;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : jessica.chen
|
||||
* @CreateDate : 2019-09-09 14:49
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface SwebProcurementPlanOrderRepository extends BaseRepository<SwebProcurementPlanOrder, Long> {
|
||||
}
|
Loading…
Reference in New Issue