调整SQL,支持协办律师查看案件

This commit is contained in:
daichao 2025-08-11 17:38:30 +08:00
parent 895a7bfa51
commit 770bc0cd23
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@
and find_in_set(#{condition.lawyerId},ci.co_lawyer_ids)
</if>
<if test="condition.userId != null">
and find_in_set(#{condition.userId},ci.entrusted_lawyer_id)
and (find_in_set(#{condition.userId},ci.co_lawyer_ids) or ci.entrusted_lawyer_id = #{condition.userId})
</if>
and ci.status = 0 and ci.del_flag = 0
order by ci.create_time desc