|
@ -9,7 +9,9 @@ |
|
|
M.PROJECT_TOTAL AS projectTotal |
|
|
M.PROJECT_TOTAL AS projectTotal |
|
|
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 AND D.DEL_FLAG='0') |
|
|
on(m.CATEGORY_CODE=D.CATEGORY_CODE |
|
|
|
|
|
AND D.DEL_FLAG='0' |
|
|
|
|
|
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.DATE_ID = ( |
|
|
AND M.DATE_ID = ( |
|
@ -20,6 +22,7 @@ |
|
|
where |
|
|
where |
|
|
del_flag = '0' |
|
|
del_flag = '0' |
|
|
and ORG_ID = #{agencyId} |
|
|
and ORG_ID = #{agencyId} |
|
|
|
|
|
and CUSTOMER_ID=#{customerId} |
|
|
order by |
|
|
order by |
|
|
date_id desc, |
|
|
date_id desc, |
|
|
created_time desc |
|
|
created_time desc |
|
|