From 810700f17b7b41a12acb759e5f32cd3d2066e24e Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Wed, 30 Sep 2020 16:38:32 +0800 Subject: [PATCH] 'commit' --- .../BaseStudent/BaseStudentDao/BaseStudentDao.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dsBaseRpc/RpcService/BaseStudent/BaseStudentDao/BaseStudentDao.go b/dsBaseRpc/RpcService/BaseStudent/BaseStudentDao/BaseStudentDao.go index 48f4ff66..6d42ad9a 100644 --- a/dsBaseRpc/RpcService/BaseStudent/BaseStudentDao/BaseStudentDao.go +++ b/dsBaseRpc/RpcService/BaseStudent/BaseStudentDao/BaseStudentDao.go @@ -417,7 +417,9 @@ 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 +575,10 @@ func checkExcel(excelPath string, s1 ExcelUtil.TemplateStruct, MapClass map[stri cell := cName + CommonUtil.ConvertIntToString(i+1) if !pass { //红色 - style, _ := f.GetCellStyle(s1.Title, Const.RedCell) - _ = f.SetCellStyle(s1.Title, cell, cell, style) + _ = f.SetCellStyle(s1.Title, cell, cell, RedStyle) firstSuccess = false } else { - style, _ := f.GetCellStyle(s1.Title, Const.WhiteCell) - _ = f.SetCellStyle(s1.Title, cell, cell, style) + _ = f.SetCellStyle(s1.Title, cell, cell, WhiteStyle) } } }