farm模块-模型调用
This commit is contained in:
@@ -217,7 +217,7 @@ public class CropFarmingCenterServiceImpl implements CropFarmingCenterService {
|
||||
throw exception(PRODUCTION_PLAN_NOT_EXISTS);
|
||||
}
|
||||
|
||||
ModelManagementRespVO modelManagementRespVO = modelManagementService.getModelManagement(productionPlanDO.getId());
|
||||
ModelManagementRespVO modelManagementRespVO = modelManagementService.getModelManagement(productionPlanDO.getSpeciesModelId());
|
||||
|
||||
ProductionPlanRespVO productionPlanRespVO = BeanUtils.toBean(productionPlanDO, ProductionPlanRespVO.class);
|
||||
productionPlanRespVO.setModelManagementRespVO(modelManagementRespVO);
|
||||
|
||||
@@ -280,7 +280,7 @@ public class ModelManagementServiceImpl implements ModelManagementService {
|
||||
|
||||
ModelManagementDO modelManagementDO = modelManagementMapper.selectById(id);
|
||||
if (modelManagementDO == null) {
|
||||
modelManagementDO = modelManagementMapper.selectOne(ModelManagementDO::getTaskId, id);
|
||||
return null;
|
||||
}
|
||||
|
||||
// 使用统一的转换方法
|
||||
|
||||
Reference in New Issue
Block a user