| | |
| | | <if test="5 == accountLevel"> |
| | | and (sc.party_member_id = #{targetId} || sc.id in (select complaint_id from sgsb_complaint_audit_record where audit_type = 3 and audit_status = 1 and report_type = #{accountLevel} and superior_id = #{targetId})) |
| | | </if> |
| | | <if test="query.timeType !=null"> |
| | | <choose> |
| | | <when test="query.timeType == 1"> |
| | | and date_sub(curdate(), INTERVAL 7 DAY) <= date(sc.create_time) |
| | | </when> |
| | | <when test="query.timeType == 2"> |
| | | and date_sub(curdate(), INTERVAL 15 DAY) <= date(sc.create_time) |
| | | </when> |
| | | <when test="query.timeType == 3"> |
| | | and date_sub(curdate(), INTERVAL 30 DAY) <= date(sc.create_time) |
| | | </when> |
| | | </choose> |
| | | </if> |
| | | </where> |
| | | ORDER BY sc.create_time DESC |
| | | </select> |