| | |
| | | left join event_grid_data egd on egd.id = vt.grid_id |
| | | where 1=1 |
| | | <if test = "query.communityId != null"> |
| | | and cmpct.community_id = #{query.communityId} |
| | | and cmpct.community_id = ${query.communityId} |
| | | </if> |
| | | <if test = "query.status != null and query.status != 0"> |
| | | and vt.event_status = #{query.status} |
| | |
| | | <select id="findUserByCommunityId" resultType="java.util.Map"> |
| | | SELECT u.user_id,u.name,u.phone,a.street_id FROM sys_user u |
| | | LEFT JOIN com_act a ON u.community_id = a.community_id |
| | | WHERE u.community_id = #{communityId} and u.type = #{type} limit 1 |
| | | WHERE u.community_id = ${communityId} and u.type = #{type} limit 1 |
| | | </select> |
| | | |
| | | <select id="findUserById" resultType="java.util.Map"> |