From 2670877343c40ae19f536cd9cc19e39ce3153a76 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 27 三月 2023 16:56:32 +0800 Subject: [PATCH] remove 移除 vue2 前端工程 统一使用 vue3 工程 --- ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index a70cd5f..481c17a 100644 --- a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -5,23 +5,24 @@ <mapper namespace="com.ruoyi.system.mapper.SysUserMapper"> <!-- 澶氱粨鏋勫祵濂楄嚜鍔ㄦ槧灏勯渶甯︿笂姣忎釜瀹炰綋鐨勪富閿甶d 鍚﹀垯鏄犲皠浼氬け璐� --> - <resultMap type="com.ruoyi.system.domain.SysUser" id="SysUserResult"> + <resultMap type="com.ruoyi.system.domain.vo.SysUserVo" id="SysUserResult"> <id property="userId" column="user_id"/> <result property="deptId" column="dept_id"/> <association property="dept" column="dept_id" resultMap="deptResult"/> <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/> </resultMap> - <resultMap id="deptResult" type="com.ruoyi.system.domain.SysDept"> + <resultMap id="deptResult" type="com.ruoyi.system.domain.vo.SysDeptVo"> <id property="deptId" column="dept_id"/> </resultMap> - <resultMap id="RoleResult" type="com.ruoyi.system.domain.SysRole"> + <resultMap id="RoleResult" type="com.ruoyi.system.domain.vo.SysRoleVo"> <id property="roleId" column="role_id"/> </resultMap> <sql id="selectUserVo"> select u.user_id, + u.tenant_id, u.dept_id, u.user_name, u.nick_name, @@ -101,6 +102,16 @@ where u.del_flag = '0' and u.phonenumber = #{phonenumber} </select> + <select id="selectTenantUserByUserName" parameterType="String" resultMap="SysUserResult"> + <include refid="selectUserVo"/> + where u.del_flag = '0' and u.user_name = #{userName} and u.tenant_id = #{tenantId} + </select> + + <select id="selectTenantUserByPhonenumber" parameterType="String" resultMap="SysUserResult"> + <include refid="selectUserVo"/> + where u.del_flag = '0' and u.phonenumber = #{phonenumber} and u.tenant_id = #{tenantId} + </select> + <select id="selectUserById" parameterType="Long" resultMap="SysUserResult"> <include refid="selectUserVo"/> where u.del_flag = '0' and u.user_id = #{userId} -- Gitblit v1.9.3