fix (farm): 首页
- 模型管理周期-名称
This commit is contained in:
@@ -198,7 +198,7 @@ public class HomeServiceImpl implements HomeService {
|
||||
List<ProductionPlanDO> plans = productionPlanService.getProductionPlans(baseId,plotId);
|
||||
for (ProductionPlanDO e : plans) {
|
||||
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);
|
||||
|
||||
PlanInfo target = new PlanInfo();
|
||||
|
||||
@@ -76,11 +76,11 @@ public interface ModelManagementService {
|
||||
Map<String, String> getCount();
|
||||
|
||||
/**
|
||||
* 生命周期-名称
|
||||
* @param planId => task_id
|
||||
* 模型周期-名称
|
||||
* @param modelId => task_id
|
||||
* @return
|
||||
*/
|
||||
String getModelCycleName(String planId);
|
||||
String getModelCycleName(String modelId);
|
||||
|
||||
/**
|
||||
* 获取当前计划下所有农事操作
|
||||
|
||||
@@ -451,8 +451,9 @@ public class ModelManagementServiceImpl implements ModelManagementService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getModelCycleName(String planId) {
|
||||
return null;
|
||||
public String getModelCycleName(String modelId) {
|
||||
ModelCycleDO one = modelCycleMapper.selectOne("model_id", modelId);
|
||||
return one.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user