|
|
@ -75,7 +75,7 @@ |
|
|
|
P.PIDS, |
|
|
|
COUNT(DISTINCT p.ID) AS projectTotal |
|
|
|
FROM fact_origin_project_main_daily p |
|
|
|
LEFT JOIN fact_origin_project_category_daily c ON ( c.PROJECT_Id = p.id AND p.del_flag='0' AND p.GRID_ID IS NULL) |
|
|
|
LEFT JOIN fact_origin_project_category_daily c ON ( c.PROJECT_Id = p.id AND p.del_flag='0' AND p.GRID_ID = '') |
|
|
|
WHERE c.DEL_FLAG = '0' |
|
|
|
AND c.CUSTOMER_ID = #{customerId} |
|
|
|
AND ( |
|
|
@ -95,7 +95,7 @@ |
|
|
|
P.PIDS, |
|
|
|
COUNT(distinct p.ID) AS projectTotal |
|
|
|
FROM fact_origin_project_main_daily p |
|
|
|
LEFT JOIN fact_origin_project_category_daily c ON ( c.PROJECT_Id = p.id AND p.del_flag='0' AND p.GRID_ID IS NULL) |
|
|
|
LEFT JOIN fact_origin_project_category_daily c ON ( c.PROJECT_Id = p.id AND p.del_flag='0' AND p.GRID_ID = '') |
|
|
|
WHERE c.DEL_FLAG = '0' |
|
|
|
AND c.CUSTOMER_ID = #{customerId} |
|
|
|
AND ( |
|
|
|