소스 검색

sql优化

zhouzeyu@c-top.com.cn 3 년 전
부모
커밋
e7021b46a0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialReportOverViewV3Mapper.xml

+ 1 - 1
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialReportOverViewV3Mapper.xml

@@ -1524,7 +1524,7 @@
                 (SELECT  SUM(t1.cost)
         from  application.app_bytedance_material_info  t
 		LEFT JOIN  application.bytedance_material_video_report_daily_dw t1 on t.material_id=t1.signature
-        where t.media_time between #{startDate} and #{endDate} and t.leader_id=#{leaderId} and t.company_id=#{companyId}
+        where t.media_time between #{startDate} and #{endDate} and t1.leader_id=#{leaderId} and t1.company_id=#{companyId}
 		and t1.stat_datetime between #{startDate} and #{endDate})
 		/
          (SELECT  ifnull(count(DISTINCT t.material_id),0)