diff --git a/smart-switch-ruoyi/smart-switch-common/src/main/java/com/ruoyi/common/core/redis/enums/RedisLockKey.java b/smart-switch-ruoyi/smart-switch-common/src/main/java/com/ruoyi/common/core/redis/enums/RedisLockKey.java
index 6148c887..8065e84b 100644
--- a/smart-switch-ruoyi/smart-switch-common/src/main/java/com/ruoyi/common/core/redis/enums/RedisLockKey.java
+++ b/smart-switch-ruoyi/smart-switch-common/src/main/java/com/ruoyi/common/core/redis/enums/RedisLockKey.java
@@ -24,7 +24,9 @@ public enum RedisLockKey {
PREPAY_DEPOSIT("prepay_deposit", "支付押金"),
ADD_RECHARGE_ORDER("add_recharge_order", "创建充值订单"),
PAY_BILL_SUCCESS("pay_bill_success", "支付订单成功处理"),
- RECOVER_DEVICE_BALANCE("recover_device_balance", "恢复设备余额");
+ RECOVER_DEVICE_BALANCE("recover_device_balance", "恢复设备余额"),
+ ADD_USER_WX_OPEN_ID("add_user_wx_open_id", "微信注册用户"),
+ ADD_USER_MOBILE("add_user_mobile", "手机号注册用户");
private final String key;
diff --git a/smart-switch-ruoyi/smart-switch-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java b/smart-switch-ruoyi/smart-switch-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
index 7d57bc4e..8904c23e 100644
--- a/smart-switch-ruoyi/smart-switch-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
+++ b/smart-switch-ruoyi/smart-switch-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
@@ -260,7 +260,6 @@ public class SysLoginService
/**
* 微信登录
*/
- @Transactional
public String wxLogin(WxLoginBody body) {
// 通过openId查询用户
diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/user/domain/SmUserQuery.java b/smart-switch-service/src/main/java/com/ruoyi/ss/user/domain/SmUserQuery.java
index 857bfebc..f983dee7 100644
--- a/smart-switch-service/src/main/java/com/ruoyi/ss/user/domain/SmUserQuery.java
+++ b/smart-switch-service/src/main/java/com/ruoyi/ss/user/domain/SmUserQuery.java
@@ -32,4 +32,7 @@ public class SmUserQuery extends SmUser {
@ApiModelProperty("用户手机号精准匹配")
private String eqPhonenumber;
+ @ApiModelProperty("排除的用户ID")
+ private Long excludeUserId;
+
}
diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/user/mapper/SmUserMapper.java b/smart-switch-service/src/main/java/com/ruoyi/ss/user/mapper/SmUserMapper.java
index 6cacacd0..3bcfb892 100644
--- a/smart-switch-service/src/main/java/com/ruoyi/ss/user/mapper/SmUserMapper.java
+++ b/smart-switch-service/src/main/java/com/ruoyi/ss/user/mapper/SmUserMapper.java
@@ -64,7 +64,7 @@ public interface SmUserMapper
*/
public int deleteSmUserByUserIds(Long[] userIds);
- Integer selectCount(SmUserQuery dto);
+ int selectCount(SmUserQuery dto);
int addBalance(@Param("userId") Long userId, @Param("amount") BigDecimal amount);
diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/user/mapper/SmUserMapper.xml b/smart-switch-service/src/main/java/com/ruoyi/ss/user/mapper/SmUserMapper.xml
index eb4b181c..3b6037c2 100644
--- a/smart-switch-service/src/main/java/com/ruoyi/ss/user/mapper/SmUserMapper.xml
+++ b/smart-switch-service/src/main/java/com/ruoyi/ss/user/mapper/SmUserMapper.xml
@@ -88,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and limit_refund = #{limitRefund}
and read_mch_licence = #{readMchLicence}
and show_bill_mobile = #{showBillMobile}
+ and su.user_id != #{excludeUserId}
and su.user_id in (
select sdt.tenant_id
@@ -126,7 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"