初始化
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.njcn.system.pojo.constant;
|
||||
|
||||
/**
|
||||
* @author 徐扬
|
||||
*/
|
||||
public interface SystemType {
|
||||
|
||||
/**
|
||||
* 系统类型:0-省级系统;1-企业系统;2-数据中心
|
||||
*/
|
||||
int PROVINCIAL_SYSTEM = 0;
|
||||
int ENTERPRISE_SYSTEM = 1;
|
||||
int DATA_CENTER = 2;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.njcn.system.pojo.constant;
|
||||
|
||||
|
||||
/**
|
||||
* @author 徐扬
|
||||
*/
|
||||
public interface ThemeState {
|
||||
|
||||
/**
|
||||
* 主题状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
int DELETE = 0;
|
||||
int NORMAL = 1;
|
||||
|
||||
/**
|
||||
* 激活状态 0-未激活;1-激活;默认未激活
|
||||
*/
|
||||
int INACTIVATED = 0;
|
||||
int ACTIVATION = 1;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.njcn.system.pojo.dto;
|
||||
|
||||
import com.njcn.web.pojo.dto.BaseDTO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @date 2022/1/10 10:33
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
public class AreaTreeDTO extends BaseDTO {
|
||||
@ApiModelProperty("是否被绑定")
|
||||
private Integer isFalse = 0;
|
||||
@ApiModelProperty("子节点")
|
||||
private List<AreaTreeDTO> children;
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.njcn.system.pojo.enums;
|
||||
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年03月18日 13:27
|
||||
*/
|
||||
@Getter
|
||||
public enum StatisticsEnum {
|
||||
|
||||
/**
|
||||
* 统计类型字典枚举
|
||||
*/
|
||||
POWER_NETWORK("网络拓扑", "Power_Network"),
|
||||
VOLTAGE_LEVEL("电压等级", "Voltage_Level"),
|
||||
LOAD_TYPE("干扰源类型", "Load_Type"),
|
||||
MANUFACTURER("终端厂家", "Manufacturer"),
|
||||
REPORT_TYPE("上报类型", "Report_Type");
|
||||
|
||||
private final String name;
|
||||
|
||||
private final String code;
|
||||
|
||||
StatisticsEnum(String name, String code) {
|
||||
this.name = name;
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 没有匹配到,则默认为网络拓扑
|
||||
* @param code 统计类型code
|
||||
* @return 统计枚举实例
|
||||
*/
|
||||
public static StatisticsEnum getStatisticsEnumByCode(String code) {
|
||||
return Arrays.stream(StatisticsEnum.values())
|
||||
.filter(statisticsEnum -> statisticsEnum.getCode().equalsIgnoreCase(code))
|
||||
.findAny()
|
||||
.orElse(POWER_NETWORK);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
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.*;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @version 1.0.0
|
||||
* @date 2022年1月5日 8:59
|
||||
*/
|
||||
@Data
|
||||
public class AreaParam {
|
||||
|
||||
@ApiModelProperty("父节点")
|
||||
@NotBlank(message = ValidMessage.PID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEMS_ID, message = ValidMessage.PID_FORMAT_ERROR)
|
||||
private String pid;
|
||||
|
||||
|
||||
@ApiModelProperty("名称")
|
||||
@NotBlank(message = ValidMessage.NAME_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.ALL_CHAR_1_20, message = ValidMessage.NAME_FORMAT_ERROR)
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("简称")
|
||||
@NotBlank(message = ValidMessage.NAME_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.ALL_CHAR_1_20, message = ValidMessage.NAME_FORMAT_ERROR)
|
||||
private String shortName;
|
||||
|
||||
|
||||
@ApiModelProperty("排序(编号)")
|
||||
@NotBlank(message = ValidMessage.CODE_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.ALL_CHAR_1_20, message = ValidMessage.CODE_FORMAT_ERROR)
|
||||
private String areaCode;
|
||||
|
||||
|
||||
|
||||
@ApiModelProperty("区域类型 0-省级区域;1-企业区域; ")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty("中心点经度")
|
||||
private BigDecimal lng;
|
||||
|
||||
@ApiModelProperty("中心点纬度")
|
||||
private BigDecimal lat;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class AreaUpdateParam extends AreaParam {
|
||||
|
||||
|
||||
@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 QueryParam extends BaseParam {
|
||||
/**
|
||||
* 区域类型 0-省级区域;1-企业区域
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
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.*;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2021年12月17日 15:49
|
||||
*/
|
||||
@Data
|
||||
public class DictDataParam {
|
||||
|
||||
|
||||
@ApiModelProperty("字典类型id")
|
||||
@NotBlank(message = ValidMessage.DICT_TYPE_ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.DICT_TYPE_ID_FORMAT_ERROR)
|
||||
private String typeId;
|
||||
|
||||
|
||||
@ApiModelProperty("名称")
|
||||
@NotBlank(message = ValidMessage.NAME_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.DIC_REGEX, message = ValidMessage.NAME_FORMAT_ERROR)
|
||||
private String name;
|
||||
|
||||
|
||||
@ApiModelProperty("编码")
|
||||
@NotBlank(message = ValidMessage.CODE_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.DIC_REGEX, message = ValidMessage.CODE_FORMAT_ERROR)
|
||||
private String code;
|
||||
|
||||
|
||||
@ApiModelProperty("排序")
|
||||
@NotNull(message = ValidMessage.SORT_NOT_NULL)
|
||||
@Min(value = 0, message = ValidMessage.SORT_FORMAT_ERROR)
|
||||
@Max(value = 999, message = ValidMessage.SORT_FORMAT_ERROR)
|
||||
private Integer sort;
|
||||
|
||||
|
||||
@ApiModelProperty("事件等级:0-普通;1-中等;2-严重(默认为0)")
|
||||
private Integer level;
|
||||
|
||||
@ApiModelProperty("与高级算法内部Id描述对应")
|
||||
private Integer algoDescribe;
|
||||
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class DictDataUpdateParam extends DictDataParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@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 DictDataQueryParam extends BaseParam {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据字典类型id分页查询字典数据
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class DicTypeIdQueryParam extends BaseParam {
|
||||
@ApiModelProperty("字典类型id")
|
||||
@NotBlank(message = ValidMessage.DICT_TYPE_ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.DICT_TYPE_ID_FORMAT_ERROR)
|
||||
private String typeId;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
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.*;
|
||||
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2021年12月17日 09:40
|
||||
*/
|
||||
@Data
|
||||
public class DictTypeParam {
|
||||
|
||||
@ApiModelProperty("名称")
|
||||
@NotBlank(message = ValidMessage.NAME_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.DIC_REGEX, message = ValidMessage.NAME_FORMAT_ERROR)
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("编码")
|
||||
@NotBlank(message = ValidMessage.CODE_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.ALL_CHAR_1_20, message = ValidMessage.CODE_FORMAT_ERROR)
|
||||
private String code;
|
||||
|
||||
|
||||
@ApiModelProperty("排序")
|
||||
@NotNull(message = ValidMessage.SORT_NOT_NULL)
|
||||
@Min(value = 0, message = ValidMessage.SORT_FORMAT_ERROR)
|
||||
@Max(value = 999, message = ValidMessage.SORT_FORMAT_ERROR)
|
||||
private Integer sort;
|
||||
|
||||
|
||||
@ApiModelProperty("开启等级:0-不开启;1-开启,默认不开启")
|
||||
@NotNull(message = ValidMessage.OPEN_LEVEL_NOT_NULL)
|
||||
@Min(value = 0, message = ValidMessage.OPEN_LEVEL_FORMAT_ERROR)
|
||||
@Max(value = 1, message = ValidMessage.OPEN_LEVEL_FORMAT_ERROR)
|
||||
private Integer openLevel;
|
||||
|
||||
|
||||
@ApiModelProperty("开启算法描述:0-不开启;1-开启,默认不开启")
|
||||
@NotNull(message = ValidMessage.OPEN_DESCRIBE_NOT_NULL)
|
||||
@Min(value = 0, message = ValidMessage.OPEN_DESCRIBE_FORMAT_ERROR)
|
||||
@Max(value = 1, message = ValidMessage.OPEN_DESCRIBE_FORMAT_ERROR)
|
||||
private Integer openDescribe;
|
||||
|
||||
|
||||
@ApiModelProperty("描述")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class DictTypeUpdateParam extends DictTypeParam {
|
||||
|
||||
|
||||
@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 DictTypeQueryParam extends BaseParam {
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.njcn.system.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/1/26
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class MxGraphParam {
|
||||
|
||||
@ApiModelProperty(name = "title",value = "组态标题",required = true)
|
||||
@NotBlank(message = "组态标题不可为空")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(name = "mxContent",value = "组态内容",required = true)
|
||||
@NotBlank(message = "内容不可为空")
|
||||
private String mxContent;
|
||||
|
||||
@ApiModelProperty(name = "bgImage",value = "组态背景图")
|
||||
private String bgImage;
|
||||
|
||||
@ApiModelProperty(name = "sort",value = "排序",required = true)
|
||||
@NotNull(message = "排序不可为空")
|
||||
private Integer sort;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.njcn.system.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/1/12 13:45
|
||||
*/
|
||||
@Data
|
||||
public class ThemeParam {
|
||||
|
||||
@ApiModelProperty("主题名称")
|
||||
@NotBlank(message = ValidMessage.NAME_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.NORMAL, message = ValidMessage.NAME_FORMAT_ERROR)
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("主题描述")
|
||||
@NotBlank(message = ValidMessage.REMARK_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.NORMAL, message = ValidMessage.REMARK_FORMAT_ERROR)
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty("主题颜色")
|
||||
@NotBlank(message = ValidMessage.COLOR_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.COLOR_REGEX, message = ValidMessage.COLOR_FORMAT_ERROR)
|
||||
private String color;
|
||||
|
||||
@ApiModelProperty("logo图片")
|
||||
@NotNull(message = ValidMessage.LOGO_NOT_BLANK)
|
||||
private MultipartFile logoFile;
|
||||
|
||||
@ApiModelProperty("favicon图标")
|
||||
@NotNull(message = ValidMessage.FAVICON_NOT_BLANK)
|
||||
private MultipartFile faviconFile;
|
||||
|
||||
/**
|
||||
* 用户更新操作实体
|
||||
*
|
||||
* 需要填写的参数:用户的id
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class ThemeUpdateParam extends ThemeParam {
|
||||
|
||||
@ApiModelProperty("主题表Id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.njcn.system.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-12-13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("sys_area")
|
||||
public class Area extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 区域Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 父节点(0为根节点)
|
||||
*/
|
||||
private String pid;
|
||||
|
||||
/**
|
||||
* 上层所有节点
|
||||
*/
|
||||
private String pids;
|
||||
|
||||
/**
|
||||
* 区域名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 简称
|
||||
*/
|
||||
private String shortName;
|
||||
|
||||
/**
|
||||
* 排序(编号)
|
||||
*/
|
||||
private String areaCode;
|
||||
|
||||
/**
|
||||
* 区域类型 0-省级区域;1-企业区域;
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 中心点经度
|
||||
*/
|
||||
private BigDecimal lng;
|
||||
|
||||
/**
|
||||
* 中心点纬度
|
||||
*/
|
||||
private BigDecimal lat;
|
||||
|
||||
/**
|
||||
* 区域状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.njcn.system.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-12-13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("sys_config")
|
||||
public class Config extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 配置Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 系统类型:0-省级系统;1-企业系统;2-数据中心
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 数据上报(以逗号分割,比如:冀北,网公司)默认为空
|
||||
*/
|
||||
private String dataReport;
|
||||
|
||||
/**
|
||||
* 审计日志大小(MB)
|
||||
*/
|
||||
private BigDecimal logSize;
|
||||
|
||||
/**
|
||||
* 审计日志存储时间(1-6个月,默认3个月)
|
||||
*/
|
||||
private Boolean logTime;
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.njcn.system.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-12-13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("sys_dict_data")
|
||||
public class DictData extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 字典数据表Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 字典类型表Id
|
||||
*/
|
||||
private String typeId;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 事件等级:0-普通;1-中等;2-严重(默认为0)
|
||||
*/
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* 与高级算法内部Id描述对应;
|
||||
*/
|
||||
private Integer algoDescribe;
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.njcn.system.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-12-13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("sys_dict_type")
|
||||
public class DictType extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 字典类型表Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 开启等级:0-不开启;1-开启,默认不开启
|
||||
*/
|
||||
private Integer openLevel;
|
||||
|
||||
|
||||
/**
|
||||
* 开启描述:0-不开启;1-开启,默认不开启
|
||||
*/
|
||||
private Integer openDescribe;
|
||||
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.njcn.system.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
* 组态表
|
||||
* @author cdf
|
||||
* @date 2022/1/26
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("sys_mxgraph")
|
||||
public class MxGraph extends BaseEntity {
|
||||
private String id;
|
||||
|
||||
private String title;
|
||||
|
||||
private String mxContent;
|
||||
|
||||
private String bgImage;
|
||||
|
||||
private Integer sort;
|
||||
|
||||
private Integer state;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.njcn.system.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-12-13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("sys_resource")
|
||||
public class Resource extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 资源Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 资源类型(关联字典表)
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 路径
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.njcn.system.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-12-13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("sys_task")
|
||||
public class Task extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 任务Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 触发器策略(触发器执行时间)
|
||||
*/
|
||||
private String strategy;
|
||||
|
||||
/**
|
||||
* 任务是否执行(0-停止,1-执行)
|
||||
*/
|
||||
private Boolean execute;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.njcn.system.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-12-13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("sys_theme")
|
||||
public class Theme extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主题Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 主题名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* logo名称
|
||||
*/
|
||||
private String logoUrl;
|
||||
|
||||
/**
|
||||
* favicon名称
|
||||
*/
|
||||
private String faviconUrl;
|
||||
|
||||
/**
|
||||
* 主题颜色
|
||||
*/
|
||||
private String color;
|
||||
|
||||
/**
|
||||
* 0-未激活 1-激活,所有数据只有一条数据处于激活状态
|
||||
*/
|
||||
private Integer active;
|
||||
|
||||
/**
|
||||
* 主题描述
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.njcn.system.pojo.vo;
|
||||
|
||||
import com.njcn.web.pojo.vo.AreaIdVO;
|
||||
import com.njcn.web.pojo.vo.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @date 2022/1/6 10:03
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
public class AreaTreeVO extends BaseVO {
|
||||
|
||||
@ApiModelProperty("上层所有节点")
|
||||
private String pids;
|
||||
|
||||
@ApiModelProperty("区域名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("简称")
|
||||
private String shortName;
|
||||
|
||||
@ApiModelProperty("排序(编号)")
|
||||
private String areaCode;
|
||||
|
||||
|
||||
@ApiModelProperty("中心点经度")
|
||||
private BigDecimal lng;
|
||||
|
||||
@ApiModelProperty("中心点纬度")
|
||||
private BigDecimal lat;
|
||||
|
||||
|
||||
@ApiModelProperty("子节点详细信息")
|
||||
private List<AreaTreeVO> children ;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.njcn.system.pojo.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年03月24日 16:06
|
||||
*/
|
||||
@Data
|
||||
public class DictDataCache implements Serializable {
|
||||
|
||||
private String id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String code;
|
||||
|
||||
private int sort;
|
||||
|
||||
private String typeId;
|
||||
|
||||
private String typeName;
|
||||
|
||||
private String typeCode;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.njcn.system.pojo.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2021年12月20日 15:52
|
||||
*/
|
||||
@Data
|
||||
public class DictDataVO implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 字典数据表Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 字典类型表名称
|
||||
*/
|
||||
private String typeName;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 事件等级:0-普通;1-中等;2-严重(默认为0)
|
||||
*/
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* 与高级算法内部Id描述对应;
|
||||
*/
|
||||
private Integer algoDescribe;
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user