fix (farm): 基地规划

- 添加字段: 地块坐标
This commit is contained in:
达富斌
2025-08-27 20:35:15 +08:00
parent 9382fa4c63
commit 3744d0489b
2 changed files with 3 additions and 1 deletions

View File

@@ -82,6 +82,8 @@ public class BaseInfoRespVO {
private BigDecimal plotArea;
@Schema(description = "地块负责人")
private String plotManager;
@Schema(description = "地块坐标")
private String plotPoint;
}
}

View File

@@ -201,7 +201,7 @@ public class BaseInfoServiceImpl implements BaseInfoService {
List<BaseInfoRespVO.PlotInfo> targetList = new ArrayList<>();
for (PlotInfoDO aDo : plotList) {
String plotManager = employeeMap.getOrDefault(aDo.getEmployeeId(), "系统");
BaseInfoRespVO.PlotInfo target = new BaseInfoRespVO.PlotInfo(aDo.getId(), aDo.getPlotName(), aDo.getPlotColor(), aDo.getPlotArea(), plotManager);
BaseInfoRespVO.PlotInfo target = new BaseInfoRespVO.PlotInfo(aDo.getId(), aDo.getPlotName(), aDo.getPlotColor(), aDo.getPlotArea(), plotManager,aDo.getPoint());
targetList.add(target);
}
obj.setPlotOverviewList(targetList);