101captain
2021-12-30 e9d5fb4b01c383fa5b01bf5e730d4e3da73f266e
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/EventGridMemberRelationMapper.xml
@@ -34,7 +34,7 @@
            AND grid_street_id = #{pageEventGridMemberRelationDTO.gridStreetId}
         </if>
          <if test="pageEventGridMemberRelationDTO.gridCommunityId!=null">
            AND grid_community_id = #{pageEventGridMemberRelationDTO.gridCommunityId}
            AND grid_community_id = ${pageEventGridMemberRelationDTO.gridCommunityId}
         </if>
          <if test="pageEventGridMemberRelationDTO.gridId!=null">
            AND grid_id = #{pageEventGridMemberRelationDTO.gridId}
@@ -309,7 +309,7 @@
      WHERE
         su.type = 6
         <if test="statisticsAdminDTO.communityId!=null">
            AND su.community_id = #{statisticsAdminDTO.communityId}
            AND su.community_id = ${statisticsAdminDTO.communityId}
         </if>
         <if test="statisticsAdminDTO.nickName!=null and statisticsAdminDTO.nickName != &quot;&quot;">
            AND su.nick_name like concat (#{statisticsAdminDTO.nickName},'%')
@@ -326,7 +326,7 @@
         select community_id as id,`name` from com_act where state = 0
      </if>
      <if test="type != null and type == 2">
         select village_id as id,`name` from com_mng_village where community_id = #{id}
         select village_id as id,`name` from com_mng_village where community_id = ${id}
      </if>
      <if test="type != null and type == 3">
         select id,`name` from com_mng_building where village_id = #{id}
@@ -334,7 +334,7 @@
   </select>
   <select id="getVillageCount" resultType="Integer">
      select count(village_id) from com_mng_village where community_id = #{communityId}
      select count(village_id) from com_mng_village where community_id = ${communityId}
   </select>
   <select id="getBuildingCount" resultType="Integer">
@@ -355,7 +355,7 @@
      </if>
      <if test="cascadeListDTO.type != null and cascadeListDTO.type == 2">
         select id as gridId,grid_name AS gridName from event_grid_member_relation as egmr where grid_member_id = #{cascadeListDTO.userId} and grid_community_id = #{cascadeListDTO.communityId}
         select id as gridId,grid_name AS gridName from event_grid_member_relation as egmr where grid_member_id = #{cascadeListDTO.userId} and grid_community_id = ${cascadeListDTO.communityId}
      </if>
   </select>
@@ -380,7 +380,7 @@
         FROM
         event_grid_member_relation AS egmr
         left join event_grid_data as egd on egd.id = egmr.grid_id
         where egmr.grid_member_id = #{userId} and egd.grid_community_id = #{communityId}
         where egmr.grid_member_id = #{userId} and egd.grid_community_id = ${communityId}
      </if>
   </select>
@@ -622,7 +622,7 @@
      WHERE
      su.type = 6
      <if test="statisticsAdminDTO.communityId!=null">
         AND su.community_id = #{statisticsAdminDTO.communityId}
         AND su.community_id = ${statisticsAdminDTO.communityId}
      </if>
      <if test="statisticsAdminDTO.nickName!=null and statisticsAdminDTO.nickName != &quot;&quot;">
         AND su.nick_name like concat (#{statisticsAdminDTO.nickName},'%')
@@ -640,7 +640,7 @@
         left join event_grid_data as egd on egd.id = egmr.grid_id
         INNER JOIN sys_user AS su ON su.user_id = egmr.grid_member_id
         where egd.grid_community_id = #{communityId}
         where egd.grid_community_id = ${communityId}
   </select>
   <select id="getGridsMemberTrajectory" resultType="String">