| | |
| | | </where> |
| | | order by t3.create_time desc |
| | | </select> |
| | | |
| | | <select id="getComplaintRejectListOther" |
| | | resultType="com.panzhihua.sangeshenbian.model.vo.ComplaintRejectVo"> |
| | | |
| | | select t3.reject_reason remark,t3.audit_time examineTime,t2.id complaintId,t2.serial_number serialNumber,t2.report_user_name reportUserName,t2.status, |
| | | t2.report_user_phone reportUserPhone,t3.auditor_name examineUserName,t3.create_time applyTime,t3.apply_name applyUserName |
| | | from sgsb_complaint_audit_record t3 |
| | | left join sgsb_complaint t2 on t3.complaint_id = t2.id |
| | | <where> |
| | | t3.audit_status=2 |
| | | <if test="query.serialNumber != null and query.serialNumber != ''"> |
| | | and t2.serial_number = #{query.serialNumber} |
| | | </if> |
| | | <if test="query.reportUserName != null and query.reportUserName != ''"> |
| | | and t2.report_user_name like concat("%",#{query.reportUserName},"%") |
| | | </if> |
| | | <if test="query.status != null"> |
| | | and t2.status = #{query.status} |
| | | </if> |
| | | <if test="query.reportUserPhone != null and query.reportUserPhone != ''"> |
| | | and t2.report_user_phone like concat("%",#{query.reportUserPhone},"%") |
| | | </if> |
| | | <if test="query.applyUserName != null and query.applyUserName != ''"> |
| | | and t3.apply_name like concat("%",#{query.applyUserName},"%") |
| | | </if> |
| | | <if test="query.examineUserName != null and query.examineUserName != ''"> |
| | | and t3.auditor_name like concat("%",#{query.examineUserName},"%") |
| | | </if> |
| | | <if test="applyStartTime !=null"> |
| | | and t3.create_time between #{applyStartTime} and #{applyEndTime} |
| | | </if> |
| | | <if test="examineStartTime !=null"> |
| | | and t3.audit_time between #{examineStartTime} and #{examineEndTime} |
| | | </if> |
| | | and (t2.community_id in |
| | | <foreach collection="finalCommunityIds" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | or t2.street_id in |
| | | <foreach collection="finalStreetIds" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | or t2.districts_code in |
| | | <foreach collection="finalDistrictsCodes" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | ) |
| | | |
| | | |
| | | </where> |
| | | order by t3.create_time desc |
| | | |
| | | |
| | | </select> |
| | | </mapper> |