Browse Source

Merge pull request 'bug 修复' (#69) from master into V3

Reviewed-on: http://git.lrdaiot.cn:9000/thing/thing_api/pulls/69
qingyuan_dev_new
夏超 1 year ago
parent
commit
e12fbc467c
  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