Pārlūkot izejas kodu

提现余额明细

wujiefeng 1 gadu atpakaļ
vecāks
revīzija
a9bdc2f5b6

+ 4 - 0
FullCardServer/src/main/java/com/zhongshu/card/server/core/service/pay/WithdrawService.java

@@ -215,6 +215,10 @@ public class WithdrawService extends SuperService {
         PaymentType paymentType = param.getPaymentType();
         BigDecimal amount = param.getAmount();
 
+        if(amount.compareTo(new BigDecimal(0)) == 0) {
+            return com.github.microservice.net.ResultContent.buildFail("提现金额不能为0");
+        }
+
         if (StringUtils.isBlank(projectOid)) {
             projectOid = getCurrentProjectOid();
         }