From 4e260f558428dd81c4dd8981a965cdaa0ebf12de Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期二, 20 九月 2022 11:57:11 +0800
Subject: [PATCH] 修改查询分页处理

---
 ycl-common/src/main/resources/mapper/platform/zf/EnforcelawReportMapper.xml |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/ycl-common/src/main/resources/mapper/platform/zf/EnforcelawReportMapper.xml b/ycl-common/src/main/resources/mapper/platform/zf/EnforcelawReportMapper.xml
index 1a83240..64a359e 100644
--- a/ycl-common/src/main/resources/mapper/platform/zf/EnforcelawReportMapper.xml
+++ b/ycl-common/src/main/resources/mapper/platform/zf/EnforcelawReportMapper.xml
@@ -42,4 +42,25 @@
         id, infoResoure, acceptor, problemTypes, category, county, street, afAddr, informer, contact, reason, problemDesc, lawOfficer, partiesName, partiesID, partiesPhone, idPositiveImage, idNegativeImage, illegalBuildLocation, illegalBuildLength, illegalBuildWidth, illegalBuildHigh, illegalBuildMaterials, IllegalPhotos, rectifidPhotos, accessory, disposeRemark, inspectors, status, cTime, community
     </sql>
 
+    <select id="selectPageVo" resultType="com.ycl.entity.platform.zf.EnforcelawReport">
+        SELECT * FROM ums_enforcelaw_report
+            <where>
+                <if test="community!=null and community!=''" >
+                    community=#{community}
+                </if>
+                <if test="status!=null and status!=''" >
+                    status=#{status}
+                </if>
+                <if test="partiesName!=null and partiesName!=''" >
+                    partiesName=#{partiesName}
+                </if>
+                <if test="partiesID!=null and partiesID!=''" >
+                    partiesID=#{partiesID}
+                </if>
+                <if test="startTime!=null and startTime!=''and endTime!=null and endTime!=''" >
+                    ctime between #{startTime} and #{endTime}
+                </if>
+            </where>
+    </select>
+
 </mapper>

--
Gitblit v1.8.0