|
@ -41,7 +41,7 @@ |
|
|
(m.create_user_id = #{userId} or m.create_user_type = 1) |
|
|
(m.create_user_id = #{userId} or m.create_user_type = 1) |
|
|
</when> |
|
|
</when> |
|
|
<when test="param.type == 1"> |
|
|
<when test="param.type == 1"> |
|
|
m.record_user_id in (#{userId}, 0) |
|
|
((m.record_user_id = #{userId} and a.type = #{param.caseType}) or (m.record_user_id = 0)) |
|
|
</when> |
|
|
</when> |
|
|
</choose> |
|
|
</choose> |
|
|
<choose> |
|
|
<choose> |
|
@ -52,7 +52,6 @@ |
|
|
<if test="param.name != null and param.name != ''"> |
|
|
<if test="param.name != null and param.name != ''"> |
|
|
and a.name like concat('%', #{param.name}, '%') |
|
|
and a.name like concat('%', #{param.name}, '%') |
|
|
</if> |
|
|
</if> |
|
|
AND a.type = #{param.caseType} |
|
|
|
|
|
order by r2.answer IS NOT NULL,r2.answer DESC,a.created_at DESC |
|
|
order by r2.answer IS NOT NULL,r2.answer DESC,a.created_at DESC |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|