| | |
| | | SELECT <include refid="columns" /> |
| | | FROM event |
| | | <where> |
| | | event_status != 3 |
| | | <if test="pageEventDTO.eventDealStatus!=null"> |
| | | <choose> |
| | | <!-- 待处理、待验证、已上报、已解决、草稿箱、已撤销 --> |
| | | <when test="pageEventDTO.eventDealStatus==1"> <!--待处理--> |
| | | AND event_status =2 AND event_process_status = 1 AND process_type = 1 |
| | | </when> |
| | | <when test="pageEventDTO.eventDealStatus==2"> <!--待验证--> |
| | | AND event_process_status = 3 |
| | | </when> |
| | | <when test="pageEventDTO.eventDealStatus==3"> <!--已上报--> |
| | | AND event_status = 1 AND community_process = 1 |
| | | </when> |
| | | <when test="pageEventDTO.eventDealStatus==4"> <!--已解决--> |
| | | AND event_process_status = 2 |
| | | </when> |
| | | <when test="pageEventDTO.eventDealStatus==5"> <!--草稿箱--> |
| | | AND event_status = 1 |
| | | </when> |
| | | <when test="pageEventDTO.eventDealStatus==6"> <!--已撤销--> |
| | | AND event_status = 4 |
| | | </when> |
| | | <otherwise> |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | <if test="pageEventDTO.id!=null"> |
| | | AND id = #{pageEventDTO.id} |
| | | </if> |
| | |
| | | AND propaganda_type = #{pageEventDTO.propagandaType} |
| | | </if> |
| | | <if test="pageEventDTO.propagandaTimeBegin!=null"> |
| | | AND propaganda_time >= #{pageEventDTO.propagandaTimeBegin} |
| | | AND propaganda_time <![CDATA[>=]]> #{pageEventDTO.propagandaTimeBegin} |
| | | </if> |
| | | <if test="pageEventDTO.propagandaTimeEnd!=null"> |
| | | AND propaganda_time <= #{pageEventDTO.propagandaTimeEnd} |
| | | AND propaganda_time <![CDATA[<=]]> #{pageEventDTO.propagandaTimeEnd} |
| | | </if> |
| | | <if test="pageEventDTO.eventType!=null"> |
| | | AND event_type = #{pageEventDTO.eventType} |
| | |
| | | AND community_process = #{pageEventDTO.communityProcess} |
| | | </if> |
| | | <if test="pageEventDTO.happenTimeBegin!=null"> |
| | | AND happen_time >= #{pageEventDTO.happenTimeBegin} |
| | | AND happen_time <![CDATA[>=]]> #{pageEventDTO.happenTimeBegin} |
| | | </if> |
| | | <if test="pageEventDTO.happenTimeEnd!=null"> |
| | | AND happen_time <= #{pageEventDTO.happenTimeEnd} |
| | | AND happen_time <![CDATA[<=]]> #{pageEventDTO.happenTimeEnd} |
| | | </if> |
| | | <if test="pageEventDTO.happentAddress!=null"> |
| | | AND happent_address = #{pageEventDTO.happentAddress} |
| | |
| | | AND process_user_name = #{pageEventDTO.processUserName} |
| | | </if> |
| | | <if test="pageEventDTO.processDateBegin!=null"> |
| | | AND process_date >= #{pageEventDTO.processDateBegin} |
| | | AND process_date <![CDATA[>=]]> #{pageEventDTO.processDateBegin} |
| | | </if> |
| | | <if test="pageEventDTO.processDateEnd!=null"> |
| | | AND process_date <= #{pageEventDTO.processDateEnd} |
| | | AND process_date <![CDATA[<=]]> #{pageEventDTO.processDateEnd} |
| | | </if> |
| | | <if test="pageEventDTO.processDesc!=null"> |
| | | AND process_desc = #{pageEventDTO.processDesc} |
| | |
| | | AND urgent_dell = #{pageEventDTO.urgentDell} |
| | | </if> |
| | | <if test="pageEventDTO.submitDateBegin!=null"> |
| | | AND submit_date >= #{pageEventDTO.submitDateBegin} |
| | | AND submit_date <![CDATA[>=]]> #{pageEventDTO.submitDateBegin} |
| | | </if> |
| | | <if test="pageEventDTO.submitDateEnd!=null"> |
| | | AND submit_date <= #{pageEventDTO.submitDateEnd} |
| | | AND submit_date <![CDATA[<=]]> #{pageEventDTO.submitDateEnd} |
| | | </if> |
| | | <if test="pageEventDTO.createBy!=null"> |
| | | AND create_by = #{pageEventDTO.createBy} |
| | | </if> |
| | | <if test="pageEventDTO.createAtBegin!=null"> |
| | | AND create_at >= #{pageEventDTO.createAtBegin} |
| | | AND create_at <![CDATA[>=]]> #{pageEventDTO.createAtBegin} |
| | | </if> |
| | | <if test="pageEventDTO.createAtEnd!=null"> |
| | | AND create_at <= #{pageEventDTO.createAtEnd} |
| | | AND create_at <![CDATA[<=]]> #{pageEventDTO.createAtEnd} |
| | | </if> |
| | | <if test="pageEventDTO.updateBy!=null"> |
| | | AND update_by = #{pageEventDTO.updateBy} |
| | | </if> |
| | | <if test="pageEventDTO.updateAtBegin!=null"> |
| | | AND update_at >= #{pageEventDTO.updateAtBegin} |
| | | AND update_at <![CDATA[>=]]> #{pageEventDTO.updateAtBegin} |
| | | </if> |
| | | <if test="pageEventDTO.updateAtEnd!=null"> |
| | | AND update_at <= #{pageEventDTO.updateAtEnd} |
| | | AND update_at <![CDATA[<=]]> #{pageEventDTO.updateAtEnd} |
| | | </if> |
| | | </where> |
| | | <if test="pageEventDTO.sortColumns!=null"> |
| | | ORDER BY ${pageEventDTO.sortColumns} ${pageEventDTO.sortType} |
| | | </if> |
| | | </select> |
| | | <select id="findPublicityByPage" resultType="com.panzhihua.common.model.vos.grid.EventVO" |
| | | parameterType="com.panzhihua.common.model.dtos.grid.PagePublicityEventDTO"> |
| | | SELECT <include refid="columns" /> |
| | | FROM event |
| | | <where> |
| | | event_status != 3 AND event_category = 2 |
| | | <if test="pagePublicityEventDTO.eventDealStatus!=null"> |
| | | <choose> |
| | | <!-- 待处理、待验证、已上报、已解决、草稿箱、已撤销 --> |
| | | <when test="pagePublicityEventDTO.eventDealStatus==1"> <!--已发布--> |
| | | AND event_status =2 |
| | | </when> |
| | | <when test="pagePublicityEventDTO.eventDealStatus==5"> <!--草稿箱--> |
| | | AND event_status = 1 |
| | | </when> |
| | | <when test="pagePublicityEventDTO.eventDealStatus==6"> <!--已撤销--> |
| | | AND event_status = 4 |
| | | </when> |
| | | <otherwise> |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | <if test="pagePublicityEventDTO.id!=null"> |
| | | AND id = #{pagePublicityEventDTO.id} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.orderSn!=null"> |
| | | AND order_sn = #{pagePublicityEventDTO.orderSn} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.eventCategory!=null"> |
| | | AND event_category = #{pagePublicityEventDTO.eventCategory} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.gridMemberStreet!=null"> |
| | | AND grid_member_street = #{pagePublicityEventDTO.gridMemberStreet} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.gridMemberCommunity!=null"> |
| | | AND grid_member_community = #{pagePublicityEventDTO.gridMemberCommunity} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.gridId!=null"> |
| | | AND grid_id = #{pagePublicityEventDTO.gridId} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.gridMemberId!=null"> |
| | | AND grid_member_id = #{pagePublicityEventDTO.gridMemberId} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.gridMemberName!=null"> |
| | | AND grid_member_name = #{pagePublicityEventDTO.gridMemberName} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.gridMemberTelephone!=null"> |
| | | AND grid_member_telephone = #{pagePublicityEventDTO.gridMemberTelephone} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.eventTitle!=null"> |
| | | AND event_title = #{pagePublicityEventDTO.eventTitle} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.propagandaType!=null"> |
| | | AND propaganda_type = #{pagePublicityEventDTO.propagandaType} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.propagandaTimeBegin!=null"> |
| | | AND propaganda_time <![CDATA[>=]]> #{pagePublicityEventDTO.propagandaTimeBegin} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.propagandaTimeEnd!=null"> |
| | | AND propaganda_time <![CDATA[<=]]> #{pagePublicityEventDTO.propagandaTimeEnd} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.eventDes!=null"> |
| | | AND event_des = #{pagePublicityEventDTO.eventDes} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.propagandaObject!=null"> |
| | | AND propaganda_object = #{pagePublicityEventDTO.propagandaObject} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.propagandaNum!=null"> |
| | | AND propaganda_num = #{pagePublicityEventDTO.propagandaNum} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.communityProcess!=null"> |
| | | AND community_process = #{pagePublicityEventDTO.communityProcess} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.happenTimeBegin!=null"> |
| | | AND happen_time <![CDATA[>=]]> #{pagePublicityEventDTO.happenTimeBegin} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.happenTimeEnd!=null"> |
| | | AND happen_time <![CDATA[<=]]> #{pagePublicityEventDTO.happenTimeEnd} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.happentAddress!=null"> |
| | | AND happent_address = #{pagePublicityEventDTO.happentAddress} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.happentLatLng!=null"> |
| | | AND happent_lat_lng = #{pagePublicityEventDTO.happentLatLng} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.eventStatus!=null"> |
| | | AND event_status = #{pagePublicityEventDTO.eventStatus} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.eventProcessStatus!=null"> |
| | | AND event_process_status = #{pagePublicityEventDTO.eventProcessStatus} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.processType!=null"> |
| | | AND process_type = #{pagePublicityEventDTO.processType} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.processUserId!=null"> |
| | | AND process_user_id = #{pagePublicityEventDTO.processUserId} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.processUserName!=null"> |
| | | AND process_user_name = #{pagePublicityEventDTO.processUserName} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.processDateBegin!=null"> |
| | | AND process_date <![CDATA[>=]]> #{pagePublicityEventDTO.processDateBegin} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.processDateEnd!=null"> |
| | | AND process_date <![CDATA[<=]]> #{pagePublicityEventDTO.processDateEnd} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.processDesc!=null"> |
| | | AND process_desc = #{pagePublicityEventDTO.processDesc} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.eventResource!=null"> |
| | | AND event_resource = #{pagePublicityEventDTO.eventResource} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.dangerLevel!=null"> |
| | | AND danger_level = #{pagePublicityEventDTO.dangerLevel} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.redCard!=null"> |
| | | AND red_card = #{pagePublicityEventDTO.redCard} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.yellowCard!=null"> |
| | | AND yellow_card = #{pagePublicityEventDTO.yellowCard} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.invalid!=null"> |
| | | AND invalid = #{pagePublicityEventDTO.invalid} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.major!=null"> |
| | | AND major = #{pagePublicityEventDTO.major} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.deathsNumber!=null"> |
| | | AND deaths_number = #{pagePublicityEventDTO.deathsNumber} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.injuriesNumber!=null"> |
| | | AND injuries_number = #{pagePublicityEventDTO.injuriesNumber} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.difficult!=null"> |
| | | AND difficult = #{pagePublicityEventDTO.difficult} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.urgent!=null"> |
| | | AND urgent = #{pagePublicityEventDTO.urgent} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.urgentDell!=null"> |
| | | AND urgent_dell = #{pagePublicityEventDTO.urgentDell} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.submitDateBegin!=null"> |
| | | AND submit_date <![CDATA[>=]]> #{pagePublicityEventDTO.submitDateBegin} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.submitDateEnd!=null"> |
| | | AND submit_date <![CDATA[<=]]> #{pagePublicityEventDTO.submitDateEnd} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.createBy!=null"> |
| | | AND create_by = #{pagePublicityEventDTO.createBy} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.createAtBegin!=null"> |
| | | AND create_at <![CDATA[>=]]> #{pagePublicityEventDTO.createAtBegin} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.createAtEnd!=null"> |
| | | AND create_at <![CDATA[<=]]> #{pagePublicityEventDTO.createAtEnd} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.updateBy!=null"> |
| | | AND update_by = #{pagePublicityEventDTO.updateBy} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.updateAtBegin!=null"> |
| | | AND update_at <![CDATA[>=]]> #{pagePublicityEventDTO.updateAtBegin} |
| | | </if> |
| | | <if test="pagePublicityEventDTO.updateAtEnd!=null"> |
| | | AND update_at <![CDATA[<=]]> #{pagePublicityEventDTO.updateAtEnd} |
| | | </if> |
| | | </where> |
| | | <if test="pagePublicityEventDTO.sortColumns!=null"> |
| | | ORDER BY ${pagePublicityEventDTO.sortColumns} ${pagePublicityEventDTO.sortType} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getEventByGridId" resultType="com.panzhihua.common.model.vos.grid.ComMapGridEventVO"> |
| | | SELECT |