缴费审核
This commit is contained in:
+4
-5
@@ -161,15 +161,14 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl<PayPaymentCheckMappe
|
||||
paidAmount = new BigDecimal("0.00");
|
||||
}
|
||||
|
||||
// 0 < 实收金额 && 实收金额 < 应收金额 && 不等于待审核/已拒绝
|
||||
if(paidAmount.compareTo(new BigDecimal("0.00")) > 0
|
||||
&& paidAmount.compareTo(amountReceivable) < 0
|
||||
// 实收金额 < 应收金额 && 不等于待审核/已拒绝
|
||||
if(paidAmount.compareTo(amountReceivable) < 0
|
||||
&& !PaymentStatusEnum.TO_BE_REVIEWED.getCode().equals(paymentStatus)
|
||||
&& !PaymentStatusEnum.REJECTED.getCode().equals(paymentStatus)){
|
||||
paymentStatus = PaymentStatusEnum.TO_BE_UPLOADED.getCode();//待上传
|
||||
}
|
||||
// 0 < 实收金额 && 实收金额 == 应收金额
|
||||
if(paidAmount.compareTo(new BigDecimal("0.00")) > 0
|
||||
// 应收>0 && 实收金额 == 应收金额
|
||||
if(amountReceivable.compareTo(new BigDecimal("0.00")) > 0
|
||||
&& paidAmount.compareTo(amountReceivable) == 0){
|
||||
paymentStatus = PaymentStatusEnum.COMPLETED.getCode();//待完结
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user