|
|
|
@ -202,6 +202,16 @@ class BedFirstSheetImport implements ToCollection, WithBatchInserts, WithChunkRe
@@ -202,6 +202,16 @@ class BedFirstSheetImport implements ToCollection, WithBatchInserts, WithChunkRe
|
|
|
|
|
//床位id |
|
|
|
|
$arr["bed_id"] = $bedList[trim($item["床位号"])]["id"]; |
|
|
|
|
|
|
|
|
|
//走读生 |
|
|
|
|
if(trim($item["走读生"]) == "是"){ |
|
|
|
|
$arr["day_student"] = AllocationDormitoryBed::DAY_STUDENT_YES; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//零元入学 |
|
|
|
|
if(trim($item["零元入学"]) == "是"){ |
|
|
|
|
$arr["zero_enrol"] = AllocationDormitoryBed::ZERO_ENROL_YES; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
array_push($insertData, $arr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|