|
@@ -191,6 +191,13 @@ public class EcoDeviceFlowServiceImpl extends ServiceImpl<EcoDeviceFlowMapper, E
|
|
|
return new Result(ResultCode.SUCCESS,lastFlowByUnitId);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Result getUnitLastFlow(Map<String, String> paramsMap) {
|
|
|
+ String deviceCode = paramsMap.get("deviceCode");
|
|
|
+ LastFlowDto lastUnitFlow = ecoDeviceFlowMapper.getUnitLastFlow(deviceCode);
|
|
|
+ return new Result(ResultCode.SUCCESS,lastUnitFlow);
|
|
|
+ }
|
|
|
+
|
|
|
// @Override
|
|
|
// public Result getFlowList(Map<String, String> paramsMap) {
|
|
|
// String pigpenId = paramsMap.get("pigpenId");
|