| | |
| | | <if test="query.auditStatus != null"> |
| | | and t1.audit_status = #{query.auditStatus} |
| | | </if> |
| | | <if test="query.startTime != null and startTime != ''"> |
| | | and (t1.start_time between #{startTime} and #{endTime}) |
| | | and (t1.end_time between #{startTime} and #{endTime}) |
| | | <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> |
| | | and (t1.start_time between #{query.startTime} and #{query.endTime}) |
| | | </if> |
| | | <if test="query.deptIds != null and query.deptIds.size()>0"> |
| | | AND t2.deptId IN |