|
|
|
@ -36,7 +36,7 @@ |
|
|
|
from task_detail td |
|
|
|
left join task_list tl on td.task_id = tl.id AND td.site = tl.site |
|
|
|
left join users u on td.site = u.site and u.userId = td.responsible_person |
|
|
|
left join users u2 on td.site = u.site and u.userId = tl.task_initiator |
|
|
|
left join users u2 on td.site = u2.site and u2.userId = tl.task_initiator |
|
|
|
<where> |
|
|
|
td.site = #{site} |
|
|
|
<if test="department != null and department != ''"> |
|
|
|
|