fix (farm): 首页
- 模型管理周期-名称
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取当前计划下所有农事操作
|
* 获取当前计划下所有农事操作
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user