|
|
@@ -38,6 +38,7 @@ class ViolationStore extends Model
|
|
|
public function addViolationStore_content($data)
|
|
|
{
|
|
|
$insert_data = [
|
|
|
+ 'company_id' => $data['company_id'],
|
|
|
'source_id' => $data['source_id'],
|
|
|
'first_responsible_person' => $data['first_responsible_person'] ? ',' . $data['first_responsible_person'] . ',' : '',
|
|
|
'responsible_person' => $data['responsible_person'] ? ',' . $data['responsible_person'] . ',' : '',
|
|
|
@@ -56,6 +57,7 @@ class ViolationStore extends Model
|
|
|
'processing_status' => '1',
|
|
|
'insert_time' => time(),
|
|
|
'scrape_date' => isset($data['scrape_date']) ? $data['scrape_date'] : '',
|
|
|
+ 'collection_time' => isset($data['collection_time']) ? $data['collection_time'] : '',
|
|
|
];
|
|
|
$ViolationStore_id = $this->insertGetId($insert_data);
|
|
|
return $ViolationStore_id;
|
|
|
@@ -102,6 +104,7 @@ class ViolationStore extends Model
|
|
|
'processing_status' => '1',
|
|
|
'insert_time' => time(),
|
|
|
'scrape_date' => isset($data['scrape_date']) ? $data['scrape_date'] : '',
|
|
|
+ 'collection_time' => isset($data['collection_time']) ? $data['collection_time'] : '',
|
|
|
];
|
|
|
$ViolationStore_id = $this->insertGetId($insert_data);
|
|
|
$first_responsible_persons = $data['first_responsible_person'] != '' ? explode(',', $data['first_responsible_person']) : [];
|