farm模块-模型调用

This commit is contained in:
顾君禹
2025-08-31 15:46:14 +08:00
parent 0e4107d6d4
commit 823784c337
2 changed files with 2 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ public class CropFarmingCenterServiceImpl implements CropFarmingCenterService {
throw exception(PRODUCTION_PLAN_NOT_EXISTS); 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 productionPlanRespVO = BeanUtils.toBean(productionPlanDO, ProductionPlanRespVO.class);
productionPlanRespVO.setModelManagementRespVO(modelManagementRespVO); productionPlanRespVO.setModelManagementRespVO(modelManagementRespVO);

View File

@@ -280,7 +280,7 @@ public class ModelManagementServiceImpl implements ModelManagementService {
ModelManagementDO modelManagementDO = modelManagementMapper.selectById(id); ModelManagementDO modelManagementDO = modelManagementMapper.selectById(id);
if (modelManagementDO == null) { if (modelManagementDO == null) {
modelManagementDO = modelManagementMapper.selectOne(ModelManagementDO::getTaskId, id); return null;
} }
// 使用统一的转换方法 // 使用统一的转换方法