|
@@ -45,9 +45,8 @@ public class LampConfigServiceImpl extends ServiceImpl<LampConfigMapper, LampCon
|
|
|
private LampConfigMapper lampConfigMapper;
|
|
|
@Autowired
|
|
|
private LampConfigAllMapper lampConfigAllMapper;
|
|
|
-
|
|
|
@Autowired
|
|
|
- BasePigpenMapper basePigpenMapper;
|
|
|
+ private BasePigpenMapper basePigpenMapper;
|
|
|
|
|
|
@Override
|
|
|
public Result savelampConfig( LampConfig lampConfig, HttpServletRequest request) {
|
|
@@ -264,7 +263,7 @@ public class LampConfigServiceImpl extends ServiceImpl<LampConfigMapper, LampCon
|
|
|
if (ObjectUtil.isEmpty(lampConfig)){
|
|
|
return new Result(10001,"设备不存在",false);
|
|
|
}
|
|
|
-
|
|
|
+ BasePigpen basePigpen = basePigpenMapper.selectById(lampConfig.getUnitId());
|
|
|
Map endMap =new HashMap();
|
|
|
endMap.put("initDayage",lampConfig.getInitAge());
|
|
|
endMap.put("listDayage",lampConfig.getAgeList().split(";"));
|
|
@@ -280,6 +279,7 @@ public class LampConfigServiceImpl extends ServiceImpl<LampConfigMapper, LampCon
|
|
|
endMap.put("unitId",lampConfig.getUnitId());
|
|
|
endMap.put("farmCode",lampConfig.getFarmCode());
|
|
|
endMap.put("binding",lampConfig.getBinding());
|
|
|
+ endMap.put("pigpenName",basePigpen.getPigpenName());
|
|
|
return new Result(ResultCode.SUCCESS,endMap);
|
|
|
}
|
|
|
}
|