diff --git a/dsBaseRpc/RpcService/BaseStudent/BaseStudentDao/BaseStudentDao.go b/dsBaseRpc/RpcService/BaseStudent/BaseStudentDao/BaseStudentDao.go index 2289cf85..e2511b16 100644 --- a/dsBaseRpc/RpcService/BaseStudent/BaseStudentDao/BaseStudentDao.go +++ b/dsBaseRpc/RpcService/BaseStudent/BaseStudentDao/BaseStudentDao.go @@ -446,8 +446,18 @@ func checkExcel(excelPath string, s1 ExcelUtil.TemplateStruct, MapClass map[stri } } //(4)性别 - + if j == 4 { + if row[j] != "男" && row[j] != "女" { + pass = false + } + } //(5)出生日期 + if j == 5 { + //是不是合法出生日期 + if !DateUtil.CheckDateStr(row[j]) { + pass = false + } + } //(6)民族 if j == 6 {