From 864587b0cc2b9a2a607f01b01adf6c9ebf038648 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期四, 27 十一月 2025 15:40:36 +0800
Subject: [PATCH] update
---
DriverJYXTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/account/controller/UserWithdrawalController.java | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 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 40af75a..c049368 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
@@ -128,8 +128,11 @@
// 查询司机
// Driver driver = driverService.selectById(id);
Driver driver = driverService.selectById(driverId);
- List<UserWithdrawal> userWithdrawals = userWithdrawalService.selectList(new EntityWrapper<UserWithdrawal>().eq("phone",driver.getPhone()).eq("type", 1));
- if (CollUtil.isNotEmpty(userWithdrawals)) {
+ UserWithdrawal userWithdrawal1 = userWithdrawalService.selectOne(new EntityWrapper<UserWithdrawal>()
+ .eq("userId",driver.getId())
+ .eq("userType",2).eq("type",1)
+ .last("LIMIT 1"));
+ if (userWithdrawal1!=null) {
return ResultUtil.error("该手机号已绑定进件信息");
}
userWithdrawalReq.setOutRequestNo(ToolUtil.getRandomString(32));
@@ -253,6 +256,8 @@
BeanUtils.copyProperties(userWithdrawal1,userWithdrawal);
userWithdrawal.setIdCardFrontPicture(copy1);
+ userWithdrawal.setUserId(driver.getId());
+ userWithdrawal.setUserType(2);
userWithdrawal.setIdCardReversePicture(copy2);
userWithdrawal.setImgUrl(idCardFrontPicture);
userWithdrawal.setImgUrlOne(idCardReversePicture);
@@ -338,7 +343,8 @@
return ResultUtil.tokenErr();
}
Driver driver = driverService.selectById(driverId);
- List<UserWithdrawal> userWithdrawals = userWithdrawalService.selectList(new EntityWrapper<UserWithdrawal>().eq("phone",driver.getPhone()).eq("type", 1));
+ List<UserWithdrawal> userWithdrawals = userWithdrawalService.selectList(new EntityWrapper<UserWithdrawal>().eq("userId",driver.getId())
+ .eq("userType",2).eq("type",1));
if(userWithdrawals.size()==0){
return ResultUtil.success("yes");
}
@@ -439,8 +445,8 @@
// 查询当前操作电子用户
// 司机进件信息
UserWithdrawal userWithdrawal = userWithdrawalService.selectOne(new EntityWrapper<UserWithdrawal>()
- .eq("phone",driver.getPhone())
- .eq("type", 1)
+ .eq("userId",driver.getId())
+ .eq("type", 1) .eq("userType",2)
//.eq("applicationStatus","succeeded")
.last("LIMIT 1"));
@@ -534,7 +540,8 @@
// .eq("userId", driverId)
// .eq("userType", 2));
userWithdrawal = userWithdrawalService.selectOne(new EntityWrapper<UserWithdrawal>()
- .eq("phone", driver.getPhone())
+ .eq("userId",driver.getId())
+ .eq("userType",2)
.eq("type", 1)
.last("LIMIT 1"));
if(Objects.isNull(userWithdrawal)){
--
Gitblit v1.7.1