|
@@ -320,17 +320,17 @@
|
|
|
|
|
|
<update id="updateImageReportCode">
|
|
<update id="updateImageReportCode">
|
|
update ctop_bytedance_report_image_daily a inner join ctop_bytedance_image_info image on image.material_id =a.material_id set a.code = image.signature,a.image_url = image.image_url
|
|
update ctop_bytedance_report_image_daily a inner join ctop_bytedance_image_info image on image.material_id =a.material_id set a.code = image.signature,a.image_url = image.image_url
|
|
- where a.material_id is not null and a.code is null
|
|
|
|
|
|
+ where a.material_id is not null and a.code is null and a.account_id = #{accountId}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<update id="updateImageReportProjectId">
|
|
<update id="updateImageReportProjectId">
|
|
update ctop_bytedance_report_image_daily a inner join ctop_user_allocation allocation on allocation.account_id =a.account_id set a.project_id = allocation.project_id
|
|
update ctop_bytedance_report_image_daily a inner join ctop_user_allocation allocation on allocation.account_id =a.account_id set a.project_id = allocation.project_id
|
|
- where a.account_id is not null and a.project_id is null
|
|
|
|
|
|
+ where a.account_id is not null and a.project_id is null and a.account_id = #{accountId}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<update id="updateImageReportProjectName">
|
|
<update id="updateImageReportProjectName">
|
|
update ctop_bytedance_report_image_daily a inner join ctop_project p on p.id =a.project_id set a.project_name = p.project_name
|
|
update ctop_bytedance_report_image_daily a inner join ctop_project p on p.id =a.project_id set a.project_name = p.project_name
|
|
- where a.project_id is not null and a.project_name is null
|
|
|
|
|
|
+ where a.project_id is not null and a.project_name is null and a.account_id = #{accountId}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<update id="updateImageReportPlaneId">
|
|
<update id="updateImageReportPlaneId">
|