From f2997ef2b7d94fab9c9decfb2e892a9ae2ce0f2e Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Sat, 04 Dec 2021 17:46:37 +0800
Subject: [PATCH] 问题修复
---
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