fix selectPostListByUserId方法出参调整为Long
| | |
| | | * @param userId 用户ID |
| | | * @return 选中岗位ID列表 |
| | | */ |
| | | List<Integer> selectPostListByUserId(Long userId); |
| | | List<Long> selectPostListByUserId(Long userId); |
| | | |
| | | /** |
| | | * 查询用户所属岗位组 |
| | |
| | | * @param userId 用户ID |
| | | * @return 选中岗位ID列表 |
| | | */ |
| | | List<Integer> selectPostListByUserId(Long userId); |
| | | List<Long> selectPostListByUserId(Long userId); |
| | | |
| | | /** |
| | | * 校验岗位名称 |
| | |
| | | * @return 选中岗位ID列表 |
| | | */ |
| | | @Override |
| | | public List<Integer> selectPostListByUserId(Long userId) { |
| | | public List<Long> selectPostListByUserId(Long userId) { |
| | | return baseMapper.selectPostListByUserId(userId); |
| | | } |
| | | |
| | |
| | | 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 |
| | |
| | | where u.user_name = #{userName} |
| | | </select> |
| | | |
| | | </mapper> |
| | | </mapper> |