|
@@ -7,7 +7,10 @@
|
|
from
|
|
from
|
|
ctop_kuaishou_operation_record_account
|
|
ctop_kuaishou_operation_record_account
|
|
where
|
|
where
|
|
- account_id = #{record.account_id}
|
|
|
|
|
|
+ account_id = #{record.accountId}
|
|
|
|
+ and
|
|
|
|
+ stat_date = #{record.statDate}
|
|
|
|
+ <!--
|
|
and
|
|
and
|
|
object_id = #{record.objectId}
|
|
object_id = #{record.objectId}
|
|
and
|
|
and
|
|
@@ -18,6 +21,7 @@
|
|
role_type = #{record.roleType}
|
|
role_type = #{record.roleType}
|
|
and
|
|
and
|
|
operation_time = #{record.operationTime}
|
|
operation_time = #{record.operationTime}
|
|
|
|
+ -->
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoAccount">
|
|
<insert id="insertOperationRecordInfoAccount">
|
|
@@ -25,6 +29,7 @@
|
|
ctop_kuaishou_operation_record_account
|
|
ctop_kuaishou_operation_record_account
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
|
|
+ stat_date,
|
|
operation_time,
|
|
operation_time,
|
|
operation_type,
|
|
operation_type,
|
|
role_type,
|
|
role_type,
|
|
@@ -32,12 +37,14 @@
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
field_name,
|
|
field_name,
|
|
- original_data
|
|
|
|
|
|
+ original_data,
|
|
|
|
+ update_data
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
(
|
|
(
|
|
#{record.accountId},
|
|
#{record.accountId},
|
|
|
|
+ #{record.statDate},
|
|
#{record.operationTime},
|
|
#{record.operationTime},
|
|
#{record.operationType},
|
|
#{record.operationType},
|
|
#{record.roleType},
|
|
#{record.roleType},
|
|
@@ -45,7 +52,8 @@
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
#{record.fieldName},
|
|
#{record.fieldName},
|
|
- #{record.originalData}
|
|
|
|
|
|
+ #{record.originalData},
|
|
|
|
+ #{record.updateData}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -60,7 +68,10 @@
|
|
from
|
|
from
|
|
ctop_kuaishou_operation_record_campaign
|
|
ctop_kuaishou_operation_record_campaign
|
|
where
|
|
where
|
|
- account_id = #{record.account_id}
|
|
|
|
|
|
+ account_id = #{record.accountId}
|
|
|
|
+ and
|
|
|
|
+ stat_date = #{record.statDate}
|
|
|
|
+ <!--
|
|
and
|
|
and
|
|
object_id = #{record.objectId}
|
|
object_id = #{record.objectId}
|
|
and
|
|
and
|
|
@@ -71,6 +82,7 @@
|
|
role_type = #{record.roleType}
|
|
role_type = #{record.roleType}
|
|
and
|
|
and
|
|
operation_time = #{record.operationTime}
|
|
operation_time = #{record.operationTime}
|
|
|
|
+ -->
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoCampaign">
|
|
<insert id="insertOperationRecordInfoCampaign">
|
|
@@ -78,6 +90,7 @@
|
|
ctop_kuaishou_operation_record_campaign
|
|
ctop_kuaishou_operation_record_campaign
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
|
|
+ stat_date,
|
|
operation_time,
|
|
operation_time,
|
|
operation_type,
|
|
operation_type,
|
|
role_type,
|
|
role_type,
|
|
@@ -85,12 +98,14 @@
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
field_name,
|
|
field_name,
|
|
- original_data
|
|
|
|
|
|
+ original_data,
|
|
|
|
+ update_data
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
(
|
|
(
|
|
#{record.accountId},
|
|
#{record.accountId},
|
|
|
|
+ #{record.statDate},
|
|
#{record.operationTime},
|
|
#{record.operationTime},
|
|
#{record.operationType},
|
|
#{record.operationType},
|
|
#{record.roleType},
|
|
#{record.roleType},
|
|
@@ -98,7 +113,8 @@
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
#{record.fieldName},
|
|
#{record.fieldName},
|
|
- #{record.originalData}
|
|
|
|
|
|
+ #{record.originalData},
|
|
|
|
+ #{record.updateData}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -110,7 +126,10 @@
|
|
from
|
|
from
|
|
ctop_kuaishou_operation_record_unit
|
|
ctop_kuaishou_operation_record_unit
|
|
where
|
|
where
|
|
- account_id = #{record.account_id}
|
|
|
|
|
|
+ account_id = #{record.accountId}
|
|
|
|
+ and
|
|
|
|
+ stat_date = #{record.statDate}
|
|
|
|
+ <!--
|
|
and
|
|
and
|
|
object_id = #{record.objectId}
|
|
object_id = #{record.objectId}
|
|
and
|
|
and
|
|
@@ -121,6 +140,7 @@
|
|
role_type = #{record.roleType}
|
|
role_type = #{record.roleType}
|
|
and
|
|
and
|
|
operation_time = #{record.operationTime}
|
|
operation_time = #{record.operationTime}
|
|
|
|
+ -->
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoUnit">
|
|
<insert id="insertOperationRecordInfoUnit">
|
|
@@ -128,6 +148,7 @@
|
|
ctop_kuaishou_operation_record_unit
|
|
ctop_kuaishou_operation_record_unit
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
|
|
+ stat_date,
|
|
operation_time,
|
|
operation_time,
|
|
operation_type,
|
|
operation_type,
|
|
role_type,
|
|
role_type,
|
|
@@ -135,12 +156,14 @@
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
field_name,
|
|
field_name,
|
|
- original_data
|
|
|
|
|
|
+ original_data,
|
|
|
|
+ update_data
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
(
|
|
(
|
|
#{record.accountId},
|
|
#{record.accountId},
|
|
|
|
+ #{record.statDate},
|
|
#{record.operationTime},
|
|
#{record.operationTime},
|
|
#{record.operationType},
|
|
#{record.operationType},
|
|
#{record.roleType},
|
|
#{record.roleType},
|
|
@@ -148,7 +171,8 @@
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
#{record.fieldName},
|
|
#{record.fieldName},
|
|
- #{record.originalData}
|
|
|
|
|
|
+ #{record.originalData},
|
|
|
|
+ #{record.updateData}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -162,7 +186,10 @@
|
|
from
|
|
from
|
|
ctop_kuaishou_operation_record_creative
|
|
ctop_kuaishou_operation_record_creative
|
|
where
|
|
where
|
|
- account_id = #{record.account_id}
|
|
|
|
|
|
+ account_id = #{record.accountId}
|
|
|
|
+ and
|
|
|
|
+ stat_date = #{record.statDate}
|
|
|
|
+ <!--
|
|
and
|
|
and
|
|
object_id = #{record.objectId}
|
|
object_id = #{record.objectId}
|
|
and
|
|
and
|
|
@@ -173,6 +200,7 @@
|
|
role_type = #{record.roleType}
|
|
role_type = #{record.roleType}
|
|
and
|
|
and
|
|
operation_time = #{record.operationTime}
|
|
operation_time = #{record.operationTime}
|
|
|
|
+ -->
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoCreative">
|
|
<insert id="insertOperationRecordInfoCreative">
|
|
@@ -180,6 +208,7 @@
|
|
ctop_kuaishou_operation_record_creative
|
|
ctop_kuaishou_operation_record_creative
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
|
|
+ stat_date,
|
|
operation_time,
|
|
operation_time,
|
|
operation_type,
|
|
operation_type,
|
|
role_type,
|
|
role_type,
|
|
@@ -187,12 +216,14 @@
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
field_name,
|
|
field_name,
|
|
- original_data
|
|
|
|
|
|
+ original_data,
|
|
|
|
+ update_data
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
(
|
|
(
|
|
#{record.accountId},
|
|
#{record.accountId},
|
|
|
|
+ #{record.statDate},
|
|
#{record.operationTime},
|
|
#{record.operationTime},
|
|
#{record.operationType},
|
|
#{record.operationType},
|
|
#{record.roleType},
|
|
#{record.roleType},
|
|
@@ -200,7 +231,8 @@
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
#{record.fieldName},
|
|
#{record.fieldName},
|
|
- #{record.originalData}
|
|
|
|
|
|
+ #{record.originalData},
|
|
|
|
+ #{record.updateData}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -213,7 +245,10 @@
|
|
from
|
|
from
|
|
ctop_kuaishou_operation_record_video
|
|
ctop_kuaishou_operation_record_video
|
|
where
|
|
where
|
|
- account_id = #{record.account_id}
|
|
|
|
|
|
+ account_id = #{record.accountId}
|
|
|
|
+ and
|
|
|
|
+ stat_date = #{record.statDate}
|
|
|
|
+ <!--
|
|
and
|
|
and
|
|
object_id = #{record.objectId}
|
|
object_id = #{record.objectId}
|
|
and
|
|
and
|
|
@@ -224,6 +259,7 @@
|
|
role_type = #{record.roleType}
|
|
role_type = #{record.roleType}
|
|
and
|
|
and
|
|
operation_time = #{record.operationTime}
|
|
operation_time = #{record.operationTime}
|
|
|
|
+ -->
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoVideo">
|
|
<insert id="insertOperationRecordInfoVideo">
|
|
@@ -231,6 +267,7 @@
|
|
ctop_kuaishou_operation_record_video
|
|
ctop_kuaishou_operation_record_video
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
|
|
+ stat_date,
|
|
operation_time,
|
|
operation_time,
|
|
operation_type,
|
|
operation_type,
|
|
role_type,
|
|
role_type,
|
|
@@ -238,12 +275,14 @@
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
field_name,
|
|
field_name,
|
|
- original_data
|
|
|
|
|
|
+ original_data,
|
|
|
|
+ update_data
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
(
|
|
(
|
|
#{record.accountId},
|
|
#{record.accountId},
|
|
|
|
+ #{record.statDate},
|
|
#{record.operationTime},
|
|
#{record.operationTime},
|
|
#{record.operationType},
|
|
#{record.operationType},
|
|
#{record.roleType},
|
|
#{record.roleType},
|
|
@@ -251,7 +290,8 @@
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
#{record.fieldName},
|
|
#{record.fieldName},
|
|
- #{record.originalData}
|
|
|
|
|
|
+ #{record.originalData},
|
|
|
|
+ #{record.updateData}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -265,7 +305,10 @@
|
|
from
|
|
from
|
|
ctop_kuaishou_operation_record_app
|
|
ctop_kuaishou_operation_record_app
|
|
where
|
|
where
|
|
- account_id = #{record.account_id}
|
|
|
|
|
|
+ account_id = #{record.accountId}
|
|
|
|
+ and
|
|
|
|
+ stat_date = #{record.statDate}
|
|
|
|
+ <!--
|
|
and
|
|
and
|
|
object_id = #{record.objectId}
|
|
object_id = #{record.objectId}
|
|
and
|
|
and
|
|
@@ -276,6 +319,7 @@
|
|
role_type = #{record.roleType}
|
|
role_type = #{record.roleType}
|
|
and
|
|
and
|
|
operation_time = #{record.operationTime}
|
|
operation_time = #{record.operationTime}
|
|
|
|
+ -->
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoApp">
|
|
<insert id="insertOperationRecordInfoApp">
|
|
@@ -283,6 +327,7 @@
|
|
ctop_kuaishou_operation_record_app
|
|
ctop_kuaishou_operation_record_app
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
|
|
+ stat_date,
|
|
operation_time,
|
|
operation_time,
|
|
operation_type,
|
|
operation_type,
|
|
role_type,
|
|
role_type,
|
|
@@ -290,12 +335,14 @@
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
field_name,
|
|
field_name,
|
|
- original_data
|
|
|
|
|
|
+ original_data,
|
|
|
|
+ update_data
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
(
|
|
(
|
|
#{record.accountId},
|
|
#{record.accountId},
|
|
|
|
+ #{record.statDate},
|
|
#{record.operationTime},
|
|
#{record.operationTime},
|
|
#{record.operationType},
|
|
#{record.operationType},
|
|
#{record.roleType},
|
|
#{record.roleType},
|
|
@@ -303,7 +350,8 @@
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
#{record.fieldName},
|
|
#{record.fieldName},
|
|
- #{record.originalData}
|
|
|
|
|
|
+ #{record.originalData},
|
|
|
|
+ #{record.updateData}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -316,7 +364,10 @@
|
|
from
|
|
from
|
|
ctop_kuaishou_operation_record_package
|
|
ctop_kuaishou_operation_record_package
|
|
where
|
|
where
|
|
- account_id = #{record.account_id}
|
|
|
|
|
|
+ account_id = #{record.accountId}
|
|
|
|
+ and
|
|
|
|
+ stat_date = #{record.statDate}
|
|
|
|
+ <!--
|
|
and
|
|
and
|
|
object_id = #{record.objectId}
|
|
object_id = #{record.objectId}
|
|
and
|
|
and
|
|
@@ -327,6 +378,7 @@
|
|
role_type = #{record.roleType}
|
|
role_type = #{record.roleType}
|
|
and
|
|
and
|
|
operation_time = #{record.operationTime}
|
|
operation_time = #{record.operationTime}
|
|
|
|
+ -->
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoPackage">
|
|
<insert id="insertOperationRecordInfoPackage">
|
|
@@ -334,6 +386,7 @@
|
|
ctop_kuaishou_operation_record_package
|
|
ctop_kuaishou_operation_record_package
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
|
|
+ stat_date,
|
|
operation_time,
|
|
operation_time,
|
|
operation_type,
|
|
operation_type,
|
|
role_type,
|
|
role_type,
|
|
@@ -341,12 +394,14 @@
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
field_name,
|
|
field_name,
|
|
- original_data
|
|
|
|
|
|
+ original_data,
|
|
|
|
+ update_data
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
(
|
|
(
|
|
#{record.accountId},
|
|
#{record.accountId},
|
|
|
|
+ #{record.statDate},
|
|
#{record.operationTime},
|
|
#{record.operationTime},
|
|
#{record.operationType},
|
|
#{record.operationType},
|
|
#{record.roleType},
|
|
#{record.roleType},
|
|
@@ -354,7 +409,8 @@
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
#{record.fieldName},
|
|
#{record.fieldName},
|
|
- #{record.originalData}
|
|
|
|
|
|
+ #{record.originalData},
|
|
|
|
+ #{record.updateData}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|