Browse Source

更新导入新生信息模版

master
崔茂正 11 months ago
parent
commit
dbd6a6bc87
  1. 10
      app/Imports/FirstSheetImport.php
  2. 4
      app/Models/AdmissionNewStudents.php
  3. BIN
      storage/app/public/excelTemplate/newStudentTemplate.xlsx

10
app/Imports/FirstSheetImport.php

@ -93,6 +93,16 @@ class FirstSheetImport implements ToCollection, WithBatchInserts, WithChunkReadi
$arr["sex"] = 2; $arr["sex"] = 2;
} }
//走读生
if(trim($item["走读生"]) == "是"){
$arr["day_student"] = AdmissionNewStudents::DAY_STUDENT_YES;
}
//零元入学
if(trim($item["零元入学"]) == "是"){
$arr["zero_enrol"] = AdmissionNewStudents::ZERO_ENROL_YES;
}
//检测专业 //检测专业
//取出所有二级学院 //取出所有二级学院
$secondaryCollegeList = SecondaryCollege::query()->where([ $secondaryCollegeList = SecondaryCollege::query()->where([

4
app/Models/AdmissionNewStudents.php

@ -28,4 +28,8 @@ class AdmissionNewStudents extends Model
const ZERO_ENROL_NO = 1; //是否允许0元入学 否 const ZERO_ENROL_NO = 1; //是否允许0元入学 否
const ZERO_ENROL_YES = 2; //是 const ZERO_ENROL_YES = 2; //是
const DAY_STUDENT_YES = 2; //是否为走读生 1否 2是
const DAY_STUDENT_NO = 1;
} }

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

Binary file not shown.
Loading…
Cancel
Save