From 209654fdff7206c2638d9fbe26eb0fb17a68adb4 Mon Sep 17 00:00:00 2001
From: zendwang <wangzhenxian@idadt.com>
Date: 星期四, 02 十二月 2021 20:13:47 +0800
Subject: [PATCH] fix selectPostListByUserId方法出参调整为Long
---
ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml | 4 ++--
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java | 2 +-
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java | 2 +-
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java
index 50a5c75..2e305cf 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java
+++ b/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);
/**
* 鏌ヨ鐢ㄦ埛鎵�灞炲矖浣嶇粍
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java
index a049928..d315322 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java
+++ b/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);
/**
* 鏍¢獙宀椾綅鍚嶇О
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java
index 4e04f3a..f136de6 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java
+++ b/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);
}
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml
index c009a6c..eebc0a7 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml
+++ b/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>
\ No newline at end of file
+</mapper>
--
Gitblit v1.9.3