From 486f6cda7ccd893f7ff91c088b2f26b991a08f2b Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Thu, 09 Dec 2021 11:36:18 +0800
Subject: [PATCH] 1.首页现实表现

---
 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