|
@@ -250,7 +250,7 @@
|
|
from ctop_user_allocation cua
|
|
from ctop_user_allocation cua
|
|
left join ctop_project cp on cp.id = cua.project_id
|
|
left join ctop_project cp on cp.id = cua.project_id
|
|
where 1=1
|
|
where 1=1
|
|
- and media_id = #{mediaId}
|
|
|
|
|
|
+ and cua.media_id = #{mediaId}
|
|
<if test="sales !=null and sales != ''">
|
|
<if test="sales !=null and sales != ''">
|
|
AND cp.sale_id in
|
|
AND cp.sale_id in
|
|
<foreach collection="sales" item="item" separator=","
|
|
<foreach collection="sales" item="item" separator=","
|