md
This commit is contained in:
parent
e5d4374ee1
commit
42c1660377
@ -109,14 +109,17 @@ public class EmisSettlePayRecordServiceImpl extends EmisBaseService implements I
|
|||||||
throw new EmisBizError(EmisBizErrorType.FAIL,"账单编号不能为空");
|
throw new EmisBizError(EmisBizErrorType.FAIL,"账单编号不能为空");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// || BigDecimal.ZERO.compareTo(emisSettlePayRecord.getPayMoney()) == 0
|
||||||
if("1".equals(emisSettlePayRecord.getRecType())) {
|
if("1".equals(emisSettlePayRecord.getRecType())) {
|
||||||
if (emisSettlePayRecord.getPayMoney() == null || BigDecimal.ZERO.compareTo(emisSettlePayRecord.getPayMoney()) == 0) {
|
if (emisSettlePayRecord.getPayMoney() == null ) {
|
||||||
throw new EmisBizError(EmisBizErrorType.FAIL, "收款金额不能为0");
|
throw new EmisBizError(EmisBizErrorType.FAIL, "收款金额不能为空");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// || BigDecimal.ZERO.compareTo(emisSettlePayRecord.getRefundMoney()) == 0
|
||||||
else if("2".equals(emisSettlePayRecord.getRecType())) {
|
else if("2".equals(emisSettlePayRecord.getRecType())) {
|
||||||
if (emisSettlePayRecord.getRefundMoney()== null || BigDecimal.ZERO.compareTo(emisSettlePayRecord.getRefundMoney()) == 0) {
|
if (emisSettlePayRecord.getRefundMoney()== null ) {
|
||||||
throw new EmisBizError(EmisBizErrorType.FAIL, "退款金额不能为0");
|
throw new EmisBizError(EmisBizErrorType.FAIL, "退款金额不能为空");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user