From 8853292babb2ad94de4a3207966f1e83b767cd2d Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sun, 17 Sep 2023 16:38:34 +0800
Subject: [PATCH] 新增流程节点进程查询接口
---
src/main/java/org/springblade/modules/talk/mapper/TalkMapper.xml | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/springblade/modules/talk/mapper/TalkMapper.xml b/src/main/java/org/springblade/modules/talk/mapper/TalkMapper.xml
index 2be131d..6c4c1b4 100644
--- a/src/main/java/org/springblade/modules/talk/mapper/TalkMapper.xml
+++ b/src/main/java/org/springblade/modules/talk/mapper/TalkMapper.xml
@@ -15,11 +15,17 @@
<result column="imgurl" property="imgurl"/>
</resultMap>
-
+ <!--自定义心理咨询分页查询-->
<select id="selectTalkPage" resultMap="talkResultMap">
- select * from sys_talk where 1=1
- <if test="talk.deptid!=null and alk.deptid!='' and alk.deptid!='1123598813738675201'">
- deptid=#{talk.deptid}
+ select st.* from sys_talk st
+ left join sys_information si on si.departmentid = st.deptid
+ left join sys_jurisdiction sj on si.jurisdiction = sj.id
+ where 1=1
+ <if test="talk.deptid!=null and talk.deptid!='' and talk.deptid!='1123598813738675201'">
+ and st.deptid=#{talk.deptid}
+ </if>
+ <if test="talk.jurisdiction!=null and talk.jurisdiction!='' and talk.jurisdiction!='1372091709474910209'">
+ and (sj.id=#{talk.jurisdiction} or sj.parent_id = #{talk.jurisdiction})
</if>
</select>
--
Gitblit v1.9.3