EventTemplate控制器编写
This commit is contained in:
@@ -15,9 +15,9 @@ public enum TemplateTreeEnum {
|
||||
REPORT_LEVEL(0, "报告基础项"),
|
||||
LINE_LEVEL(1, "监测点"),
|
||||
DETAIL_LEVEL(2, "监测点详情"),
|
||||
TRANS_LEVEL(3, "暂降事件列表表格"),
|
||||
TRANS_D_LEVEL(4, "暂降密度图形"),
|
||||
TRANS_R_LEVEL(5, "暂降原因表格");
|
||||
TRANS_LEVEL(2, "暂降事件列表表格"),
|
||||
TRANS_D_LEVEL(2, "暂降密度图形"),
|
||||
TRANS_R_LEVEL(2, "暂降原因表格");
|
||||
|
||||
private final Integer code;
|
||||
private final String message;
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.njcn.system.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
@Data
|
||||
public class EventDictParam {
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
@ApiModelProperty(value = "父级id")
|
||||
private String pid;
|
||||
|
||||
/**
|
||||
* 字典表字段名称
|
||||
*/
|
||||
@ApiModelProperty(value = "字典表字段名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 字典表字段描述
|
||||
*/
|
||||
@ApiModelProperty(value = "字典表字段描述")
|
||||
private String describe;
|
||||
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class DictUpdateParam extends EventDictParam {
|
||||
|
||||
@ApiModelProperty("id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class DictQueryParam extends BaseParam {
|
||||
@ApiModelProperty("pid")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String pid;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public class EventTemplateParam {
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询实体
|
||||
* 查询数据
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.njcn.system.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hany
|
||||
* @createTime 2022/09/27
|
||||
*/
|
||||
@Data
|
||||
@TableName("report_dict")
|
||||
public class ReportDict extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Integer type;
|
||||
|
||||
private String describe;
|
||||
|
||||
private String pid;
|
||||
|
||||
private String pids;
|
||||
|
||||
private Integer state;
|
||||
|
||||
private Integer level;
|
||||
|
||||
private Integer sort;
|
||||
}
|
||||
@@ -17,16 +17,18 @@ 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 = "state",value = "数据状态")
|
||||
private Integer state;
|
||||
@ApiModelProperty(name = "name",value = "名称")
|
||||
private String name;
|
||||
@ApiModelProperty(name = "describe",value = "描述")
|
||||
private String describe;
|
||||
@ApiModelProperty(name = "sort",value = "排序")
|
||||
private Integer sort;
|
||||
@ApiModelProperty(name = "state",value = "数据状态")
|
||||
private Integer state;
|
||||
@ApiModelProperty(name = "children",value = "子节点")
|
||||
private List<EventTemplateTree> children = new ArrayList<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user