From 40f28e9869d13cc976a969d501f31887ac92663d Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期三, 18 一月 2023 12:06:31 +0800 Subject: [PATCH] update 优化 去除无用字典 --- ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml | 28 +++------------------------- 1 files changed, 3 insertions(+), 25 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..614a99b 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml @@ -4,32 +4,10 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ruoyi.system.mapper.SysPostMapper"> - <resultMap type="SysPost" id="SysPostResult"> - <id property="postId" column="post_id"/> - <result property="postCode" column="post_code"/> - <result property="postName" column="post_name"/> - <result property="postSort" column="post_sort"/> - <result property="status" column="status"/> - <result property="createBy" column="create_by"/> - <result property="createTime" column="create_time"/> - <result property="updateBy" column="update_by"/> - <result property="updateTime" column="update_time"/> - <result property="remark" column="remark"/> + <resultMap type="com.ruoyi.system.domain.SysPost" id="SysPostResult"> </resultMap> - <sql id="selectPostVo"> - select post_id, - post_code, - post_name, - post_sort, - status, - create_by, - create_time, - remark - 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 +23,4 @@ where u.user_name = #{userName} </select> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.9.3