EventTemplate控制器编写

This commit is contained in:
hanyong
2022-09-21 16:28:57 +08:00
parent 1512674f4c
commit 099ed8c669
6 changed files with 100 additions and 6 deletions

View File

@@ -0,0 +1,29 @@
package com.njcn.system.enums;
import lombok.Getter;
/**
* @author hany
* @date 2022/09/21
*/
@Getter
public enum TemplateTreeEnum {
/**
* 各层级描述
*/
REPORT_LEVEL(0, "报告基础项"),
LINE_LEVEL(1, "监测点"),
DETAIL_LEVEL(2, "监测点详情"),
TRANS_LEVEL(2, "暂降事件列表表格"),
TRANS_D_LEVEL(2, "暂降密度图形"),
TRANS_R_LEVEL(2, "暂降原因表格");
private final Integer code;
private final String message;
TemplateTreeEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
}

View File

@@ -29,6 +29,11 @@ public class EventDict extends BaseEntity {
*/
private String name;
/**
* 描述
*/
private String describe;
/**
* 父节点
*/

View File

@@ -9,7 +9,7 @@ import java.util.ArrayList;
import java.util.List;
/**
* 字典树
* 字典树实体
* @author hany
* @date 2022/09/09
*/
@@ -17,16 +17,16 @@ import java.util.List;
@Data
public class EventTemplateTree implements Serializable {
private String id;
@ApiModelProperty(name = "name",value = "名称")
private String name;
@ApiModelProperty(name = "parentId",value = "父id")
private String pid;
@ApiModelProperty(name = "level",value = "等级")
private Integer level;
@ApiModelProperty(name = "name",value = "名称")
private String name;
@ApiModelProperty(name = "state",value = "数据状态")
private Integer state;
@ApiModelProperty(name = "sort",value = "排序")
private Integer sort;
@ApiModelProperty(name = "comFlag",value = "设备状态")
private Integer comFlag;
@ApiModelProperty(name = "children",value = "子节点")
private List<EventTemplateTree> children = new ArrayList<>();