|
@@ -70,6 +70,11 @@ class JuliangAccountRateConfigRefresh extends Command
|
|
|
DB::table('juliang_account_rate_config_log')
|
|
|
->where(['company_uid' => $item->company_uid, 'account_id' => $item->account_id, 'is_enabled' => 1])
|
|
|
->update(['is_enabled' => 0, 'updated_at' => $now]);
|
|
|
+ DB::table('juliang_account_promotion_protect_record')
|
|
|
+ ->where('optimizer_uid', $item->company_uid)
|
|
|
+ ->whereIn('advertiser_id', $item->account_id)
|
|
|
+ ->where('is_enabled', 1)
|
|
|
+ ->update(['is_enabled' => 0, 'updated_at' => $now]);
|
|
|
DB::table('juliang_account_rate_config_log')
|
|
|
->insert([
|
|
|
'company_uid' => $item->company_uid,
|