From 8e6f6217e52a635d1dfd4ccbb549b0427d3f9fa6 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 27 Apr 2022 15:55:17 +0800
Subject: [PATCH] 新增保安员新增审查
---
src/main/java/org/springblade/modules/record/mapper/RecordMapper.xml | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/record/mapper/RecordMapper.xml b/src/main/java/org/springblade/modules/record/mapper/RecordMapper.xml
index e84ca89..f81481d 100644
--- a/src/main/java/org/springblade/modules/record/mapper/RecordMapper.xml
+++ b/src/main/java/org/springblade/modules/record/mapper/RecordMapper.xml
@@ -31,11 +31,26 @@
<result column="jurisdiction" property="jurisdiction"/>
<result column="cardid" property="cardid"/>
<result column="ptype" property="ptype"/>
+ <result column="papprove" property="papprove"/>
+ <result column="xapprove" property="xapprove"/>
+ <result column="sapprove" property="sapprove"/>
+ <result column="popinion" property="popinion"/>
+ <result column="xopinion" property="xopinion"/>
+ <result column="sopinion" property="sopinion"/>
</resultMap>
<select id="selectRecordPage" resultMap="recordResultMap">
- select * from sys_record
+ select * from sys_record where 1=1
+ <if test="record.ptype!=null and record.ptype!=''">
+ and ptype=#{permit.ptype}
+ </if>
+ <if test="record.usetype=='1'.toString()">
+ and jurisdiction in(${jurisdiction})
+ </if>
+ <if test="record.usetype=='2'.toString()">
+ and jurisdiction=#{permit.jurisdiction}
+ </if>
</select>
</mapper>
--
Gitblit v1.9.3