|
@@ -3,14 +3,14 @@
|
|
|
<mapper namespace="org.jeecg.modules.bytedance.advertise.mapper.ByteDanceGeneralCopywriterMapper">
|
|
|
<select id="selectGeneralCopywriterReport" resultType="java.util.HashMap">
|
|
|
SELECT
|
|
|
- b.account_id,
|
|
|
- d.creative_id,
|
|
|
- a.text_copywriter,
|
|
|
- count(*) AS creative_count,
|
|
|
- sum(d.cost) AS sum_cost,
|
|
|
- sum(d.show_num) AS sum_show_material,
|
|
|
- sum(d.click) AS sum_click,
|
|
|
- sum(d.show_num) AS sum_convert_material
|
|
|
+ b.account_id as accountId,
|
|
|
+ d.creative_id as creativeId,
|
|
|
+ a.text_copywriter AS textCopywriter,
|
|
|
+ count(*) AS creativeCount,
|
|
|
+ sum(d.cost) AS sumCost,
|
|
|
+ sum(d.show_num) AS sumShowMaterial,
|
|
|
+ sum(d.click) AS sumClick,
|
|
|
+ sum(d.show_num) AS sumConvertMaterial
|
|
|
FROM
|
|
|
ctop_bytedance_general_copywriter a
|
|
|
LEFT JOIN ctop_bytedance_creative b ON a.text_copywriter = b.title and a.account_id = b.account_id
|