1.完善模板解析功能
2.调整直连设备接入流程
This commit is contained in:
@@ -53,4 +53,7 @@ public class CsDevModelAddParm {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "系统软件表Id")
|
@ApiModelProperty(value = "系统软件表Id")
|
||||||
private String softInfoId;
|
private String softInfoId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "模板类型(0:治理类型 1:电能质量类型)")
|
||||||
|
private Integer type;
|
||||||
}
|
}
|
||||||
@@ -70,4 +70,9 @@ public class CsDataSet extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据模型
|
||||||
|
*/
|
||||||
|
private String dataList;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
|
|||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.njcn.db.bo.BaseEntity;
|
import com.njcn.db.bo.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
@@ -76,4 +77,8 @@ public class CsDevModelPO extends BaseEntity {
|
|||||||
|
|
||||||
@TableField(value = "soft_info_id")
|
@TableField(value = "soft_info_id")
|
||||||
private String softInfoId;
|
private String softInfoId;
|
||||||
|
|
||||||
|
@TableField(value = "type")
|
||||||
|
@ApiModelProperty("模板类型(0:治理类型 1:电能质量类型)")
|
||||||
|
private Integer type;
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
from
|
from
|
||||||
cs_data_array t0
|
cs_data_array t0
|
||||||
where
|
where
|
||||||
pid = #{id} and stat_method = 'avg'
|
pid = #{id}
|
||||||
group by
|
group by
|
||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
|
|||||||
@@ -182,7 +182,6 @@ public class CsGroupServiceImpl extends ServiceImpl<CsGroupMapper, CsGroup> impl
|
|||||||
private List<CsGroupVO> getChildrenes(String tabId, List<CsGroupVO> all) {
|
private List<CsGroupVO> getChildrenes(String tabId, List<CsGroupVO> all) {
|
||||||
return all.stream().filter(item -> item.getPid().equals(tabId)).collect(Collectors.toList());
|
return all.stream().filter(item -> item.getPid().equals(tabId)).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
//fixme 目前组的数据插入写在这里,先查询数据集是否分组,分组了直接查询,没分组先分组再展示数据。后期根据业务需求在做调整
|
//fixme 目前组的数据插入写在这里,先查询数据集是否分组,分组了直接查询,没分组先分组再展示数据。后期根据业务需求在做调整
|
||||||
public List<CsGroupVO> insertGroupData(String dataSet) {
|
public List<CsGroupVO> insertGroupData(String dataSet) {
|
||||||
AtomicReference<Integer> sort = new AtomicReference<>(0);
|
AtomicReference<Integer> sort = new AtomicReference<>(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user