From c10d6358b9f014375a13821465bc978d0c0da22e Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Wed, 29 May 2024 17:17:08 +0800
Subject: [PATCH] 通过E呼即办数据统计

---
 src/main/java/org/springblade/modules/task/mapper/TaskResidencePermitApplyMapper.xml |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/task/mapper/TaskResidencePermitApplyMapper.xml b/src/main/java/org/springblade/modules/task/mapper/TaskResidencePermitApplyMapper.xml
index 73f27ae..cc0580e 100644
--- a/src/main/java/org/springblade/modules/task/mapper/TaskResidencePermitApplyMapper.xml
+++ b/src/main/java/org/springblade/modules/task/mapper/TaskResidencePermitApplyMapper.xml
@@ -33,6 +33,8 @@
             <if test="residen.minors!=null and residen.minors ==1">
                 and TIMESTAMPDIFF(year, substring(jtrpa.id_card, 7, 8), now()) &gt;= 18
             </if>
+            <if test="residen.communityCode != null  and residen.communityCode != ''"> and jg.community_code = #{residen.communityCode}</if>
+
             <if test="residen.id != null ">and jtrpa.id = #{residen.id}</if>
             <if test="residen.name != null  and residen.name != ''">and jtrpa.name like CONCAT('%',#{residen.name},'%')</if>
             <if test="residen.phone != null  and residen.phone != ''">and jtrpa.phone like CONCAT('%',#{residen.phone},'%')</if>
@@ -90,8 +92,8 @@
 
                 </if>
             </if>
-            order by jtrpa.create_time desc
         </where>
+        order by jtrpa.create_time desc
     </select>
 
 
@@ -105,6 +107,7 @@
         <where>
             and jtrpa.is_deleted = 0
             <if test="neiCode != null  and neiCode != ''"> and jg.community_code = #{neiCode}</if>
+            <if test="status != null  and status != ''"> and jtrpa.confirm_flag = #{status}</if>
 
            <if test="isAdministrator==2">
 <!--                <if test="residen.roleType ==null ">-->

--
Gitblit v1.9.3