From 105eedaf1ed83b44b8cc803af2a7fb40c9061f88 Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Fri, 14 Aug 2020 13:42:43 +0800 Subject: [PATCH] 'commit' --- .../RpcService/BaseTeacher/BaseTeacherDao/BaseTeacherDao.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dsBaseRpc/RpcService/BaseTeacher/BaseTeacherDao/BaseTeacherDao.go b/dsBaseRpc/RpcService/BaseTeacher/BaseTeacherDao/BaseTeacherDao.go index c3d799fd..b64ae441 100644 --- a/dsBaseRpc/RpcService/BaseTeacher/BaseTeacherDao/BaseTeacherDao.go +++ b/dsBaseRpc/RpcService/BaseTeacher/BaseTeacherDao/BaseTeacherDao.go @@ -363,7 +363,7 @@ func ExportTeacherInfoExcel(targetPath string, bureauId string, ExportExcelStatu } if ExportExcelStatus > 0 { //将现有数据填充到下载的模板中 - sql := `select t2.org_name,t1.xm, + sql := `select t1.person_id,t2.org_name,t1.xm, t1.mzm,t1.zzmmm,t1.sfzjlxm, (case t1.sfzjh when '-1' then '' else t1.sfzjh end ) as sfzjh, t1.xlm,t1.xwm,t1.zcm,t1.bzlbm,t1.stage_id,t1.subject_id,t1.gwzym,t1.lxdh,t1.dzxx from t_base_teacher as t1 inner join t_base_teacher_org as t3 on t1.person_id=t3.person_id @@ -406,6 +406,10 @@ func ExportTeacherInfoExcel(targetPath string, bureauId string, ExportExcelStatu cName = cName + strconv.Itoa(i+2+ExcelUtil.HiddenRows) f.SetCellValue(SheetName, cName, list[i][colNames[j]]) } + //单独填充上person_id + cName := "N" + cName = cName + strconv.Itoa(i+2+ExcelUtil.HiddenRows) + f.SetCellValue(SheetName, cName, list[i]["person_id"]) } } // 根据指定路径保存文件