fix (farm): 农场首页

- 添加地块颜色
This commit is contained in:
达富斌
2025-09-01 21:11:02 +08:00
parent ba0fb83460
commit b3bb641aa7
2 changed files with 3 additions and 0 deletions

View File

@@ -114,6 +114,8 @@ public class HomeInfo {
private String manager; private String manager;
@Schema(description = "基地坐标") @Schema(description = "基地坐标")
private String point; private String point;
@Schema(description = "基地颜色")
private String plotColor;
@Schema(description = "地块或作物集合") @Schema(description = "地块或作物集合")
private PlotOrCropInfo plotOrCropInfo; private PlotOrCropInfo plotOrCropInfo;
} }

View File

@@ -130,6 +130,7 @@ public class HomeServiceImpl implements HomeService {
t.setPlotArea(e.getPlotArea()); t.setPlotArea(e.getPlotArea());
t.setManager(employeeName); t.setManager(employeeName);
t.setPoint(e.getPoint()); t.setPoint(e.getPoint());
t.setPlotColor(e.getPlotColor());
t.setPlotOrCropInfo(plotOrCropInfo); t.setPlotOrCropInfo(plotOrCropInfo);
targetList.add(t); targetList.add(t);
} }