!120 selectPostListByUserId方法出参调整为Long

Merge pull request !120 from zendwang/dev
master
疯狂的狮子Li 4 years ago committed by Gitee
commit b00c6dd89b

@ -18,7 +18,7 @@ public interface SysPostMapper extends BaseMapperPlus<SysPost> {
* @param userId ID * @param userId ID
* @return ID * @return ID
*/ */
List<Integer> selectPostListByUserId(Long userId); List<Long> selectPostListByUserId(Long userId);
/** /**
* *

@ -45,7 +45,7 @@ public interface ISysPostService extends IService<SysPost> {
* @param userId ID * @param userId ID
* @return ID * @return ID
*/ */
List<Integer> selectPostListByUserId(Long userId); List<Long> selectPostListByUserId(Long userId);
/** /**
* *

@ -80,7 +80,7 @@ public class SysPostServiceImpl extends ServicePlusImpl<SysPostMapper, SysPost,
* @return ID * @return ID
*/ */
@Override @Override
public List<Integer> selectPostListByUserId(Long userId) { public List<Long> selectPostListByUserId(Long userId) {
return baseMapper.selectPostListByUserId(userId); return baseMapper.selectPostListByUserId(userId);
} }

@ -29,7 +29,7 @@
from sys_post from sys_post
</sql> </sql>
<select id="selectPostListByUserId" parameterType="Long" resultType="Integer"> <select id="selectPostListByUserId" parameterType="Long" resultType="Long">
select p.post_id select p.post_id
from sys_post p from sys_post p
left join sys_user_post up on up.post_id = p.post_id left join sys_user_post up on up.post_id = p.post_id
@ -45,4 +45,4 @@
where u.user_name = #{userName} where u.user_name = #{userName}
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save