| | |
| | | select e.*, t.test_name, u.nick_name handled_by_name |
| | | from t_test_warning_exception e join t_test t on t.test_id=e.test_id |
| | | left join sys_user u on u.user_id=e.handled_by |
| | | <where><if test="testId != null">e.test_id = #{testId}</if><if test="status != null and status != ''">and e.exception_status = #{status}</if></where> |
| | | <where> |
| | | <if test="testId != null">e.test_id = #{testId}</if> |
| | | <if test="status != null and status != ''">and e.exception_status = #{status}</if> |
| | | </where> |
| | | order by e.last_occurred_at_utc desc, e.exception_id desc |
| | | </select> |
| | | <select id="selectWarningExceptionById" parameterType="long" resultMap="TTestWarningExceptionResultMap"> |