Compare commits
No commits in common. "b6de8e0ee96547cb53e882565f9fd529b6db7ab9" and "8efd9b6296934384c0684ca1e06469e6b703cca7" have entirely different histories.
b6de8e0ee9
...
8efd9b6296
@ -118,17 +118,6 @@ func ExportExcelExecutionResult(c *gin.Context) {
|
||||
service.Error(c, errors.New("网络超时,请重试"))
|
||||
return
|
||||
}
|
||||
userListRes, err := service.AccountFieeProvider.UserList(context.Background(), &account.UserListRequest{
|
||||
Domain: "app",
|
||||
})
|
||||
if err != nil {
|
||||
service.Error(c, errors.New("用户查询失败"))
|
||||
return
|
||||
}
|
||||
idFindSubName := make(map[uint64]string)
|
||||
for _, v := range userListRes.UserList {
|
||||
idFindSubName[v.Id] = v.SubNum
|
||||
}
|
||||
|
||||
titleList := []string{
|
||||
"任务标题", "艺人编号", "艺人姓名", "内容类型", "内容标题", "执行结果", "原因",
|
||||
@ -137,7 +126,7 @@ func ExportExcelExecutionResult(c *gin.Context) {
|
||||
for _, task := range res.Data {
|
||||
data := []interface{}{
|
||||
task.TaskTitle,
|
||||
idFindSubName[uint64(task.ArtistId)],
|
||||
task.ArtistId,
|
||||
task.ArtistName,
|
||||
task.ContentTypeDescription,
|
||||
task.WorkTitle,
|
||||
@ -358,7 +347,7 @@ func readExcel(excelPath string) ([]excelData, error) {
|
||||
subName := getCellValue(f, sheetName, i, 0)
|
||||
name := getCellValue(f, sheetName, i, 1)
|
||||
data := excelData{
|
||||
Line: uint(i - 1),
|
||||
Line: uint(i),
|
||||
SubName: subName,
|
||||
Name: name,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user