|
|
|
@ -341,7 +341,10 @@ func ImportStudentInfoExcel(excelPath string, bureauId string, actionPersonId st
|
|
|
|
|
}
|
|
|
|
|
//2、对excel的合法性进行检查
|
|
|
|
|
excelSuccess = checkExcel(excelPath, s1, MapClass, MapStage)
|
|
|
|
|
|
|
|
|
|
//两个有一个不成功,则提示
|
|
|
|
|
if !excelSuccess {
|
|
|
|
|
return false, "02", nil //02:在excel检测中,发现问题,请检查后重新上传!
|
|
|
|
|
}
|
|
|
|
|
//将excel文件读取到mysql的临时数据表中
|
|
|
|
|
err := readToTable(excelPath, s1, MapClass, bureauId, batchId, MapStage)
|
|
|
|
|
if err != nil {
|
|
|
|
@ -351,7 +354,7 @@ func ImportStudentInfoExcel(excelPath string, bureauId string, actionPersonId st
|
|
|
|
|
mysqlSuccess = checkTempTable(excelPath, s1, batchId, bureauId)
|
|
|
|
|
|
|
|
|
|
//两个有一个不成功,则提示
|
|
|
|
|
if !excelSuccess || !mysqlSuccess {
|
|
|
|
|
if !mysqlSuccess {
|
|
|
|
|
return false, "02", nil //02:在excel检测中,发现问题,请检查后重新上传!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|