|
@@ -2,6 +2,7 @@ package com.huimv.cattle.service.impl;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.huimv.cattle.mapper.SysRegionCounTownVillMapper;
|
|
|
import com.huimv.cattle.pojo.Supervise;
|
|
|
import com.huimv.cattle.mapper.SuperviseMapper;
|
|
|
import com.huimv.cattle.service.SuperviseService;
|
|
@@ -27,6 +28,8 @@ public class SuperviseServiceImpl extends ServiceImpl<SuperviseMapper, Supervise
|
|
|
|
|
|
@Autowired
|
|
|
private SuperviseMapper superviseMapper;
|
|
|
+ @Autowired
|
|
|
+ private SysRegionCounTownVillMapper sysRegionCounTownVillMapper;
|
|
|
@Override
|
|
|
public Result getSupervise(String farmCode) {
|
|
|
Map map = new HashMap();
|
|
@@ -45,6 +48,14 @@ public class SuperviseServiceImpl extends ServiceImpl<SuperviseMapper, Supervise
|
|
|
return new Result(ResultCode.SUCCESS,map);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Result getSuperviseScreen(String farmCode) {
|
|
|
+// String s = superviseVillageGatValue(farmCode);
|
|
|
+// System.out.println(s);
|
|
|
+// return new Result(ResultCode.SUCCESS,s);
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
private String superviseGatValue(String farmCode,String key) {
|
|
|
QueryWrapper<Supervise> wrapper = new QueryWrapper<>();
|
|
|
wrapper.eq("farm_code",farmCode);
|
|
@@ -57,4 +68,15 @@ public class SuperviseServiceImpl extends ServiceImpl<SuperviseMapper, Supervise
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private String superviseVillageGatValue(String farmCode) {
|
|
|
+// String[] city = sysRegionCounTownVillMapper.listSub(farmCode).split(",");
|
|
|
+// SuperviseVo supervise = superviseMapper.superviseVillageGatValue(city);
|
|
|
+// if (ObjectUtil.isEmpty(supervise)){
|
|
|
+// return "0";
|
|
|
+// }else {
|
|
|
+// return supervise.getData();
|
|
|
+// }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
}
|