|
|
|
@ -86,7 +86,7 @@ public class CashCollectionServiceImpl implements CashCollectionService { |
|
|
|
if (cashCollection.getPaymentCurrency() == null) { |
|
|
|
throw new IllegalArgumentException("支付币种不能为空"); |
|
|
|
} |
|
|
|
if (cashCollection.getPaymentAmount() == null) { |
|
|
|
if (cashCollection.getPaymentAmount() == null || cashCollection.getPaymentAmount().compareTo(BigDecimal.ZERO) == 0) { |
|
|
|
throw new IllegalArgumentException("支付金额不能为空"); |
|
|
|
} |
|
|
|
if (cashCollection.getPayType() == null) { |
|
|
|
@ -192,7 +192,7 @@ public class CashCollectionServiceImpl implements CashCollectionService { |
|
|
|
if (cashRecord.getPaymentCurrency() == null) { |
|
|
|
throw new IllegalArgumentException("支付币种不能为空"); |
|
|
|
} |
|
|
|
if (cashRecord.getPaymentAmount() == null) { |
|
|
|
if (cashRecord.getPaymentAmount() == null || cashRecord.getPaymentAmount().compareTo(BigDecimal.ZERO) == 0) { |
|
|
|
throw new IllegalArgumentException("支付金额不能为空"); |
|
|
|
} |
|
|
|
if (cashRecord.getPayType() == null) { |
|
|
|
|