Updata:更新导出
This commit is contained in:
parent
edebd161a1
commit
1886935f4d
@ -17,7 +17,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/duke-git/lancet/v2/datetime"
|
|
||||||
"github.com/shopspring/decimal"
|
"github.com/shopspring/decimal"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
@ -257,14 +256,16 @@ func MetricsVideoSubmitExport(ctx *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
newCtx := serviceCast.NewCtxWithUserInfo(ctx)
|
newCtx := serviceCast.NewCtxWithUserInfo(ctx)
|
||||||
t, err := time.Parse("2006-01", req.Month[0])
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
resp, err = service.CastProvider.WorkList(newCtx, &cast.WorkListReq{
|
resp, err = service.CastProvider.WorkList(newCtx, &cast.WorkListReq{
|
||||||
SubmitStartTime: datetime.BeginOfMonth(t).Format(time.DateTime),
|
SubmitTimeMonths: req.Month,
|
||||||
SubmitEndTime: datetime.EndOfMonth(t).Format(time.DateTime),
|
|
||||||
Page: 1,
|
Page: 1,
|
||||||
PageSize: 99999,
|
PageSize: 99999,
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
service.Error(ctx, errors.New(common.MetricsVideoSubmitExportFailed))
|
||||||
|
return
|
||||||
|
}
|
||||||
fmt.Printf("resp.Count: %v\n", resp.Count)
|
fmt.Printf("resp.Count: %v\n", resp.Count)
|
||||||
} else {
|
} else {
|
||||||
resp, err = service.CastProvider.WorkList(newCtx, &cast.WorkListReq{
|
resp, err = service.CastProvider.WorkList(newCtx, &cast.WorkListReq{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user