feat(form): 动态表单新增跳转详情页枚举

yun-zuoyi
wynne1005 4 years ago
parent b635c10750
commit 6318ca6afc

@ -337,6 +337,7 @@ public class BlockFormEnumUtil {
return tmp;
}
}
/**
*
*/
@ -988,7 +989,6 @@ public class BlockFormEnumUtil {
}
/**
*
*/
@ -1394,7 +1394,6 @@ public class BlockFormEnumUtil {
}
/**
*
*/
@ -1751,8 +1750,8 @@ public class BlockFormEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TRIGGER_EVENT {
CLICK(10, "CLICK", "单击");
// DB_LCLICK(20, "DB_LCLICK", "双击"),
CLICK(10, "CLICK", "单击"),
DOUBLE_CLICK(20, "DOUBLE_CLICK", "双击");
// MOUSE_OUT(30, "MOUSE_OUT", "鼠标指针移出"),
// MOUSE_OVER(40, "MOUSE_OVER", "鼠标指针移入");
@ -1830,6 +1829,88 @@ public class BlockFormEnumUtil {
}
/**
*
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TRIGGER_ACTION {
REFRESH(10, "REFRESH", "刷新元素"),
SHOW_METHOD(20, "SHOW_METHOD", "展示其他功能明细");
private int value;
private String code;
private String description;
private TRIGGER_ACTION(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 static TRIGGER_ACTION 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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -2204,7 +2285,6 @@ public class BlockFormEnumUtil {
}
public static String valueOfCode(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
@ -2405,7 +2485,6 @@ public class BlockFormEnumUtil {
* PROCEDURE_INOUT_PARAM30-sqlserver
* PROCEDURE_OUT_PARAM40-
* PROCEDURE_RETURN50-mysqlsqlserver
*
*/
public enum ORIGIN_PROPERTY_TYPE {
NORMAL_PROPERTY(10, "正常属性"),

@ -62,6 +62,11 @@ public class BfMethodDetailProperty extends BaseBean {
@ApiParam(value = "主对象元素事件")
private Integer priElementEvent;
// 枚举:BlockFormEnumUtil.TRIGGER_ACTION
@Column(name = "PRI_ELEMENT_ACTION")
@ApiParam(value = "主对象元素动作")
private Integer priElementAction;
@Column(name = "SEC_METHOD_DETAIL_ID")
@ApiParam(value = "关联功能明细id")
@JsonSerialize(using = ToStringSerializer.class)

@ -26,7 +26,7 @@ import javax.persistence.Table;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="BF_METHOD_DETAIL_PROPERTY")
@Table(name="BF_METHOD_DETAIL_PROPERTY_REF")
@Api(value="表单功能明细关联属性",description = "表单功能明细关联属性")
public class BfMethodDetailPropertyRef extends BaseBean {

@ -0,0 +1,39 @@
package cn.estsh.i3plus.pojo.model.platform;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author Wynne.Lu
* @date 2021/2/20 4:39
* @desc
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Api("日志字段模型")
public class LogFieldModel implements Serializable {
private static final long serialVersionUID = 6303989757683476327L;
@ApiParam("日志时间")
private String time;
@ApiParam("线程")
private String thread;
@ApiParam("日志等级")
private String level;
@ApiParam("执行堆栈")
private String stack;
@ApiParam("日志信息")
private String message;
}

@ -0,0 +1,57 @@
package cn.estsh.i3plus.pojo.model.platform;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;
/**
* @author Wynne.Lu
* @date 2021/2/20 12:55
* @desc
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Api("系统日志模型")
public class SysLogModel implements Serializable {
private static final long serialVersionUID = -2982120258911167575L;
@ApiParam("查询日期")
private String queryDate;
@ApiParam("查询开始时间")
private String queryBeginTime;
@ApiParam("查询结束时间")
private String queryEndTime;
@ApiParam("索引名称")
private String indexName;
@ApiParam("索引类型")
private Integer indexType;
@ApiParam("聚合时间")
private Integer aggsDuration;
@ApiParam("日志等级")
private Integer level;
@ApiParam("执行线程")
private String thread;
@ApiParam("服务器环境变量HostId")
private String hostId;
@ApiParam("日志信息")
private List<LogFieldModel> logs;
}

@ -17,7 +17,7 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Api("系统登录模型")
public class SystemLoginModel {
public class SysLoginModel {
@ApiParam(value = "登录名")
private String loginName;

@ -34,6 +34,7 @@ public class SysLogOperate extends BaseBean {
@ApiParam(value = "系统模块(枚举)", example = "1")
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class, refForeignKey = "value", value = "description")
private Integer softType;
public String getSoftTypeTxt() {
return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
}
@ -55,6 +56,9 @@ public class SysLogOperate extends BaseBean {
@ApiParam(value = "请求IP", access = "请求IP")
private String remoteIp;
@ApiParam(value = "本机名/Ip", access = "本机名/Ip")
private String serverHost;
@ApiParam(value = "请求路径", access = "请求路径")
private String requestUrl;

Loading…
Cancel
Save