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("网络超时,请重试"))
|
service.Error(c, errors.New("网络超时,请重试"))
|
||||||
return
|
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{
|
titleList := []string{
|
||||||
"任务标题", "艺人编号", "艺人姓名", "内容类型", "内容标题", "执行结果", "原因",
|
"任务标题", "艺人编号", "艺人姓名", "内容类型", "内容标题", "执行结果", "原因",
|
||||||
@ -137,7 +126,7 @@ func ExportExcelExecutionResult(c *gin.Context) {
|
|||||||
for _, task := range res.Data {
|
for _, task := range res.Data {
|
||||||
data := []interface{}{
|
data := []interface{}{
|
||||||
task.TaskTitle,
|
task.TaskTitle,
|
||||||
idFindSubName[uint64(task.ArtistId)],
|
task.ArtistId,
|
||||||
task.ArtistName,
|
task.ArtistName,
|
||||||
task.ContentTypeDescription,
|
task.ContentTypeDescription,
|
||||||
task.WorkTitle,
|
task.WorkTitle,
|
||||||
@ -358,7 +347,7 @@ func readExcel(excelPath string) ([]excelData, error) {
|
|||||||
subName := getCellValue(f, sheetName, i, 0)
|
subName := getCellValue(f, sheetName, i, 0)
|
||||||
name := getCellValue(f, sheetName, i, 1)
|
name := getCellValue(f, sheetName, i, 1)
|
||||||
data := excelData{
|
data := excelData{
|
||||||
Line: uint(i - 1),
|
Line: uint(i),
|
||||||
SubName: subName,
|
SubName: subName,
|
||||||
Name: name,
|
Name: name,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user