Browse Source

[feat]: 新增:查询所有系统用户的方法,mapper层更新方法selectUserAll。适用报销单,出差单,领料单,请购单的查询对应的创建人下拉框。

dev
zhangsiqi 3 months ago
parent
commit
cbc463bfa1
  1. 2
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java
  2. 2
      ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java
  3. 4
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
  4. 4
      ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

2
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java

@ -170,4 +170,6 @@ public interface SysUserMapper
* */ * */
String selectLoginNameByUserName(String businessMembers); String selectLoginNameByUserName(String businessMembers);
List<SysUser> selectUserAll() throws Exception;
} }

2
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java

@ -219,4 +219,6 @@ public interface ISysUserService
List<Map<String,String>> selectUserSelList(String userName); List<Map<String,String>> selectUserSelList(String userName);
List<SysUser> selectRoleToUserList(String roleKeys); List<SysUser> selectRoleToUserList(String roleKeys);
public List<SysUser> selectUserAll() throws Exception;
} }

4
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java

@ -546,4 +546,8 @@ public class SysUserServiceImpl implements ISysUserService
public List<SysUser> selectRoleToUserList(String roleKeys) { public List<SysUser> selectRoleToUserList(String roleKeys) {
return userMapper.selectRoleToUserList(Convert.toStrArray(roleKeys)); return userMapper.selectRoleToUserList(Convert.toStrArray(roleKeys));
} }
@Override
public List<SysUser> selectUserAll() throws Exception {
return userMapper.selectUserAll();
}
} }

4
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

@ -268,5 +268,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectLoginNameByUserName" parameterType="String" resultType="String"> <select id="selectLoginNameByUserName" parameterType="String" resultType="String">
select login_name from sys_user where del_flag = '0' and user_name = #{userName} select login_name from sys_user where del_flag = '0' and user_name = #{userName}
</select> </select>
<select id="selectUserAll" resultMap="SysUserResult">
select login_name,user_name from sys_user where del_flag = '0'
</select>
</mapper> </mapper>
Loading…
Cancel
Save