From f284ec0a229d32a72eb5ff7397f3b0507fdb2eb3 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Thu, 02 Dec 2021 17:07:23 +0800
Subject: [PATCH] 1.许可
---
src/main/java/org/springblade/modules/recordk/mapper/RecordkMapper.xml | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/recordk/mapper/RecordkMapper.xml b/src/main/java/org/springblade/modules/recordk/mapper/RecordkMapper.xml
index 7438b7b..d4ed938 100644
--- a/src/main/java/org/springblade/modules/recordk/mapper/RecordkMapper.xml
+++ b/src/main/java/org/springblade/modules/recordk/mapper/RecordkMapper.xml
@@ -43,7 +43,25 @@
<select id="selectRecordkPage" resultMap="recordkResultMap">
- select * from sys_recordk
+ select * from sys_recordk si left join
+ sys_jurisdiction sj
+ on
+ sj.id = si.jurisdiction where 1=1
+ <if test="recordk.ptype!=null and recordk.ptype!=''">
+ and ptype=#{record.ptype}
+ </if>
+ <if test="recordk.jurisdiction!=null and recordk.jurisdiction != '' and recordk.jurisdiction!='1372091709474910209'">
+ and (sj.id = #{record.jurisdiction} or sj.parent_id = #{record.jurisdiction})
+ </if>
+ <if test="recordk.papprove!=null and recordk.papprove!=''">
+ and papprove=#{record.papprove}
+ </if>
+ <if test="recordk.xapprove!=null and recordk.xapprove!=''">
+ and xapprove=#{record.xapprove}
+ </if>
+ <if test="recordk.sapprove!=null and recordk.sapprove!=''">
+ and sapprove=#{record.sapprove}
+ </if>
</select>
<select id="selectIn" resultType="java.util.HashMap">
--
Gitblit v1.9.3