|
@ -6,7 +6,9 @@ |
|
|
|
|
|
|
|
|
<select id="selectCategoryAnalysis" resultType="com.epmet.dto.result.screen.CategoryAnalysisResultDTO"> |
|
|
<select id="selectCategoryAnalysis" resultType="com.epmet.dto.result.screen.CategoryAnalysisResultDTO"> |
|
|
SELECT D.CATEGORY_NAME AS categoryName, |
|
|
SELECT D.CATEGORY_NAME AS categoryName, |
|
|
M.PROJECT_TOTAL AS projectTotal |
|
|
M.PROJECT_TOTAL AS projectTotal, |
|
|
|
|
|
m.DATE_ID as dateId, |
|
|
|
|
|
m.CATEGORY_CODE as categoryCode |
|
|
FROM screen_project_category_org_daily m |
|
|
FROM screen_project_category_org_daily m |
|
|
left join customer_project_category_dict d |
|
|
left join customer_project_category_dict d |
|
|
on(m.CATEGORY_CODE=D.CATEGORY_CODE |
|
|
on(m.CATEGORY_CODE=D.CATEGORY_CODE |
|
@ -14,6 +16,7 @@ |
|
|
and d.CUSTOMER_ID=#{customerId}) |
|
|
and d.CUSTOMER_ID=#{customerId}) |
|
|
WHERE M.DEL_FLAG = '0' |
|
|
WHERE M.DEL_FLAG = '0' |
|
|
AND M.ORG_ID = #{agencyId} |
|
|
AND M.ORG_ID = #{agencyId} |
|
|
|
|
|
and M.CUSTOMER_ID=#{customerId} |
|
|
AND M.DATE_ID = ( |
|
|
AND M.DATE_ID = ( |
|
|
select |
|
|
select |
|
|
date_id |
|
|
date_id |
|
|