Sfoglia il codice sorgente

垫款 初版1.3优化修改

zhaoxian 2 anni fa
parent
commit
822023d891

+ 4 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/service/impl/FinancePaymentRechargeApplicationServiceImpl.java

@@ -201,7 +201,10 @@ public class FinancePaymentRechargeApplicationServiceImpl extends ServiceImpl<Fi
             account.setRechargeId(recharge.getId());
             account.setProjectId(recharge.getProjectId());
             account.setAccountId(obj.getLong("accountId"));
-            account.setAccountName(userAllocationService.getByAccountId(obj.getLong("accountId")).getAuthName());
+            UserAllocation acco = userAllocationService.getByAccountId(obj.getLong("accountId"));
+            if (!Check.isNull(acco)) {
+                account.setAccountName(acco.getAuthName());
+            }
             account.setCashAmount(obj.getBigDecimal("cashAmount"));
             account.setReceivedAmount(obj.getBigDecimal("receivedAmount"));
             account.setRebateType(obj.getString("rebateType"));