master
huanghai 5 years ago
parent 810700f17b
commit a8df3b6049

@ -573,15 +573,21 @@ func checkExcel(excelPath string, s1 ExcelUtil.TemplateStruct, MapClass map[stri
//标红
cName, _ := excelize.ColumnNumberToName(j + 1)
cell := cName + CommonUtil.ConvertIntToString(i+1)
nowStyle, _ := f.GetCellStyle(s1.Title, cell)
if !pass {
//红色
if nowStyle != RedStyle {
_ = f.SetCellStyle(s1.Title, cell, cell, RedStyle)
}
firstSuccess = false
} else {
if nowStyle != WhiteStyle {
_ = f.SetCellStyle(s1.Title, cell, cell, WhiteStyle)
}
}
}
}
//判断身份证号是不是在本EXCEL中存在重复如果存在需要进行标识
for _, rowArray := range _idCardMap {
//重复

Loading…
Cancel
Save