feat (farm): 基地规划

- 地块颜色
This commit is contained in:
达富斌
2025-08-27 20:27:07 +08:00
parent 62309578d6
commit 8586e78527
2 changed files with 3 additions and 1 deletions

View File

@@ -76,6 +76,8 @@ public class BaseInfoRespVO {
private String plotId; private String plotId;
@Schema(description = "地块名称") @Schema(description = "地块名称")
private String plotName; private String plotName;
@Schema(description = "地块颜色")
private String plotColor;
@Schema(description = "地块面积") @Schema(description = "地块面积")
private BigDecimal plotArea; private BigDecimal plotArea;
@Schema(description = "地块负责人") @Schema(description = "地块负责人")

View File

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