fix (farm): 地块管理
- 地块总面积不可大于基地面积
This commit is contained in:
@@ -141,7 +141,7 @@ public class PlotInfoServiceImpl implements PlotInfoService {
|
|||||||
|
|
||||||
List<PlotInfoDO> plotInfoDOS = plotInfoMapper.selectList("base_id", baseId);
|
List<PlotInfoDO> plotInfoDOS = plotInfoMapper.selectList("base_id", baseId);
|
||||||
if (plotInfoDOS == null || plotInfoDOS.isEmpty()) {
|
if (plotInfoDOS == null || plotInfoDOS.isEmpty()) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BigDecimal plotTotalArea = plotInfoDOS.stream()
|
BigDecimal plotTotalArea = plotInfoDOS.stream()
|
||||||
|
|||||||
Reference in New Issue
Block a user