|
@@ -195,6 +195,9 @@ public class EcoDeviceFlowServiceImpl extends ServiceImpl<EcoDeviceFlowMapper, E
|
|
|
public Result getUnitLastFlow(Map<String, String> paramsMap) {
|
|
|
String deviceCode = paramsMap.get("deviceCode");
|
|
|
LastFlowDto lastUnitFlow = ecoDeviceFlowMapper.getUnitLastFlow(deviceCode);
|
|
|
+ if (ObjectUtil.isEmpty(lastUnitFlow) ){
|
|
|
+ lastUnitFlow = new LastFlowDto();
|
|
|
+ }
|
|
|
return new Result(ResultCode.SUCCESS,lastUnitFlow);
|
|
|
}
|
|
|
|