BSP 调整pojo

yun-zuoyi
castle.zang 3 years ago
parent d5afc6d195
commit d919ef4243

@ -200,4 +200,230 @@ public class BspEnumUtil {
return tmp;
}
}
/**
* 12
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HEART_BEAT {
UP(1, "UP"),
DOWN(2, "DOWN");
private int value;
private String description;
HEART_BEAT(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;
}
}
/**
* 12
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum REGISTRY_TYPE {
MANUAL(1, "MANUAL"),
AUTO(2, "AUTO");
private int value;
private String description;
REGISTRY_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 SOFT_TYPE {
/**
* WMS
*/
WMS(3, "i3wms", "仓库管理软件"),
SWEB(7,"i3sweb", "供应商服务"),
QMS(5, "i3qms", "质量管理软件"),
TMS(101, "i3tms", "运输管理系统"),
/**
* Mes
*/
MES(4, "i3mes", "生产管理软件"),
MES_HISTORY(41,"i3mes-history","生产管理软件历史数据"),
MES_PCN(6, "i3mes-pcn", "生产管理软件-节点中心"),
/**
* PTL
*/
PTL(8, "i3ptl", "亮灯自动拣选"),
PTL_PCN(9, "i3ptl-pcn", "亮灯自动拣选-节点中心"),
/**
* Block
*/
FORM(20, "block-form", "智能表单"),
REPORT(21, "block-report", "智能报表"),
WORKFLOW(22, "block-workflow", "智能工作流"),
JOBFLOW(23, "block-jobflow", "智能作业流"),
SOFTSWITCH(24, "block-softswitch", "软件适配器"),
HARDSWITCH(25, "block-hardswitch", "硬件适配器"),
/**
* LAC
*/
LAC(26, "lac", "连接适配器"),
/**
*
*/
ANDON(27, "andon", "安灯"),
/**
*
*/
APS(28, "i3aps", "高级计划与排产"),
APS_2(18, "i3aps-2", "高级计划与排产-2"),
APS_3(38, "i3aps-3", "高级计划与排产-3"),
APS_4(48, "i3aps-4", "高级计划与排产-4"),
SURFACE(98, "i3surface", "对外服务"),
EAM(108, "eam", "设备信息管理服务"),
/**
*
*/
IMPP(1, "impp-platform", "IMPP平台"),
CLOUD(97, "i3cloud", "微服务"),
SCREEN(100, "i3screen", "通用界面"),
/**
*
*/
CORE(2, "i3core", "i3业务平台"),
MDM(29, "i3mdm", "数据中心MDM"),
/**
*
*/
DEV(9999, "Development", "系统调试"),
/**
*
*/
LEO(50, "impp-leo", "智能调度系统");
/**
* ID
*/
private int value;
/**
*
*/
private String code;
/**
*
*/
private String description;
SOFT_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
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 synchronized static int descriptionOfValue(String desc) {
int tmp = IMPP.value;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
break;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = IMPP.value;
for (int i = 0; i < values().length; i++) {
if (values()[i].name().equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

@ -19,7 +19,7 @@ import java.util.List;
@Api("执行器注册的信息")
public class RegistryParam implements Serializable {
@ApiParam("执行器的名称")
private String appname;
private Integer appType;
@ApiParam("执行器的地址")
private String address;
@ApiParam(value = "注册类型 1:自动 2:手动", defaultValue = "1")

@ -7,6 +7,7 @@ import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Map;
/**
@ -20,7 +21,7 @@ import java.util.Map;
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("远程调用方法参数")
public class RequestModel {
public class RequestModel implements Serializable {
@ApiModelProperty("执行方法的key")
private String methodHandlerKey;
@ApiModelProperty("方法的入参")

@ -30,9 +30,9 @@ public class ExecutorGroupRegistryInfo extends BaseBean implements Serializable
private static final long serialVersionUID = -3871002350228229604L;
@Column(name = "APP_NAME")
@ApiModelProperty("执行器组的applicationName")
private String appName;
@Column(name = "APP_TYPE")
@ApiModelProperty("执行器组的applicationType")
private Integer appType;
@Column(name = "ADDRESS_STR")
@ApiModelProperty("注册地址字符串,地址用逗号间隔")

@ -29,18 +29,14 @@ import java.util.Date;
public class ExecutorRegistryInfo extends BaseBean implements Serializable {
private static final long serialVersionUID = -736085114778936163L;
@Column(name = "APP_NAME")
@ApiModelProperty("执行器application Name")
private String appName;
@Column(name = "APP_TYPE")
@ApiModelProperty("执行器类型,代替appName")
private Integer appType;
@Column(name = "ADDRESS")
@ApiModelProperty("执行器地址包含ip:port")
private String address;
@Column(name = "UPDATE_TIME")
@ApiModelProperty("最近一次心跳时间")
private Date updateTime;
@Column(name = "WEIGHT")
@ApiModelProperty("执行器权重")
private Integer weight;
@ -52,4 +48,8 @@ public class ExecutorRegistryInfo extends BaseBean implements Serializable {
@Column(name = "EXECUTOR_TYPE")
@ApiModelProperty("执行器的类型同枚举Method_group_Type")
private Integer executorType;
@Column(name = "REGISTRY_TYPE")
@ApiModelProperty("执行器注册类型手动1自动注册2")
private Integer registryType;
}

@ -29,16 +29,16 @@ import java.io.Serializable;
public class ExecutorRegistryMethodDocInfo extends BaseBean implements Serializable {
private static final long serialVersionUID = 2770821289940006535L;
@ApiModelProperty(value = "应用名称")
@Column(name = "APP_NAME")
private String appName;
@ApiModelProperty(value = "应用类型")
@Column(name = "APP_TYPE")
private Integer appType;
@Lob
@ApiModelProperty(value = "markdown文本前端渲染")
@Column(name = "MARKDOWN")
private String markdown;
@ApiModelProperty(value = "方法名,方法名和应用名做唯一键")
@Lob
@Column(name = "METHOD_NAME")
private String methodName;

@ -46,9 +46,9 @@ public class ExecutorRegistryMethodInfo extends BaseBean implements Serializable
@ApiModelProperty("方法的版本号")
private String version;
@Column(name = "APP_NAME")
@ApiModelProperty("所属执行器的appName")
private String appName;
@Column(name = "APP_TYPE")
@ApiModelProperty("所属执行器的appType")
private Integer appType;
@Column(name = "METHOD_TYPE")
@ApiModelProperty("方法类型,属于那个执行器类型,同枚举类method_group_type")

@ -43,6 +43,10 @@ public class ScrPanel extends BaseBean implements Serializable {
@ApiModelProperty("Panel名称")
private String panelName;
@Column(name = "PARENT_TEMPLATE_PANEL")
@ApiModelProperty("副本的模板的panel")
private String parentTemplatePanel;
@Column(name = "IS_TEMPLATE")
@ApiModelProperty("是否为模板")
private Integer isTemplate;

Loading…
Cancel
Save