|
@@ -244,7 +244,7 @@
|
|
sum(report.show_material) as 'show_num',
|
|
sum(report.show_material) as 'show_num',
|
|
sum(report.convert_material) as 'convert',
|
|
sum(report.convert_material) as 'convert',
|
|
report.image_url as 'image_url',
|
|
report.image_url as 'image_url',
|
|
- report.code as 'signature',
|
|
|
|
|
|
+ report.material_id as 'signature',
|
|
group_concat(distinct report.project_name) as 'project_name',
|
|
group_concat(distinct report.project_name) as 'project_name',
|
|
report.stat_datetime as 'stat_date',
|
|
report.stat_datetime as 'stat_date',
|
|
report.plane_id as 'user_id',
|
|
report.plane_id as 'user_id',
|
|
@@ -253,7 +253,7 @@
|
|
left join ctop_bytedance_image_info imageInfo on imageInfo.material_id = report.material_id
|
|
left join ctop_bytedance_image_info imageInfo on imageInfo.material_id = report.material_id
|
|
where
|
|
where
|
|
1=1
|
|
1=1
|
|
- and report.code is not null
|
|
|
|
|
|
+ and report.material_id is not null
|
|
<if test="startDate!=null">
|
|
<if test="startDate!=null">
|
|
and report.stat_datetime >= #{startDate}
|
|
and report.stat_datetime >= #{startDate}
|
|
</if>
|
|
</if>
|
|
@@ -267,9 +267,9 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="code!=null">
|
|
<if test="code!=null">
|
|
- and report.code = #{code}
|
|
|
|
|
|
+ and report.material_id = #{code}
|
|
</if>
|
|
</if>
|
|
- group by report.code
|
|
|
|
|
|
+ group by report.material_id
|
|
order by sum(report.cost) desc
|
|
order by sum(report.cost) desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -333,7 +333,7 @@ where a.plane_id is not null and a.plane_name is null
|
|
sum(report.show_material) as 'show_num',
|
|
sum(report.show_material) as 'show_num',
|
|
sum(report.convert_material) as 'convert',
|
|
sum(report.convert_material) as 'convert',
|
|
report.image_url as 'image_url',
|
|
report.image_url as 'image_url',
|
|
- report.code as 'signature',
|
|
|
|
|
|
+ report.material_id as 'signature',
|
|
group_concat(distinct report.project_name) as 'project_name',
|
|
group_concat(distinct report.project_name) as 'project_name',
|
|
report.stat_datetime as 'stat_date',
|
|
report.stat_datetime as 'stat_date',
|
|
report.plane_id as 'user_id',
|
|
report.plane_id as 'user_id',
|
|
@@ -341,7 +341,7 @@ where a.plane_id is not null and a.plane_name is null
|
|
from ctop_bytedance_report_image_daily report
|
|
from ctop_bytedance_report_image_daily report
|
|
where
|
|
where
|
|
1=1
|
|
1=1
|
|
- and report.code is not null
|
|
|
|
|
|
+ and report.material_id is not null
|
|
<if test="startDate!=null">
|
|
<if test="startDate!=null">
|
|
and report.stat_datetime >= #{startDate}
|
|
and report.stat_datetime >= #{startDate}
|
|
</if>
|
|
</if>
|
|
@@ -355,9 +355,9 @@ where a.plane_id is not null and a.plane_name is null
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="code!=null">
|
|
<if test="code!=null">
|
|
- and report.code = #{code}
|
|
|
|
|
|
+ and report.material_id = #{code}
|
|
</if>
|
|
</if>
|
|
- group by report.code
|
|
|
|
|
|
+ group by report.material_id
|
|
order by sum(report.cost) desc
|
|
order by sum(report.cost) desc
|
|
</select>
|
|
</select>
|
|
|
|
|