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/social/mapper/SocialMapper.xml | 25 +++++++++++++++++++++----
1 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/springblade/modules/social/mapper/SocialMapper.xml b/src/main/java/org/springblade/modules/social/mapper/SocialMapper.xml
index 603c490..dfb65c9 100644
--- a/src/main/java/org/springblade/modules/social/mapper/SocialMapper.xml
+++ b/src/main/java/org/springblade/modules/social/mapper/SocialMapper.xml
@@ -27,15 +27,32 @@
u.real_name as realname
FROM
sys_socil s
- LEFT JOIN blade_user u ON s.namb = u.id where 1=1
+ LEFT JOIN
+ blade_user u
+ ON
+ s.cardid = u.cardid
+ left join
+ sys_jurisdiction sj
+ on
+ sj.id = s.jurisdiction
+ where 1=1
+ and u.is_deleted = 0
+ AND u.status = 1
+ AND u.role_id = '1412226235153731586'
+ <if test="social.jurisdiction!=null and social.jurisdiction!='' and social.jurisdiction!='1372091709474910209'">
+ and (sj.id=#{social.jurisdiction} or sj.parent_id = #{social.jurisdiction})
+ </if>
<if test="social.realname!=null and social.realname!=''">
and u.real_name like concat(concat('%', #{social.realname}),'%')
</if>
+ <if test="social.cardid!=null and social.cardid!=''">
+ and s.cardid like concat(concat('%', #{social.cardid}),'%')
+ </if>
+ <if test="social.namb!=null and social.namb!=''">
+ and s.namb like concat('%',#{social.namb},'%')
+ </if>
<if test="social.deptid!=null and social.deptid!=''">
and s.deptid=#{social.deptid}
- </if>
- <if test="social.jurisdiction!=null and social.jurisdiction!=''">
- and s.jurisdiction=#{social.jurisdiction}
</if>
</select>
--
Gitblit v1.9.3