|
|
@@ -133,7 +133,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="1 == 1"> and tif.mark = 1 </if> |
|
|
|
<if test="request.key != null and request.key != 0"> and (ti.code like concat('%', #{request.key}, '%') or ti.name like concat('%', #{request.key}, '%')) </if> |
|
|
|
<if test="request.questionId != null and request.questionId != ''"> and tif.question_id = #{request.questionId} </if> |
|
|
|
<if test="request.status != null and request.status != 0"> and tif.status = #{request.status} </if> |
|
|
|
<if test="request.status != null"> |
|
|
|
<choose> |
|
|
|
<when test="request.status != 0"> |
|
|
|
and tif.status = #{request.status} |
|
|
|
</when> |
|
|
|
<otherwise> |
|
|
|
and tif.status in (15, 20, 25) |
|
|
|
</otherwise> |
|
|
|
</choose> |
|
|
|
</if> |
|
|
|
<if test="request.deptIdList != null and request.deptIdList.size() > 0"> |
|
|
|
and ti.dept_id in |
|
|
|
<foreach item="deptId" collection="request.deptIdList" open="(" separator="," close=")"> |