Browse Source

更新导入床位信息模版

master
崔茂正 11 months ago
parent
commit
53f74dafe6
  1. 10
      app/Imports/BedFirstSheetImport.php
  2. BIN
      storage/app/public/excelTemplate/dormitoryTemplate.xlsx

10
app/Imports/BedFirstSheetImport.php

@ -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);
}

BIN
storage/app/public/excelTemplate/dormitoryTemplate.xlsx

Binary file not shown.
Loading…
Cancel
Save