From 3033ccf3878fae2c204df53be2a283f29f5853ed Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期五, 10 十月 2025 18:17:02 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/haizhentong --- ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index be96a75..454dcb3 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -273,8 +273,14 @@ <select id="selectIdByPhone" resultType="java.lang.Long"> select user_id from sys_user where phonenumber = #{phonenumber} and status = 0 and del_flag = 0 </select> + <select id="selectUserListByIds" resultType="com.ruoyi.common.core.domain.entity.SysUser"> + select * from sys_user where open_id IS NOT NULL AND user_id in + <foreach item="userId" collection="userIds" separator="," close=")" open="("> + #{userId} + </foreach> + </select> - <insert id="insertUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser" useGeneratedKeys="true" keyProperty="userId"> + <insert id="insertUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser" useGeneratedKeys="true" keyProperty="userId"> insert into sys_user( <if test="userId != null and userId != 0">user_id,</if> <if test="deptId != null and deptId != 0">dept_id,</if> -- Gitblit v1.7.1