09-08-土地流转新增type区分完成和未完成

This commit is contained in:
2025-09-08 16:02:26 +08:00
parent 2ecb0063bf
commit c90828f98e
2 changed files with 10 additions and 1 deletions

View File

@ -196,4 +196,7 @@ public class BusLandTransferLedgerVo implements Serializable {
//总金额(元)
private BigDecimal totalAmountAll;
//流转状态 分 未完成 和 已完成
private String type;
}

View File

@ -112,7 +112,7 @@ public class BusLandTransferLedgerServiceImpl extends ServiceImpl<BusLandTransfe
//已流转面积
BigDecimal transferArea = new BigDecimal(0);
//未流转面积
BigDecimal noTransferAea = new BigDecimal(0);
BigDecimal noTransferAea;
//土地租金
BigDecimal landRentAll = new BigDecimal(0);
@ -167,6 +167,12 @@ public class BusLandTransferLedgerServiceImpl extends ServiceImpl<BusLandTransfe
vo.setSeedlingCompensationAll(seedlingCompensationAll);
//总金额(元)
vo.setTotalAmountAll(totalAmountAll);
//流转状态
if (transferArea.add(noTrans).compareTo(vo.getDesignArea()) >= 0) {
vo.setType("已完成");
}else {
vo.setType("未完成");
}
}
return TableDataInfo.build(result);