1. 优化代码

master
xueqingkun 4 months ago
parent dcca6ce2e8
commit 881929f683

@ -35,10 +35,10 @@
t.create_time as createTime, t.create_time as createTime,
t.cancel_time as cancelTime, t.cancel_time as cancelTime,
t.create_user_id as createUserId, t.create_user_id as createUserId,
p.name as createUserName su.user_name as createUserName
from task_record t from task_record t
left join model_case c on t.case_id = c.id left join model_case c on t.case_id = c.id
left join case_person p on t.create_user_id = p.id left join system_user su on t.create_user_id = su.id
<where> <where>
<if test="taskInfo.caseName != null and taskInfo.caseName != ''"> <if test="taskInfo.caseName != null and taskInfo.caseName != ''">
and c.case_name like concat('%',#{taskInfo.caseName},'%') and c.case_name like concat('%',#{taskInfo.caseName},'%')

Loading…
Cancel
Save