From 8b7258c9427882bb1798f1502eaa35184c6e374e Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:29:18 +0800
Subject: [PATCH] 短信指定楼栋发送

---
 src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml |   57 +++++++--------------------------------------------------
 1 files changed, 7 insertions(+), 50 deletions(-)

diff --git a/src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml b/src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml
index 8bc5a6b..5e94465 100644
--- a/src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml
+++ b/src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml
@@ -71,7 +71,7 @@
                         <otherwise>
                             and
                             (
-                            jg.grid_code in ('') or jpag.community_code in in ('')
+                            jg.grid_code in ('') or jpag.community_code in ('')
                             )
                         </otherwise>
                     </choose>
@@ -114,8 +114,9 @@
         LEFT JOIN jczz_doorplate_address jda ON jp.house_code = jda.address_code
         <where>
             <if test="placeExt.neiCode != null and placeExt.neiCode != ''">
-                and jda.nei_code = #{placeExt.neiCode}
+               and jpag.community_code like concat('%',#{placeExt.neiCode},'%')
             </if>
+
             <if test="placeExt.confirmFlag != null">
                 and jpe.confirm_flag = #{placeExt.confirmFlag}
             </if>
@@ -169,7 +170,7 @@
                             <otherwise>
                                 and
                                 (
-                                jg.grid_code in ('') or jpag.community_code in in ('')
+                                jg.grid_code in ('') or jpag.community_code in ('')
                                 )
                             </otherwise>
                         </choose>
@@ -187,9 +188,11 @@
                jp.place_name as placeName,
                jp.lng,
                jp.lat,
-               jp.location
+               jp.location,
+               jppl.poi_code
         from jczz_place_ext jpe
                  left join jczz_place jp on jpe.place_id = jp.id and jp.is_deleted = 0
+        left join  jczz_place_poi_label jppl on jppl.place_id = jp.id and jppl.type = 3
         where jpe.is_deleted = 0
           and jpe.place_id = #{placeExt.placeId}
     </select>
@@ -210,17 +213,6 @@
         <result property="updateUser"    column="update_user"    />
         <result property="updateTime"    column="update_time"    />
         <result property="isDeleted"    column="is_deleted"    />
-<!--        <result property="legalTempAddress"    column="legal_temp_address"    />-->
-<!--        <result property="legalAge"    column="legal_age"    />-->
-<!--        <result property="legalGender"    column="legal_gender"    />-->
-<!--        <result property="legalIdCard"    column="legal_id_card"    />-->
-<!--        <result property="legalCardType"    column="legal_card_type"    />-->
-<!--        <result property="legalRegisteredAddress"    column="legal_registered_address"    />-->
-<!--        <result property="legalJobNature"    column="legal_job_nature"    />-->
-<!--        <result property="legalWxAccount"    column="legal_wx_account"    />-->
-        <result property="birthday"    column="birthday"    />
-        <result property="ethnicity"    column="ethnicity"    />
-        <result property="employer"    column="employer"    />
     </resultMap>
 
     <sql id="selectJczzPlaceExt">
@@ -243,41 +235,6 @@
         from
             jczz_place_ext
     </sql>
-
-<!--    <select id="selectJczzPlaceExtById" parameterType="long" resultMap="JczzPlaceExtDTOResult">-->
-<!--        <include refid="selectJczzPlaceExt"/>-->
-<!--        where-->
-<!--        id = #{id}-->
-<!--    </select>-->
-
-<!--    <select id="selectJczzPlaceExtList" parameterType="jczzplaceext.dto.JczzPlaceExtDTO" resultMap="JczzPlaceExtDTOResult">-->
-<!--        <include refid="selectJczzPlaceExt"/>-->
-<!--        <where>-->
-<!--            <if test="id != null "> and id = #{id}</if>-->
-<!--            <if test="placeId != null "> and place_id = #{placeId}</if>-->
-<!--            <if test="imageUrls != null  and imageUrls != ''"> and image_urls = #{imageUrls}</if>-->
-<!--            <if test="legalPerson != null  and legalPerson != ''"> and legal_person = #{legalPerson}</if>-->
-<!--            <if test="legalTel != null  and legalTel != ''"> and legal_tel = #{legalTel}</if>-->
-<!--            <if test="planImageUrls != null  and planImageUrls != ''"> and plan_image_urls = #{planImageUrls}</if>-->
-<!--            <if test="confirmUserId != null "> and confirm_user_id = #{confirmUserId}</if>-->
-<!--            <if test="confirmFlag != null "> and confirm_flag = #{confirmFlag}</if>-->
-<!--            <if test="confirmTime != null "> and confirm_time = #{confirmTime}</if>-->
-<!--            <if test="confirmNotion != null  and confirmNotion != ''"> and confirm_notion = #{confirmNotion}</if>-->
-<!--            <if test="createUser != null "> and create_user = #{createUser}</if>-->
-<!--            <if test="createTime != null "> and create_time = #{createTime}</if>-->
-<!--            <if test="updateUser != null "> and update_user = #{updateUser}</if>-->
-<!--            <if test="updateTime != null "> and update_time = #{updateTime}</if>-->
-<!--            <if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>-->
-<!--            <if test="legalTempAddress != null  and legalTempAddress != ''"> and legal_temp_address = #{legalTempAddress}</if>-->
-<!--            <if test="legalAge != null "> and legal_age = #{legalAge}</if>-->
-<!--            <if test="legalGender != null "> and legal_gender = #{legalGender}</if>-->
-<!--            <if test="legalIdCard != null  and legalIdCard != ''"> and legal_id_card = #{legalIdCard}</if>-->
-<!--            <if test="legalCardType != null  and legalCardType != ''"> and legal_card_type = #{legalCardType}</if>-->
-<!--            <if test="legalRegisteredAddress != null  and legalRegisteredAddress != ''"> and legal_registered_address = #{legalRegisteredAddress}</if>-->
-<!--            <if test="legalJobNature != null  and legalJobNature != ''"> and legal_job_nature = #{legalJobNature}</if>-->
-<!--            <if test="legalWxAccount != null  and legalWxAccount != ''"> and legal_wx_account = #{legalWxAccount}</if>-->
-<!--        </where>-->
-<!--    </select>-->
 
 
 </mapper>

--
Gitblit v1.9.3