|
@@ -25,35 +25,31 @@
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoAccount">
|
|
<insert id="insertOperationRecordInfoAccount">
|
|
- insert into
|
|
|
|
|
|
+ replace into
|
|
ctop_kuaishou_operation_record_account
|
|
ctop_kuaishou_operation_record_account
|
|
(
|
|
(
|
|
- account_id,
|
|
|
|
- stat_date,
|
|
|
|
- operation_time,
|
|
|
|
- operation_type,
|
|
|
|
- role_type,
|
|
|
|
- object_name,
|
|
|
|
- operation_target,
|
|
|
|
- object_id,
|
|
|
|
- field_name,
|
|
|
|
- original_data,
|
|
|
|
- update_data
|
|
|
|
|
|
+ account_id,
|
|
|
|
+ stat_date,
|
|
|
|
+ operation_time,
|
|
|
|
+ operation_type,
|
|
|
|
+ role_type,
|
|
|
|
+ object_name,
|
|
|
|
+ operation_target,
|
|
|
|
+ object_id,
|
|
|
|
+ log
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
(
|
|
(
|
|
- #{record.accountId},
|
|
|
|
- #{record.statDate},
|
|
|
|
- #{record.operationTime},
|
|
|
|
- #{record.operationType},
|
|
|
|
- #{record.roleType},
|
|
|
|
- #{record.objectName},
|
|
|
|
- #{record.operationTarget},
|
|
|
|
- #{record.objectId},
|
|
|
|
- #{record.fieldName},
|
|
|
|
- #{record.originalData},
|
|
|
|
- #{record.updateData}
|
|
|
|
|
|
+ #{record.accountId},
|
|
|
|
+ #{record.statDate},
|
|
|
|
+ #{record.operationTime},
|
|
|
|
+ #{record.operationType},
|
|
|
|
+ #{record.roleType},
|
|
|
|
+ #{record.objectName},
|
|
|
|
+ #{record.operationTarget},
|
|
|
|
+ #{record.objectId},
|
|
|
|
+ #{record.log}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -71,22 +67,22 @@
|
|
account_id = #{record.accountId}
|
|
account_id = #{record.accountId}
|
|
and
|
|
and
|
|
stat_date = #{record.statDate}
|
|
stat_date = #{record.statDate}
|
|
- <!--
|
|
|
|
- and
|
|
|
|
- object_id = #{record.objectId}
|
|
|
|
- and
|
|
|
|
- operation_type = #{record.operationType}
|
|
|
|
- and
|
|
|
|
- operation_target = #{record.operationTarget}
|
|
|
|
- and
|
|
|
|
- role_type = #{record.roleType}
|
|
|
|
- and
|
|
|
|
- operation_time = #{record.operationTime}
|
|
|
|
- -->
|
|
|
|
|
|
+ <!--
|
|
|
|
+ and
|
|
|
|
+ object_id = #{record.objectId}
|
|
|
|
+ and
|
|
|
|
+ operation_type = #{record.operationType}
|
|
|
|
+ and
|
|
|
|
+ operation_target = #{record.operationTarget}
|
|
|
|
+ and
|
|
|
|
+ role_type = #{record.roleType}
|
|
|
|
+ and
|
|
|
|
+ operation_time = #{record.operationTime}
|
|
|
|
+ -->
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoCampaign">
|
|
<insert id="insertOperationRecordInfoCampaign">
|
|
- insert into
|
|
|
|
|
|
+ replace into
|
|
ctop_kuaishou_operation_record_campaign
|
|
ctop_kuaishou_operation_record_campaign
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
@@ -97,9 +93,7 @@
|
|
object_name,
|
|
object_name,
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
- field_name,
|
|
|
|
- original_data,
|
|
|
|
- update_data
|
|
|
|
|
|
+ log
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
@@ -112,9 +106,7 @@
|
|
#{record.objectName},
|
|
#{record.objectName},
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
- #{record.fieldName},
|
|
|
|
- #{record.originalData},
|
|
|
|
- #{record.updateData}
|
|
|
|
|
|
+ #{record.log}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -129,22 +121,22 @@
|
|
account_id = #{record.accountId}
|
|
account_id = #{record.accountId}
|
|
and
|
|
and
|
|
stat_date = #{record.statDate}
|
|
stat_date = #{record.statDate}
|
|
- <!--
|
|
|
|
- and
|
|
|
|
- object_id = #{record.objectId}
|
|
|
|
- and
|
|
|
|
- operation_type = #{record.operationType}
|
|
|
|
- and
|
|
|
|
- operation_target = #{record.operationTarget}
|
|
|
|
- and
|
|
|
|
- role_type = #{record.roleType}
|
|
|
|
- and
|
|
|
|
- operation_time = #{record.operationTime}
|
|
|
|
- -->
|
|
|
|
|
|
+ <!--
|
|
|
|
+ and
|
|
|
|
+ object_id = #{record.objectId}
|
|
|
|
+ and
|
|
|
|
+ operation_type = #{record.operationType}
|
|
|
|
+ and
|
|
|
|
+ operation_target = #{record.operationTarget}
|
|
|
|
+ and
|
|
|
|
+ role_type = #{record.roleType}
|
|
|
|
+ and
|
|
|
|
+ operation_time = #{record.operationTime}
|
|
|
|
+ -->
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoUnit">
|
|
<insert id="insertOperationRecordInfoUnit">
|
|
- insert into
|
|
|
|
|
|
+ replace into
|
|
ctop_kuaishou_operation_record_unit
|
|
ctop_kuaishou_operation_record_unit
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
@@ -155,9 +147,7 @@
|
|
object_name,
|
|
object_name,
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
- field_name,
|
|
|
|
- original_data,
|
|
|
|
- update_data
|
|
|
|
|
|
+ log
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
@@ -170,9 +160,7 @@
|
|
#{record.objectName},
|
|
#{record.objectName},
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
- #{record.fieldName},
|
|
|
|
- #{record.originalData},
|
|
|
|
- #{record.updateData}
|
|
|
|
|
|
+ #{record.log}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -204,7 +192,7 @@
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoCreative">
|
|
<insert id="insertOperationRecordInfoCreative">
|
|
- insert into
|
|
|
|
|
|
+ replace into
|
|
ctop_kuaishou_operation_record_creative
|
|
ctop_kuaishou_operation_record_creative
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
@@ -215,9 +203,7 @@
|
|
object_name,
|
|
object_name,
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
- field_name,
|
|
|
|
- original_data,
|
|
|
|
- update_data
|
|
|
|
|
|
+ log
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
@@ -230,9 +216,7 @@
|
|
#{record.objectName},
|
|
#{record.objectName},
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
- #{record.fieldName},
|
|
|
|
- #{record.originalData},
|
|
|
|
- #{record.updateData}
|
|
|
|
|
|
+ #{record.log}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -263,7 +247,7 @@
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoVideo">
|
|
<insert id="insertOperationRecordInfoVideo">
|
|
- insert into
|
|
|
|
|
|
+ replace into
|
|
ctop_kuaishou_operation_record_video
|
|
ctop_kuaishou_operation_record_video
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
@@ -274,9 +258,7 @@
|
|
object_name,
|
|
object_name,
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
- field_name,
|
|
|
|
- original_data,
|
|
|
|
- update_data
|
|
|
|
|
|
+ log
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
@@ -289,9 +271,7 @@
|
|
#{record.objectName},
|
|
#{record.objectName},
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
- #{record.fieldName},
|
|
|
|
- #{record.originalData},
|
|
|
|
- #{record.updateData}
|
|
|
|
|
|
+ #{record.log}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -323,7 +303,7 @@
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoApp">
|
|
<insert id="insertOperationRecordInfoApp">
|
|
- insert into
|
|
|
|
|
|
+ replace into
|
|
ctop_kuaishou_operation_record_app
|
|
ctop_kuaishou_operation_record_app
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
@@ -334,9 +314,7 @@
|
|
object_name,
|
|
object_name,
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
- field_name,
|
|
|
|
- original_data,
|
|
|
|
- update_data
|
|
|
|
|
|
+ log
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
@@ -349,9 +327,7 @@
|
|
#{record.objectName},
|
|
#{record.objectName},
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
- #{record.fieldName},
|
|
|
|
- #{record.originalData},
|
|
|
|
- #{record.updateData}
|
|
|
|
|
|
+ #{record.log}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
@@ -382,7 +358,7 @@
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertOperationRecordInfoPackage">
|
|
<insert id="insertOperationRecordInfoPackage">
|
|
- insert into
|
|
|
|
|
|
+ replace into
|
|
ctop_kuaishou_operation_record_package
|
|
ctop_kuaishou_operation_record_package
|
|
(
|
|
(
|
|
account_id,
|
|
account_id,
|
|
@@ -393,9 +369,7 @@
|
|
object_name,
|
|
object_name,
|
|
operation_target,
|
|
operation_target,
|
|
object_id,
|
|
object_id,
|
|
- field_name,
|
|
|
|
- original_data,
|
|
|
|
- update_data
|
|
|
|
|
|
+ log
|
|
)
|
|
)
|
|
values
|
|
values
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
<foreach item="record" index="index" collection="records" separator="," >
|
|
@@ -408,9 +382,7 @@
|
|
#{record.objectName},
|
|
#{record.objectName},
|
|
#{record.operationTarget},
|
|
#{record.operationTarget},
|
|
#{record.objectId},
|
|
#{record.objectId},
|
|
- #{record.fieldName},
|
|
|
|
- #{record.originalData},
|
|
|
|
- #{record.updateData}
|
|
|
|
|
|
+ #{record.log}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|