This commit is contained in:
weiz 2024-03-01 16:29:45 +08:00
parent 1083752499
commit 0f6ebdb702

View File

@ -130,7 +130,7 @@ class SupervisionInspectionLogic extends BaseLogic
]);
if(json_encode($data['check_item_detail_ids']) != json_encode($params['check_item_detail_ids'])){
$supervision_inspection_result_ids = SupervisionInspectionResult::where('inspection_id',$params['id'])->column('id');
SupervisionInspectionResult::where('id','in',$supervision_inspection_result_ids)->delete();
SupervisionInspectionResult::destroy($supervision_inspection_result_ids);
}
if(!empty($params['inspection_result'])){
foreach($params['inspection_result'] as $v){