09-08-土地流转新增type区分完成和未完成
This commit is contained in:
@ -196,4 +196,7 @@ public class BusLandTransferLedgerVo implements Serializable {
|
|||||||
//总金额(元)
|
//总金额(元)
|
||||||
private BigDecimal totalAmountAll;
|
private BigDecimal totalAmountAll;
|
||||||
|
|
||||||
|
//流转状态 分 未完成 和 已完成
|
||||||
|
private String type;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ public class BusLandTransferLedgerServiceImpl extends ServiceImpl<BusLandTransfe
|
|||||||
//已流转面积
|
//已流转面积
|
||||||
BigDecimal transferArea = new BigDecimal(0);
|
BigDecimal transferArea = new BigDecimal(0);
|
||||||
//未流转面积
|
//未流转面积
|
||||||
BigDecimal noTransferAea = new BigDecimal(0);
|
BigDecimal noTransferAea;
|
||||||
|
|
||||||
//土地租金
|
//土地租金
|
||||||
BigDecimal landRentAll = new BigDecimal(0);
|
BigDecimal landRentAll = new BigDecimal(0);
|
||||||
@ -167,6 +167,12 @@ public class BusLandTransferLedgerServiceImpl extends ServiceImpl<BusLandTransfe
|
|||||||
vo.setSeedlingCompensationAll(seedlingCompensationAll);
|
vo.setSeedlingCompensationAll(seedlingCompensationAll);
|
||||||
//总金额(元)
|
//总金额(元)
|
||||||
vo.setTotalAmountAll(totalAmountAll);
|
vo.setTotalAmountAll(totalAmountAll);
|
||||||
|
//流转状态
|
||||||
|
if (transferArea.add(noTrans).compareTo(vo.getDesignArea()) >= 0) {
|
||||||
|
vo.setType("已完成");
|
||||||
|
}else {
|
||||||
|
vo.setType("未完成");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return TableDataInfo.build(result);
|
return TableDataInfo.build(result);
|
||||||
|
Reference in New Issue
Block a user