单位暂态算法调整
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
TRUNCATE( c.average_over_day, 2)as averageOverDay
|
||||
FROM
|
||||
r_stat_harmonic_q c
|
||||
RIGHT JOIN r_stat_org_q AS rso ON rso.org_no = c.org_no
|
||||
RIGHT JOIN r_stat_org_q AS rso ON rso.org_no = c.org_no and c.measurement_type_class = rso.measurement_type_class
|
||||
<where>
|
||||
c.data_Type=#{dataType} and rso.data_Type=#{dataType}
|
||||
<if test="param != null and param.ids != null and param.ids.size > 0">
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
c.average_over_day
|
||||
FROM
|
||||
r_stat_harmonic_y c
|
||||
RIGHT JOIN r_stat_org_y AS rso ON rso.org_no = c.org_no
|
||||
RIGHT JOIN r_stat_org_y AS rso ON rso.org_no = c.org_no and c.measurement_type_class = rso.measurement_type_class
|
||||
<where>
|
||||
c.data_Type=#{dataType} and rso.data_Type=#{dataType}
|
||||
<if test="param != null and param.ids != null and param.ids.size > 0">
|
||||
|
||||
@@ -253,7 +253,12 @@ public class PwRStatOrgServiceImpl extends ServiceImpl<PwRStatOrgMapper, RStatOr
|
||||
//获取当前部门下所有部门信息
|
||||
List<DeptDTO> deptList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData();
|
||||
List<DeptDTO> deptDTOList = DeptUtil.getDeptSubsetVOList(deptList, param.getId());
|
||||
|
||||
if(CollUtil.isEmpty(param.getIds())){
|
||||
//监测点对象标签
|
||||
List<DictData> dataList = dicDataFeignClient.getDicDataByTypeCode(
|
||||
DicDataTypeEnum.MONITORING_LABELS.getCode()).getData();
|
||||
param.setIds(dataList.stream().map(DictData::getId).collect(Collectors.toList()));
|
||||
}
|
||||
Map<String, DeptDTO> deptMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getCode, Function.identity()));
|
||||
List<String> deptIds = deptDTOList.stream().map(DeptDTO::getCode).collect(Collectors.toList());
|
||||
//初始化
|
||||
|
||||
@@ -130,7 +130,12 @@ public class RStatOrgYServiceImpl extends ServiceImpl<RStatOrgYMapper, RStatOrgY
|
||||
// 获取当前用户的部门的子部门信息
|
||||
List<DeptDTO> deptList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData();
|
||||
List<DeptDTO> data = DeptUtil.getDeptSubsetVOList(deptList, param.getId());
|
||||
|
||||
if(CollUtil.isEmpty(param.getIds())){
|
||||
//监测点对象标签
|
||||
List<DictData> dataList = dicDataFeignClient.getDicDataByTypeCode(
|
||||
DicDataTypeEnum.MONITORING_LABELS.getCode()).getData();
|
||||
param.setIds(dataList.stream().map(DictData::getId).collect(Collectors.toList()));
|
||||
}
|
||||
List<RStatSubstationOrg2VO.MonitorType> info = new ArrayList<>();
|
||||
if (CollectionUtil.isNotEmpty(data)) {
|
||||
// 根据暂态指标枚举查询暂态指标
|
||||
|
||||
Reference in New Issue
Block a user