From 8b097af195e5b0056eaad06f199cd1d291821912 Mon Sep 17 00:00:00 2001
From: 佟明键 <tongmingjian@sinosoft.com.cn>
Date: 星期四, 24 二月 2022 12:39:28 +0800
Subject: [PATCH] update 优化随机数生成方式 避免容易生成两个相同随机数的问题

---
 ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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