结算协议书小数向上取整
This commit is contained in:
parent
a11b19e93c
commit
9e9a455756
|
|
@ -453,8 +453,9 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
|
|||
}
|
||||
// 如果费用是空的、null、0 那么就根据数量和单价计算
|
||||
if (bean.getCosts() == null || bean.getCosts().compareTo(BigDecimal.ZERO) < 0 || bean.getCosts().equals(BigDecimal.ZERO)) {
|
||||
BigDecimal costs = leasePrice.multiply(num).multiply(leaseDays).setScale(GlobalConstants.INT_2, RoundingMode.DOWN);
|
||||
BigDecimal costs = leasePrice.multiply(num).multiply(leaseDays).setScale(GlobalConstants.INT_2, RoundingMode.HALF_UP);
|
||||
bean.setCosts(costs);
|
||||
log.info("租赁费用:"+costs);
|
||||
}
|
||||
}
|
||||
return leaseList;
|
||||
|
|
@ -1372,6 +1373,12 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
|
|||
}
|
||||
|
||||
List<PeriodCostResultVo> rawResults;
|
||||
// PeriodCostResultVo sltStatus = sltAgreementInfoMapper.selectSltStatus(queryDto);
|
||||
//
|
||||
// if(sltStatus != null){
|
||||
// queryDto.setSettlementStatus(sltStatus.getSettlementStatus());
|
||||
// }
|
||||
|
||||
if (StringUtils.isNotBlank(queryDto.getSettlementStatus()) && queryDto.getSettlementStatus().equals("2")) {
|
||||
// 从数据库slt_agreement_details表查询【已结算明细】
|
||||
rawResults = sltAgreementInfoMapper.selectLeasePeriodCostListBySltDetails(queryDto);
|
||||
|
|
|
|||
Loading…
Reference in New Issue