From 672320f38b6930d508e2bf6026182cee097ff238 Mon Sep 17 00:00:00 2001
From: songgaoshuai <1742057357@qq.com>
Date: 星期四, 07 三月 2024 18:28:41 +0800
Subject: [PATCH] update 优化当前任务审批人 添加获取当前任务查询
---
ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml
index 614a99b..199dffe 100644
--- a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml
+++ b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml
@@ -2,25 +2,17 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.ruoyi.system.mapper.SysPostMapper">
+<mapper namespace="org.dromara.system.mapper.SysPostMapper">
- <resultMap type="com.ruoyi.system.domain.SysPost" id="SysPostResult">
+ <resultMap type="org.dromara.system.domain.vo.SysPostVo" id="SysPostResult">
</resultMap>
- <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
- left join sys_user u on u.user_id = up.user_id
- where u.user_id = #{userId}
- </select>
-
- <select id="selectPostsByUserName" parameterType="String" resultMap="SysPostResult">
+ <select id="selectPostsByUserId" parameterType="Long" resultMap="SysPostResult">
select p.post_id, p.post_name, p.post_code
from sys_post p
left join sys_user_post up on up.post_id = p.post_id
left join sys_user u on u.user_id = up.user_id
- where u.user_name = #{userName}
+ where u.user_id = #{userId}
</select>
</mapper>
--
Gitblit v1.9.3