|  | @@ -40,9 +40,9 @@ class InspectService
 | 
											
												
													
														|  |              $where['name'] = ['like', '%' . $params['name'] . '%'];
 |  |              $where['name'] = ['like', '%' . $params['name'] . '%'];
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        if (isset($params['inspect_type_id']) && $params['inspect_type_id'] !== '') {
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if (isset($params['inspection_type_id']) && $params['inspection_type_id'] !== '') {
 | 
											
												
													
														|  |              // 通过关联表查询ID
 |  |              // 通过关联表查询ID
 | 
											
												
													
														|  | -            $typeItem = TypeItem::where('type_id', $params['inspect_type_id'])->select();
 |  | 
 | 
											
												
													
														|  | 
 |  | +            $typeItem = TypeItem::where('type_id', $params['inspection_type_id'])->select();
 | 
											
												
													
														|  |              $inspectIds = array_column( collection($typeItem)->toArray(), 'item_id');
 |  |              $inspectIds = array_column( collection($typeItem)->toArray(), 'item_id');
 | 
											
												
													
														|  |              $where['id'] = ['in', $inspectIds];
 |  |              $where['id'] = ['in', $inspectIds];
 | 
											
												
													
														|  |          }
 |  |          }
 |