Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -5,6 +5,7 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -29,11 +30,14 @@ public class BaseNameRespVO {
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public static class PlotInfoVO {
|
||||
@Schema(description = "地块ID", example = "4027")
|
||||
@Schema(description = "地块ID")
|
||||
private String plotId;
|
||||
|
||||
@Schema(description = "地块名称", example = "王五")
|
||||
@Schema(description = "地块名称")
|
||||
private String plotName;
|
||||
|
||||
@Schema(description = "地块总面积")
|
||||
private BigDecimal plotArea;
|
||||
}
|
||||
|
||||
public BaseNameRespVO(String id, String name) {
|
||||
|
||||
@@ -113,7 +113,7 @@ public class BaseInfoServiceImpl implements BaseInfoService {
|
||||
List<BaseNameRespVO.PlotInfoVO> childList = new ArrayList<>();
|
||||
for (PlotInfoDO aDo : plotInfoDOS) {
|
||||
if (aDo.getBaseId().equals(key)) {
|
||||
childList.add(new BaseNameRespVO.PlotInfoVO(aDo.getPlotId(), aDo.getPlotName()));
|
||||
childList.add(new BaseNameRespVO.PlotInfoVO(aDo.getPlotId(), aDo.getPlotName(), aDo.getPlotArea()));
|
||||
}
|
||||
}
|
||||
obj.setChildren(childList);
|
||||
|
||||
Reference in New Issue
Block a user