zendwang
2021-12-02 209654fdff7206c2638d9fbe26eb0fb17a68adb4
fix selectPostListByUserId方法出参调整为Long
已修改4个文件
10 ■■■■ 文件已修改
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java
@@ -18,7 +18,7 @@
     * @param userId 用户ID
     * @return 选中岗位ID列表
     */
    List<Integer> selectPostListByUserId(Long userId);
    List<Long> selectPostListByUserId(Long userId);
    /**
     * 查询用户所属岗位组
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java
@@ -45,7 +45,7 @@
     * @param userId 用户ID
     * @return 选中岗位ID列表
     */
    List<Integer> selectPostListByUserId(Long userId);
    List<Long> selectPostListByUserId(Long userId);
    /**
     * 校验岗位名称
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java
@@ -80,7 +80,7 @@
     * @return 选中岗位ID列表
     */
    @Override
    public List<Integer> selectPostListByUserId(Long userId) {
    public List<Long> selectPostListByUserId(Long userId) {
        return baseMapper.selectPostListByUserId(userId);
    }
ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml
@@ -29,7 +29,7 @@
        from sys_post
    </sql>
    <select id="selectPostListByUserId" parameterType="Long" resultType="Integer">
    <select id="selectPostListByUserId" parameterType="Long" resultType="Long">
        select p.post_id
        from sys_post p
                 left join sys_user_post up on up.post_id = p.post_id
@@ -45,4 +45,4 @@
        where u.user_name = #{userName}
    </select>
</mapper>
</mapper>