...
|
...
|
@@ -144,15 +144,15 @@ trait DbQuery { |
|
|
$data['updated_at'] = empty($data['updated_at']) ? date('Y-m-d H:i:s') : $data['updated_at'];
|
|
|
}
|
|
|
|
|
|
// es 同步数据
|
|
|
\Event\Event::call('\Event\SyncMailToEs','update',$table,$where,$data);
|
|
|
|
|
|
$sql = "update `{$table}` set ".dbUpdate($data). " where ".$where;
|
|
|
|
|
|
$data = $this->getData($data);
|
|
|
|
|
|
$query = $this->query([$sql,$data]);
|
|
|
if($query){
|
|
|
// es 同步数据
|
|
|
\Event\Event::call('\Event\SyncMailToEs','update',$table,$where,$data);
|
|
|
|
|
|
return $query->rowCount();
|
|
|
}
|
|
|
return 0;
|
...
|
...
|
|