fix (farm): 首页

- 首页加载内容拆分
- 新增获取地块信息接口
This commit is contained in:
达富斌
2025-11-07 20:38:43 +08:00
parent 3ed3c442e6
commit 4597a2c455
2 changed files with 3 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ public class HomeInfo {
@Schema(description = "地块或作物集合") @Schema(description = "地块或作物集合")
private PlotOrCropInfo plotOrCropInfo; private PlotOrCropInfo plotOrCropInfo;
@Schema(description = "基地弹框信息") @Schema(description = "基地弹框信息")
private List<PlotPopupFrame> plotPopupFrames; private PlotPopupFrame plotPopupFrames;
@Schema(description = "户主流转信息") @Schema(description = "户主流转信息")
private List<PlotLesseeDetailsRespVO> lesseeList; private List<PlotLesseeDetailsRespVO> lesseeList;
} }

View File

@@ -180,7 +180,7 @@ public class HomeServiceImpl implements HomeService {
t.setPoint(e.getPoint()); t.setPoint(e.getPoint());
t.setPlotColor(e.getPlotColor()); t.setPlotColor(e.getPlotColor());
t.setPlotOrCropInfo(plotOrCropInfo); t.setPlotOrCropInfo(plotOrCropInfo);
t.setPlotPopupFrames(plotPopupFrame); t.setPlotPopupFrames(plotPopupFrame.get(0));
t.setLesseeList(lesseeList); t.setLesseeList(lesseeList);
return t; return t;
} }
@@ -207,7 +207,7 @@ public class HomeServiceImpl implements HomeService {
t.setPoint(e.getPoint()); t.setPoint(e.getPoint());
t.setPlotColor(e.getPlotColor()); t.setPlotColor(e.getPlotColor());
// t.setPlotOrCropInfo(plotOrCropInfo); // t.setPlotOrCropInfo(plotOrCropInfo);
t.setPlotPopupFrames(plotPopupFrame); t.setPlotPopupFrames(plotPopupFrame.get(0));
// t.setLesseeList(lesseeList); // t.setLesseeList(lesseeList);
targetList.add(t); targetList.add(t);
} }