治理设备管理指标分组功能
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package com.njcn.csdevice.pojo.param;
|
||||
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 重新分组
|
||||
*
|
||||
* @author xuyang
|
||||
* @date 2023/6/19
|
||||
*/
|
||||
@Data
|
||||
public class GroupArrParam {
|
||||
|
||||
@ApiModelProperty("setId")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
private String setId;
|
||||
|
||||
@ApiModelProperty("data")
|
||||
@NotEmpty(message = "数据不能为空")
|
||||
private List<ArrItem> data;
|
||||
|
||||
|
||||
@Data
|
||||
public static class ArrItem {
|
||||
private String id;
|
||||
private String name;
|
||||
private List<String> children;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.njcn.csdevice.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 组和指标关系表
|
||||
* </p>
|
||||
*
|
||||
* @author xuyang
|
||||
* @since 2023-06-19
|
||||
*/
|
||||
@Data
|
||||
@TableName("cs_gro_arr")
|
||||
public class CsGroArr {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 组id
|
||||
*/
|
||||
private String groupId;
|
||||
|
||||
/**
|
||||
* 指标id
|
||||
*/
|
||||
private String arrayId;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.njcn.csdevice.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据分组表
|
||||
* </p>
|
||||
*
|
||||
* @author xuyang
|
||||
* @since 2023-06-16
|
||||
*/
|
||||
@Data
|
||||
@TableName("cs_group")
|
||||
public class CsGroup {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 数据集id
|
||||
*/
|
||||
private String dataSetId;
|
||||
|
||||
/**
|
||||
* 分组名称
|
||||
*/
|
||||
private String groupName;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 是否展示
|
||||
*/
|
||||
private Integer isShow;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.csdevice.pojo.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/6/16 15:48
|
||||
*/
|
||||
@Data
|
||||
public class CsGroupVO {
|
||||
|
||||
private String id;
|
||||
|
||||
private String pid;
|
||||
|
||||
private String name;
|
||||
|
||||
private List<CsGroupVO> children = new ArrayList<>();
|
||||
|
||||
}
|
||||
@@ -21,4 +21,10 @@ public class DeviceManagerDetailVO {
|
||||
|
||||
@ApiModelProperty("单位")
|
||||
private String unit;
|
||||
|
||||
@ApiModelProperty("开始次数")
|
||||
private String startTimes;
|
||||
|
||||
@ApiModelProperty("结束次数")
|
||||
private String endTimes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user