|
|
|
@ -363,7 +363,7 @@ func ExportTeacherInfoExcel(targetPath string, bureauId string, ExportExcelStatu
|
|
|
|
|
}
|
|
|
|
|
if ExportExcelStatus > 0 {
|
|
|
|
|
//将现有数据填充到下载的模板中
|
|
|
|
|
sql := `select t1.person_id,t2.org_name,t1.xm,
|
|
|
|
|
sql := `select t1.person_id,t2.org_name,t1.xm,t1.xbm,t1.csrq,
|
|
|
|
|
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
|
|
|
|
@ -399,7 +399,7 @@ func ExportTeacherInfoExcel(targetPath string, bureauId string, ExportExcelStatu
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//填充
|
|
|
|
|
var colNames = []string{"org_name", "xm", "mzm", "zzmmm", "sfzjlxm", "sfzjh", "xlm", "xwm", "zcm", "bzlbm", "stage_name", "subject_name", "lxdh"}
|
|
|
|
|
var colNames = []string{"org_name", "xm", "xbm", "csrq", "mzm", "zzmmm", "sfzjlxm", "sfzjh", "xlm", "xwm", "zcm", "bzlbm", "stage_name", "subject_name", "lxdh"}
|
|
|
|
|
for i := range list {
|
|
|
|
|
for j := range colNames {
|
|
|
|
|
cName, _ := excelize.ColumnNumberToName(j + 1)
|
|
|
|
@ -407,7 +407,7 @@ func ExportTeacherInfoExcel(targetPath string, bureauId string, ExportExcelStatu
|
|
|
|
|
f.SetCellValue(SheetName, cName, list[i][colNames[j]])
|
|
|
|
|
}
|
|
|
|
|
//单独填充上person_id,为了能在没有身份号的唯一标识的情况下,确定是新增还是修改
|
|
|
|
|
cName := "N"
|
|
|
|
|
cName := "P"
|
|
|
|
|
cName = cName + strconv.Itoa(i+2+ExcelUtil.HiddenRows)
|
|
|
|
|
f.SetCellValue(SheetName, cName, list[i]["person_id"])
|
|
|
|
|
}
|
|
|
|
|