Notice:ArraytoStringConversioninDoctrineQueryforeach($listLocationsas$k=>$location){$list[]="'".$location['id']."'";}$storesList=implode(',',$list);//打印字符串(23)"'191','195','215','265'"$storesList=(string)$storesList;我将其更改为字符串,但在查询中仍将其视为数组$sql="SELECT*fromtbl_studentsWHEREs.store_idIN(".$storesLi