|
|
|
@ -419,7 +419,7 @@ func checkExcel(excelPath string, s1 ExcelUtil.TemplateStruct, MapClass map[stri
|
|
|
|
|
CurrentYear := time.Now().Year()
|
|
|
|
|
RedStyle, _ := f.GetCellStyle(s1.Title, Const.RedCell)
|
|
|
|
|
WhiteStyle, _ := f.GetCellStyle(s1.Title, Const.WhiteCell)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for i, row := range rows {
|
|
|
|
|
//放过表头
|
|
|
|
|
if i < ExcelUtil.HiddenRows+1 {
|
|
|
|
@ -573,12 +573,18 @@ 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 {
|
|
|
|
|
//红色
|
|
|
|
|
_ = f.SetCellStyle(s1.Title, cell, cell, RedStyle)
|
|
|
|
|
if nowStyle != RedStyle {
|
|
|
|
|
_ = f.SetCellStyle(s1.Title, cell, cell, RedStyle)
|
|
|
|
|
}
|
|
|
|
|
firstSuccess = false
|
|
|
|
|
} else {
|
|
|
|
|
_ = f.SetCellStyle(s1.Title, cell, cell, WhiteStyle)
|
|
|
|
|
if nowStyle != WhiteStyle {
|
|
|
|
|
_ = f.SetCellStyle(s1.Title, cell, cell, WhiteStyle)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|