Browse Source

同步增量数据

shensong00 2 years ago
parent
commit
71b33aa148
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Console/Commands/CustomerTagFlush.php

+ 2 - 2
app/Console/Commands/CustomerTagFlush.php

@@ -91,11 +91,11 @@ class CustomerTagFlush extends Command
91 91
 //                $updateData[$k] = $item;
92 92
 
93 93
             DB::table($customerDetail)
94
-                ->updateOrCreate([
94
+                ->updateOrInsert([
95 95
                     'corpid' => $item['corpid'],
96 96
                     'user_id' => $item['user_id'],
97 97
                     'external_userid' => $item['external_userid'],
98
-                ], $updateData);
98
+                ], $item);
99 99
 
100 100
                 $this->startId = $customerRelationList->max('id');
101 101
                 RedisModel::set($this->redisKey.$label, $this->startId);