|
|
@@ -65,6 +65,7 @@ class ViolationProduct extends Model
|
|
|
'product_specs' => $data['product_specs'],
|
|
|
'store_scope' => $data['store_scope'] !='' ? 2 : 1, //店铺范围1=全部店铺 2=指定店铺
|
|
|
'company_scope' => $data['company_scope'] !='' ? 2 : 1, //公司范围1=全部公司 2=指定公司
|
|
|
+ 'category_id' => $data['category_id'],
|
|
|
'insert_time' => time(),
|
|
|
];
|
|
|
$ViolationProduct_id = $this->insertGetId($insert_data);
|
|
|
@@ -114,6 +115,7 @@ class ViolationProduct extends Model
|
|
|
$ViolationProduct->product_specs = $data['product_specs'];
|
|
|
$ViolationProduct->store_scope = $store_scope;
|
|
|
$ViolationProduct->company_scope = $company_scope;
|
|
|
+ $ViolationProduct->category_id = $data['category_id'];
|
|
|
$ViolationProduct->update_time = time();
|
|
|
$ViolationProduct->save();
|
|
|
|