|
|
@@ -263,7 +263,7 @@ class ViolationStore extends Controller
|
|
|
$ViolationStore = $ViolationStoreModel->where($where)->first();
|
|
|
if (!$ViolationStore) return json_send(['code' => 'error', 'msg' => '记录不存在']);
|
|
|
$oldData = $ViolationStore->toarray();
|
|
|
- $all_data['company_id'] = $company_id;
|
|
|
+ $all_data['company_id'] = $map['company_id'];
|
|
|
$result = $ViolationStoreModel->updateViolationStore($ViolationStore, $all_data);
|
|
|
// 如果操作失败
|
|
|
if (!$result) return json_send(['code' => 'error', 'msg' => '修改失败']);
|