From 1c40baaf9ca0183945b9881d11ceed5aeebc8290 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期四, 23 十月 2025 11:35:44 +0800
Subject: [PATCH] 修改bug
---
UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/AccountController.java | 61 ++++++++----------------------
1 files changed, 16 insertions(+), 45 deletions(-)
diff --git a/UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/AccountController.java b/UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/AccountController.java
index fffd433..a122797 100644
--- a/UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/AccountController.java
+++ b/UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/AccountController.java
@@ -3,7 +3,6 @@
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.core.util.ToolUtil;
-import com.stylefeng.guns.modular.CharteredCar.server.IOrderCharteredCarService;
import com.stylefeng.guns.modular.account.model.TBank;
import com.stylefeng.guns.modular.account.model.TBankNext;
import com.stylefeng.guns.modular.account.model.TUserBankAccount;
@@ -11,25 +10,10 @@
import com.stylefeng.guns.modular.account.server.ITBankService;
import com.stylefeng.guns.modular.account.server.UserBankAccountService;
import com.stylefeng.guns.modular.account.server.UserWithdrawalService;
-import com.stylefeng.guns.modular.cloudPayment.example.BalanceAcctExample;
-import com.stylefeng.guns.modular.cloudPayment.example.CusApplicationExample;
-import com.stylefeng.guns.modular.cloudPayment.example.SettleAcctExample;
-import com.stylefeng.guns.modular.cloudPayment.example.WithdrawalExample;
-import com.stylefeng.guns.modular.cloudPayment.req.BalanceAcctReq;
-import com.stylefeng.guns.modular.cloudPayment.req.UserBankAccountReq;
-import com.stylefeng.guns.modular.cloudPayment.req.WithdrawalReq;
-import com.stylefeng.guns.modular.system.model.User;
import com.stylefeng.guns.modular.system.model.UserBankAccount;
import com.stylefeng.guns.modular.system.model.UserInfo;
-import com.stylefeng.guns.modular.system.model.UserWithdrawal;
import com.stylefeng.guns.modular.system.service.IUserInfoService;
-import com.stylefeng.guns.modular.system.service.IUserService;
import com.stylefeng.guns.modular.system.util.ResultUtil;
-import com.unionpay.upyzt.exception.UpyztException;
-import com.unionpay.upyzt.resp.BalanceAcctListResp;
-import com.unionpay.upyzt.resp.CusApplicationResp;
-import com.unionpay.upyzt.resp.SettleAcctListResp;
-import com.unionpay.upyzt.resp.SettleAcctResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
@@ -38,7 +22,10 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
-import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@@ -80,56 +67,40 @@
int count = bankAccountService.selectCount(new EntityWrapper<UserBankAccount>().eq("userId", uid)
.eq("userType", 1).eq("bankCardCode", userBankAccount.getBankCardCode())
.eq("status", 1));
- if(count > 0){
+ if (count > 0) {
return ResultUtil.error("不能重复添加银行卡");
}
- List<UserWithdrawal> userId = userWithdrawalService.selectList(new EntityWrapper<UserWithdrawal>().eq("phone", user.getPhone()).eq("userType",1));
- if(userId.size()==0){
- return ResultUtil.error("请先进行个人用户进件信息填写");
- }
+// List<UserWithdrawal> userId = userWithdrawalService.selectList(new EntityWrapper<UserWithdrawal>().eq("phone", user.getPhone()).eq("userType",1));
+// if(userId.size()==0){
+// return ResultUtil.error("请先进行个人用户进件信息填写");
+// }
userBankAccount.setUserId(uid);
UserBankAccount userBankAccount1 = new UserBankAccount();
- BeanUtils.copyProperties(userBankAccount,userBankAccount1);
+ BeanUtils.copyProperties(userBankAccount, userBankAccount1);
userBankAccount1.setCreateTime(new Date());
userBankAccount1.setUserType(1);
userBankAccount1.setOutRequestNo(ToolUtil.getRandomString(32));
userBankAccount1.setBankAcctType("1");
bankAccountService.insert(userBankAccount1);
- UserBankAccountReq userBankAccountReq = new UserBankAccountReq();
- BeanUtils.copyProperties(userBankAccount1,userBankAccountReq);
- userBankAccountReq.setCusId(userId.get(0).getCusId());
+// UserBankAccountReq userBankAccountReq = new UserBankAccountReq();
+// BeanUtils.copyProperties(userBankAccount1,userBankAccountReq);
+// userBankAccountReq.setCusId(userId.get(0).getCusId());
// SettleAcctResp settleAcctResp = SettleAcctExample.create(userBankAccountReq);
// userBankAccount1.setOutRequestNo(settleAcctResp.getOutRequestNo());
// userBankAccount1.setVerifyStatus(settleAcctResp.getVerifyStatus());
// userBankAccount1.setAcctValidationFailureMsg(settleAcctResp.getAcctValidationFailureMsg());
// userBankAccount1.setAcctValidationFinishedAt(settleAcctResp.getAcctValidationFinishedAt().toString());
// userBankAccount1.setSettleAcctId(settleAcctResp.getSettleAcctId());
- bankAccountService.updateById(userBankAccount1);
+// bankAccountService.updateById(userBankAccount1);
return ResultUtil.success();
}catch (Exception e){
e.printStackTrace();
return ResultUtil.runErr();
}
}
-
-
- @ResponseBody
- @RequestMapping(value = "/getCode", method = RequestMethod.POST)
- @ApiOperation(value = "获取验证码", tags = {"用户端-获取验证码"}, notes = "")
- @ApiImplicitParams({
- @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."),
- })
- public ResultUtil getCode(String phone){
- try {
- CusApplicationExample.smsCode(phone);
- return ResultUtil.success();
- }catch (UpyztException e){
- e.printStackTrace();
- return ResultUtil.error(e.getMessage());
- }
- }
-
+
+
@Autowired
private IUserInfoService userInfoService;
--
Gitblit v1.7.1