Browse Source

bug 修复

thing_master
xiachao 1 year ago
parent
commit
034b1be0c7
  1. 4
      modules/report-analysis/src/main/java/com/thing/carbon/energyloss/dto/EnergyLossReportParam.java
  2. 4
      modules/report-analysis/src/main/java/com/thing/carbon/energyloss/service/impl/EnergyLossServiceImpl.java

4
modules/report-analysis/src/main/java/com/thing/carbon/energyloss/dto/EnergyLossReportParam.java

@ -36,10 +36,10 @@ public class EnergyLossReportParam implements Serializable {
public String getAttrCodeType(){ public String getAttrCodeType(){
if(this.thingAttrCodeType.equals("date")){
if(this.thingAttrCodeType.equals("date")||this.thingAttrCodeType.equals("hh")){
return "hh"; return "hh";
} }
if(this.thingAttrCodeType.equals("month")){
if(this.thingAttrCodeType.equals("month")||this.thingAttrCodeType.equals("dd")){
return "dd"; return "dd";
} }
return "mm"; return "mm";

4
modules/report-analysis/src/main/java/com/thing/carbon/energyloss/service/impl/EnergyLossServiceImpl.java

@ -135,7 +135,9 @@ public class EnergyLossServiceImpl implements EnergyLossService {
.eq(IotThingSourceEntity::getRootId, rootId) .eq(IotThingSourceEntity::getRootId, rootId)
.eq(IotThingSourceEntity::getConfigType, param.getConfigType()) .eq(IotThingSourceEntity::getConfigType, param.getConfigType())
.eq(IotThingSourceEntity::getThingAttrGroup,labelGroupName) .eq(IotThingSourceEntity::getThingAttrGroup,labelGroupName)
.eq(IotThingSourceEntity::getStartStatus,"0"));
.eq(IotThingSourceEntity::getStartStatus,"0")
.eq(IotThingSourceEntity::getThingAttrCodeType,param.getAttrCodeType()));
String key=null; String key=null;
if (CollectionUtil.isNotEmpty(iotThingSourceEntities)){ if (CollectionUtil.isNotEmpty(iotThingSourceEntities)){
key = iotThingSourceEntities.get(0).getThingAttrCode(); key = iotThingSourceEntities.get(0).getThingAttrCode();

Loading…
Cancel
Save