From e68ef2cb46d17ec473afbb968f2eec52a5802da0 Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Wed, 19 Aug 2020 08:29:06 +0800 Subject: [PATCH] 'commit' --- .../BaseStudent/BaseStudentDao/BaseStudentDao.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 {