微调
This commit is contained in:
@@ -28,6 +28,9 @@ public class EnergyTemplateVO {
|
||||
@ApiModelProperty("指标名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("单位")
|
||||
private String unit;
|
||||
|
||||
@ApiModelProperty("数据类型")
|
||||
private String statMethod;
|
||||
|
||||
|
||||
@@ -89,6 +89,7 @@ public class CsGroupServiceImpl extends ServiceImpl<CsGroupMapper, CsGroup> impl
|
||||
BeanUtils.copyProperties(item,vo);
|
||||
EleEpdPqd eleEpdPqd = epdFeignClient.selectById(item.getDataId()).getData();
|
||||
vo.setClassId(eleEpdPqd.getClassId());
|
||||
vo.setUnit(eleEpdPqd.getUnit());
|
||||
StatisticalDataDTO statisticalDataDTO = commonService.getLineRtData(lineId,eleEpdPqd.getClassId(),item.getName(),item.getPhase(),item.getStatMethod());
|
||||
if (!Objects.isNull(statisticalDataDTO)){
|
||||
vo.setTime(statisticalDataDTO.getTime());
|
||||
@@ -131,6 +132,7 @@ public class CsGroupServiceImpl extends ServiceImpl<CsGroupMapper, CsGroup> impl
|
||||
BeanUtils.copyProperties(item,vo);
|
||||
EleEpdPqd eleEpdPqd = epdFeignClient.selectById(item.getDataId()).getData();
|
||||
vo.setClassId(eleEpdPqd.getClassId());
|
||||
vo.setUnit(eleEpdPqd.getUnit());
|
||||
StatisticalDataDTO statisticalDataDTO = commonService.getLineHistoryData(energyBaseParam.getLineId(),eleEpdPqd.getClassId(),item.getName(),energyBaseParam.getStartTime(),energyBaseParam.getEndTime());
|
||||
if (!Objects.isNull(statisticalDataDTO)){
|
||||
vo.setMaxValue(BigDecimal.valueOf(statisticalDataDTO.getMaxValue()).setScale(4, RoundingMode.UP).doubleValue());
|
||||
|
||||
Reference in New Issue
Block a user