正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
@@ -663,7 +663,9 @@ func (srv StaffAssessServeice) ExportUserAssess2(param *query.SummaryCommand) (* | @@ -663,7 +663,9 @@ func (srv StaffAssessServeice) ExportUserAssess2(param *query.SummaryCommand) (* | ||
663 | //填写在第几行 | 663 | //填写在第几行 |
664 | axisNum := 7 + 3*i5 | 664 | axisNum := 7 + 3*i5 |
665 | axis := fmt.Sprintf("%s%d", colName, axisNum) | 665 | axis := fmt.Sprintf("%s%d", colName, axisNum) |
666 | - xlsxFile.SetCellStr(v, axis, eData.data[k1].String()) | 666 | + if d, ok := eData.data[k1]; ok { |
667 | + xlsxFile.SetCellStr(v, axis, d.String()) | ||
668 | + } | ||
667 | //单元格高度按三个单元格合并 | 669 | //单元格高度按三个单元格合并 |
668 | axisEnd := fmt.Sprintf("%s%d", colName, axisNum+2) | 670 | axisEnd := fmt.Sprintf("%s%d", colName, axisNum+2) |
669 | xlsxFile.MergeCell(v, axis, axisEnd) | 671 | xlsxFile.MergeCell(v, axis, axisEnd) |
@@ -1122,7 +1122,7 @@ func (d *StaffAssessDao) SearchContentCategoryName(companyId int, cycleId int, u | @@ -1122,7 +1122,7 @@ func (d *StaffAssessDao) SearchContentCategoryName(companyId int, cycleId int, u | ||
1122 | target_user_id,target_user_name | 1122 | target_user_id,target_user_name |
1123 | order by cnt desc,target_user_id | 1123 | order by cnt desc,target_user_id |
1124 | ` | 1124 | ` |
1125 | - sqlStr0 := d.useTStaffAssess(companyId, cycleId, userId, "", hrbp, 0, 5000, string(domain.AssessSelf)) | 1125 | + sqlStr0 := d.useTStaffAssess(companyId, cycleId, userId, "", hrbp, 5000, 0, string(domain.AssessSelf)) |
1126 | sqlStr = sqlStr0 + sqlStr | 1126 | sqlStr = sqlStr0 + sqlStr |
1127 | tx := d.transactionContext.PgTx | 1127 | tx := d.transactionContext.PgTx |
1128 | result := []ContentCategoryName{} | 1128 | result := []ContentCategoryName{} |
-
请 注册 或 登录 后发表评论