|
|
|
@ -457,13 +457,13 @@ func checkExcel(excelPath string, s1 ExcelUtil.TemplateStruct, MapClass map[stri
|
|
|
|
|
}
|
|
|
|
|
//(7)身份证号
|
|
|
|
|
if j == 7 {
|
|
|
|
|
if row[j-1] == "居民身份证" && !CommonUtil.IsIdCard(row[j]) {
|
|
|
|
|
if row[j-1] == "居民身份证" && !CommonUtil.IsIdCard(CommonUtil.CompressStr(row[j])) {
|
|
|
|
|
pass = false
|
|
|
|
|
}
|
|
|
|
|
if row[j] == "" {
|
|
|
|
|
pass = false
|
|
|
|
|
}
|
|
|
|
|
_idCardMap[row[j]] = append(_idCardMap[row[j]], i+1)
|
|
|
|
|
_idCardMap[CommonUtil.CompressStr(row[j])] = append(_idCardMap[CommonUtil.CompressStr(row[j])], i+1)
|
|
|
|
|
}
|
|
|
|
|
//(8)独生子女
|
|
|
|
|
if j == 8 {
|
|
|
|
@ -580,7 +580,7 @@ func readToTable(excelPath string, s1 ExcelUtil.TemplateStruct, MapClass map[str
|
|
|
|
|
//身份证件类型
|
|
|
|
|
m.Sfzjlxm = SysDictKit.MapDictKindChineseToCode["sfzjlxm_"+row[6]]
|
|
|
|
|
//身份证件号
|
|
|
|
|
m.Sfzjh = row[7]
|
|
|
|
|
m.Sfzjh = CommonUtil.CompressStr(row[7])
|
|
|
|
|
//独生子女
|
|
|
|
|
m.Dszybz = int32(CommonUtil.ConvertStringToInt(SysDictKit.MapTrueOrFalseNameToValue[row[8]]))
|
|
|
|
|
//随迁子女
|
|
|
|
|