| | |
| | | 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} |
| | |
| | | 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 != """> |
| | | AND su.nick_name like concat (#{statisticsAdminDTO.nickName},'%') |
| | |
| | | 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} |
| | |
| | | </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"> |
| | |
| | | </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> |
| | |
| | | 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> |
| | | |
| | |
| | | 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 != """> |
| | | AND su.nick_name like concat (#{statisticsAdminDTO.nickName},'%') |
| | |
| | | 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"> |