Commit 51f15bbb by lijingjing

优化霍煤分厂报告响应速度

parent 095ff388
......@@ -33,15 +33,14 @@
</if>
<if test="null != vo.isSelf and true == vo.isSelf">
AND (
e.uid = #{vo.uid} or exists (
e.uid = #{vo.uid} or e.sample_name in (
select
1
m.name
from business_staff s
join material m
on m.id = s.biz_id and m.deleted = 0
where s.deleted = 0
and s.biz_type = 'REPORT_RECIPIENT'
and m.name = e.sample_name
and s.staff_id = #{vo.uid}
)
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment