From 0cc73a9ffcdd356e0b797e458b400acfb660da94 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期日, 15 六月 2025 02:26:06 +0800 Subject: [PATCH] 更新用户端功能 --- UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/AccountController.java | 48 ++++++++++-------------------------------------- 1 files changed, 10 insertions(+), 38 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..fc497c8 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,11 @@ 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 +23,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; @@ -90,15 +78,15 @@ } 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()); @@ -112,24 +100,8 @@ 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