|
@@ -134,8 +134,6 @@ class ViolationProduct extends Model
|
|
|
try {
|
|
try {
|
|
|
//执行挂网数据统计
|
|
//执行挂网数据统计
|
|
|
$data = $this->handleCountData($data);
|
|
$data = $this->handleCountData($data);
|
|
|
-
|
|
|
|
|
- $ViolationProductMemberModel = new ViolationProductMemberModel();
|
|
|
|
|
$insert_data = [
|
|
$insert_data = [
|
|
|
'company_id' => $data['company_id'],
|
|
'company_id' => $data['company_id'],
|
|
|
'source_id' => $data['source_id'],
|
|
'source_id' => $data['source_id'],
|
|
@@ -203,6 +201,7 @@ class ViolationProduct extends Model
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ $ViolationProductMemberModel = new ViolationProductMemberModel();
|
|
|
$ViolationProductMemberModel->insert($first_responsible_person_data);
|
|
$ViolationProductMemberModel->insert($first_responsible_person_data);
|
|
|
$responsible_persons = $data['responsible_person'] != '' ? explode(',', $data['responsible_person']) : [];
|
|
$responsible_persons = $data['responsible_person'] != '' ? explode(',', $data['responsible_person']) : [];
|
|
|
$responsible_person_data = [];
|
|
$responsible_person_data = [];
|
|
@@ -231,6 +230,7 @@ class ViolationProduct extends Model
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ $ViolationProductMemberModel = new ViolationProductMemberModel();
|
|
|
$ViolationProductMemberModel->insert($responsible_person_data);
|
|
$ViolationProductMemberModel->insert($responsible_person_data);
|
|
|
$source_responsible_persons = $data['source_responsible_person'] != '' ? explode(',', $data['source_responsible_person']) : [];
|
|
$source_responsible_persons = $data['source_responsible_person'] != '' ? explode(',', $data['source_responsible_person']) : [];
|
|
|
$source_responsible_person_data = [];
|
|
$source_responsible_person_data = [];
|
|
@@ -259,6 +259,7 @@ class ViolationProduct extends Model
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ $ViolationProductMemberModel = new ViolationProductMemberModel();
|
|
|
$ViolationProductMemberModel->insert($source_responsible_person_data);
|
|
$ViolationProductMemberModel->insert($source_responsible_person_data);
|
|
|
//添加通知
|
|
//添加通知
|
|
|
// $this->addNotices($insert_data, $ViolationProduct_id);
|
|
// $this->addNotices($insert_data, $ViolationProduct_id);
|