|
|
|
@ -841,7 +841,7 @@ func insertTeacher(batchId string, actionPersonId string, actionIp string) (int,
|
|
|
|
|
//2、新增人员
|
|
|
|
|
teacherImportExcelArray := make([]models.TBaseTeacherImportExcel, 0)
|
|
|
|
|
teacherArray := make([]models.TBaseTeacher, 0)
|
|
|
|
|
db.Where("batch_id=? and person_id is null", batchId).Find(&teacherImportExcelArray)
|
|
|
|
|
db.Where("batch_id=? and and length(person_id)=0", batchId).Find(&teacherImportExcelArray)
|
|
|
|
|
|
|
|
|
|
for i := range teacherImportExcelArray {
|
|
|
|
|
r1 := teacherImportExcelArray[i]
|
|
|
|
@ -949,7 +949,7 @@ func updateTeacherImport(batchId string, actionPersonId string, actionIp string)
|
|
|
|
|
//开始
|
|
|
|
|
teacherImportExcelArray := make([]models.TBaseTeacherImportExcel, 0)
|
|
|
|
|
teacherArray := make([]models.TBaseTeacher, 0)
|
|
|
|
|
db.Where("batch_id=? and person_id is not null", batchId).Find(&teacherImportExcelArray)
|
|
|
|
|
db.Where("batch_id=? and length(person_id)=36", batchId).Find(&teacherImportExcelArray)
|
|
|
|
|
|
|
|
|
|
//准备更新的数据
|
|
|
|
|
for i := range teacherImportExcelArray {
|
|
|
|
|