From ccadec06e8466b2fea13bd4f0790cd326f6fe0c8 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 03 Apr 2024 17:13:48 +0800
Subject: [PATCH] 地址二维码信息查询修改(返回对应场所负责人及业主信息)

---
 src/main/java/org/springblade/modules/place/mapper/PlacePractitionerMapper.xml |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/springblade/modules/place/mapper/PlacePractitionerMapper.xml b/src/main/java/org/springblade/modules/place/mapper/PlacePractitionerMapper.xml
index 847de74..db7a0ef 100644
--- a/src/main/java/org/springblade/modules/place/mapper/PlacePractitionerMapper.xml
+++ b/src/main/java/org/springblade/modules/place/mapper/PlacePractitionerMapper.xml
@@ -72,15 +72,15 @@
 
             <if test="placePractitioner.type == 1">
                 and TIMESTAMPDIFF(year, substring(jpp.id_card, 7, 8), now()) &lt; 18
-                and jc.category_no in (180202,180201)
+                and jc.category_no in (180202,180201,180200)
             </if>
             <if test="placePractitioner.type == 2">
                 and jpp.ethnicity != 1
-                and jc.category_no in (180202,180201)
+                and jc.category_no in (180202,180201,180200)
             </if>
             <if test="placePractitioner.type == 3">
                 and (TIMESTAMPDIFF(year, substring(jpp.id_card, 7, 8), now()) &lt; 18  or jpp.ethnicity != 1)
-                and jc.category_no in (180202,180201)
+                and jc.category_no in (180202,180201,180200)
             </if>
             and jpp.is_deleted = 0
             order by jpp.id desc
@@ -142,11 +142,11 @@
         <where>
             <if test="placePractitioner.type == 1">
                 and TIMESTAMPDIFF(year, substring(jpp.id_card, 7, 8), now()) &lt; 18
-                and jc.category_no in (180202,180201)
+                and jc.category_no in (180202,180201,180200)
             </if>
             <if test="placePractitioner.type == 2">
                 and jpp.ethnicity != 1
-                and jc.category_no in (180202,180201)
+                and jc.category_no in (180202,180201,180200)
             </if>
             <if test="placePractitioner.id != null ">and jpp.id = #{placePractitioner.id}</if>
             <if test="placePractitioner.placeId != null ">and jpp.place_id = #{placePractitioner.placeId}</if>

--
Gitblit v1.9.3