| | |
| | | assertTrue(mapper.contains("then 'RUNNING_ABNORMAL'")); |
| | | assertTrue(mapper.contains("exception_fact.interval_status = 'OPEN'")); |
| | | assertTrue(mapper.contains("set test_status = 'COMPLETED'")); |
| | | assertTrue(mapper.contains("#{testStatus} = 'COMPLETED' and t.test_status in ('COMPLETED', 'TERMINATED')")); |
| | | assertFalse(mapper.contains("group_concat")); |
| | | } |
| | | |
| | |
| | | or (#{testStatus} = 'RUNNING' and t.test_status = 'RUNNING' |
| | | and not exists (select 1 from t_test_collector_exception_interval exception_fact |
| | | where exception_fact.test_id = t.test_id and exception_fact.interval_status = 'OPEN')) |
| | | or (#{testStatus} not in ('RUNNING', 'RUNNING_ABNORMAL') and t.test_status = #{testStatus}) |
| | | or (#{testStatus} = 'COMPLETED' and t.test_status in ('COMPLETED', 'TERMINATED')) |
| | | or (#{testStatus} not in ('RUNNING', 'RUNNING_ABNORMAL', 'COMPLETED') and t.test_status = #{testStatus}) |
| | | ) |
| | | </if> |
| | | <if test="receptionStatus != null and receptionStatus != ''">and t.reception_status = #{receptionStatus}</if> |