|
@@ -1,5 +1,6 @@
|
|
|
package com.huimv.environ.eco.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
@@ -171,6 +172,13 @@ public class EcoDeviceFlowServiceImpl extends ServiceImpl<EcoDeviceFlowMapper, E
|
|
|
return new Result(ResultCode.SUCCESS,resultList);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Result getLastFlowByUnitId(Map<String, String> paramsMap) {
|
|
|
+ String unitId = paramsMap.get("unitId");
|
|
|
+ LastFlowDto lastFlowByUnitId = ecoDeviceFlowMapper.getLastFlowByUnitId(unitId);
|
|
|
+ return new Result(ResultCode.SUCCESS,lastFlowByUnitId);
|
|
|
+ }
|
|
|
+
|
|
|
//获取阈值
|
|
|
private JSONObject getThresholdURL(Integer farmId) {
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|