fix (farm): 首页

- 模型管理周期-名称
This commit is contained in:
达富斌
2025-09-09 20:51:50 +08:00
parent 8c003ab871
commit 180d51aa0e
3 changed files with 7 additions and 6 deletions

View File

@@ -198,7 +198,7 @@ public class HomeServiceImpl implements HomeService {
List<ProductionPlanDO> plans = productionPlanService.getProductionPlans(baseId,plotId); List<ProductionPlanDO> plans = productionPlanService.getProductionPlans(baseId,plotId);
for (ProductionPlanDO e : plans) { for (ProductionPlanDO e : plans) {
String beingCropName = productionPlanService.getPlantSpeciesCodeForName(e.getPlantSpeciesCode()); String beingCropName = productionPlanService.getPlantSpeciesCodeForName(e.getPlantSpeciesCode());
String cycleName = modelManagementService.getModelCycleName(e.getSpeciesModelId()); // TODO: 2025/9/1 String cycleName = modelManagementService.getModelCycleName(e.getSpeciesModelId());
String beingPlotArea = productionPlanService.getBeingPlotArea(e.getPlotId(), null); String beingPlotArea = productionPlanService.getBeingPlotArea(e.getPlotId(), null);
PlanInfo target = new PlanInfo(); PlanInfo target = new PlanInfo();

View File

@@ -76,11 +76,11 @@ public interface ModelManagementService {
Map<String, String> getCount(); Map<String, String> getCount();
/** /**
* 生命周期-名称 * 模型周期-名称
* @param planId => task_id * @param modelId => task_id
* @return * @return
*/ */
String getModelCycleName(String planId); String getModelCycleName(String modelId);
/** /**
* 获取当前计划下所有农事操作 * 获取当前计划下所有农事操作

View File

@@ -451,8 +451,9 @@ public class ModelManagementServiceImpl implements ModelManagementService {
} }
@Override @Override
public String getModelCycleName(String planId) { public String getModelCycleName(String modelId) {
return null; ModelCycleDO one = modelCycleMapper.selectOne("model_id", modelId);
return one.getName();
} }
@Override @Override