浏览代码

selectScoreStatByParams 语句修改

baiying 1 周之前
父节点
当前提交
5aa123916b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      yaoyi-bi/src/main/resources/mapper/WmScorePackageMapper.xml

+ 1 - 0
yaoyi-bi/src/main/resources/mapper/WmScorePackageMapper.xml

@@ -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