|
|
|
|
|
|
|
|
LEFT JOIN th_question q on woq.question_id = q.id |
|
|
LEFT JOIN th_question q on woq.question_id = q.id |
|
|
LEFT JOIN th_question_handle qh on q.id = qh.question_id |
|
|
LEFT JOIN th_question_handle qh on q.id = qh.question_id |
|
|
LEFT JOIN sys_user u on qh.handler_user = u.id |
|
|
LEFT JOIN sys_user u on qh.handler_user = u.id |
|
|
<if test="request.type != '' and request.type != null"> |
|
|
|
|
|
AND q.type = #{request.type} |
|
|
|
|
|
|
|
|
<if test="request.questionType != '' and request.questionType != null"> |
|
|
|
|
|
AND q.type = #{request.questionType} |
|
|
</if> |
|
|
</if> |
|
|
<if test="request.status != null"> |
|
|
<if test="request.status != null"> |
|
|
AND woq.`status` = #{request.status} |
|
|
AND woq.`status` = #{request.status} |