|
@@ -367,6 +367,7 @@
|
|
|
select t2.dept_id,t1.sign_product
|
|
|
from contracted_product_change t1
|
|
|
inner join sys_dept t2 on t1.object_name COLLATE utf8mb4_general_ci=t2.name
|
|
|
+ and t1.db_source_id=t2.db_source_id
|
|
|
where t1.sign_product in ('CSO1','CSO2') and not exists(select 1 from contracted_product_change t3 where t3.object_name=t1.object_name and t3.change_time>t1.change_time)
|
|
|
) dsp on dsp.dept_id=rp.dept_id
|
|
|
where id in
|