| | |
| | | ) AS handleTSTotal, |
| | | ( SELECT count( id ) FROM event_visiting_tasks WHERE grid_member = su.user_id AND event_status = 2 |
| | | <if test="statisticsAdminDTO.startTime!=null and statisticsAdminDTO.startTime != """> |
| | | AND DATE_FORMAT(dell_date,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{statisticsAdminDTO.startTime} |
| | | AND DATE_FORMAT(submit_date,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{statisticsAdminDTO.startTime} |
| | | </if> |
| | | <if test="statisticsAdminDTO.endTime!=null and statisticsAdminDTO.endTime != """> |
| | | AND DATE_FORMAT(dell_date,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{statisticsAdminDTO.endTime} |
| | | AND DATE_FORMAT(submit_date,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{statisticsAdminDTO.endTime} |
| | | </if> |
| | | ) AS handleZFTotal, |
| | | ( SELECT count( id ) FROM com_act_easy_photo WHERE handle_status = 2 AND handler_id = su.user_id |
| | |
| | | select count(id) from com_mng_building where village_id = #{villageId} |
| | | </select> |
| | | |
| | | <select id="getMapGridListsByApp" parameterType="com.panzhihua.common.model.dtos.grid.EventGridCascadeListDTO" |
| | | resultType="com.panzhihua.common.model.vos.grid.EventMapGridVO"> |
| | | <if test="cascadeListDTO.type != null and cascadeListDTO.type == 1"> |
| | | SELECT DISTINCT |
| | | egmr.grid_community_id as gridId, |
| | | ca.`name` AS gridName |
| | | FROM |
| | | event_grid_member_relation AS egmr |
| | | LEFT JOIN com_act AS ca ON ca.community_id = egmr.grid_community_id |
| | | WHERE |
| | | grid_member_id = #{cascadeListDTO.userId} |
| | | </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} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | </mapper> |