From ef066727a9ffd4ad8f9723d0b858e382c48567b9 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期三, 26 十一月 2025 08:59:22 +0800
Subject: [PATCH] update
---
DriverJYXTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/UserWithdrawalController.java | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/DriverJYXTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/UserWithdrawalController.java b/DriverJYXTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/UserWithdrawalController.java
index 992fa44..f002b4f 100644
--- a/DriverJYXTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/UserWithdrawalController.java
+++ b/DriverJYXTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/UserWithdrawalController.java
@@ -16,6 +16,7 @@
import com.stylefeng.guns.modular.system.service.IBankCardService;
import com.stylefeng.guns.modular.system.service.ICompanyService;
import com.stylefeng.guns.modular.system.service.IDriverService;
+import com.stylefeng.guns.modular.system.service.IRegionService;
import com.stylefeng.guns.modular.system.util.ResultUtil;
import com.unionpay.upyzt.exception.InvalidRequestException;
import com.unionpay.upyzt.exception.UpyztException;
@@ -59,9 +60,13 @@
private final ICompanyService companyService;
private final ITBankNextService bankNextService;
private final DouGongBasicDataBiz douGongBasicDataBiz;
+ private final IRegionService regionService;
@Autowired
- public UserWithdrawalController(ElectronicLedgerService electronicLedgerService, UserWithdrawalService userWithdrawalService, UserBankAccountService userBankAccountService, IBankCardService bankCardService, IDriverService driverService, ICompanyService companyService, ITBankNextService bankNextService, DouGongBasicDataBiz douGongBasicDataBiz) {
+ public UserWithdrawalController(ElectronicLedgerService electronicLedgerService,
+ UserWithdrawalService userWithdrawalService, UserBankAccountService userBankAccountService,
+ IBankCardService bankCardService, IDriverService driverService, ICompanyService companyService,
+ ITBankNextService bankNextService, DouGongBasicDataBiz douGongBasicDataBiz,IRegionService regionService) {
this.electronicLedgerService = electronicLedgerService;
this.userWithdrawalService = userWithdrawalService;
this.userBankAccountService = userBankAccountService;
@@ -70,6 +75,7 @@
this.companyService = companyService;
this.bankNextService = bankNextService;
this.douGongBasicDataBiz = douGongBasicDataBiz;
+ this.regionService = regionService;
}
@@ -346,6 +352,10 @@
if(Objects.isNull(userWithdrawal)){
return ResultUtil.success(new Object());
}
+ Region province = regionService.getRegionByCode(userWithdrawal.getBankCardProvinceCode());
+ Region city = regionService.getRegionByCode(userWithdrawal.getBankCardCityCode());
+ userWithdrawal.setBankCardProvince(province == null ? "" : province.getName());
+ userWithdrawal.setBankCardCity(city == null ? "" : city.getName());
return ResultUtil.success(userWithdrawal);
}catch (Exception e){
e.printStackTrace();
--
Gitblit v1.7.1