1
This commit is contained in:
parent
fecc9faff0
commit
3711c5402a
@ -8,6 +8,7 @@ import (
|
|||||||
"fonchain-fiee/api/bundle"
|
"fonchain-fiee/api/bundle"
|
||||||
"fonchain-fiee/api/cast"
|
"fonchain-fiee/api/cast"
|
||||||
"fonchain-fiee/pkg/service"
|
"fonchain-fiee/pkg/service"
|
||||||
|
"fonchain-fiee/pkg/utils"
|
||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@ -279,6 +280,7 @@ func BundleExport(ctx *gin.Context) {
|
|||||||
userInfo := login.GetUserInfoFromC(ctx)
|
userInfo := login.GetUserInfoFromC(ctx)
|
||||||
exportFileName := fmt.Sprintf("%d月份余量信息.xlsx", time.Now().Month())
|
exportFileName := fmt.Sprintf("%d月份余量信息.xlsx", time.Now().Month())
|
||||||
filePath := fmt.Sprintf("./runtime/%d/%s", userInfo.ID, exportFileName)
|
filePath := fmt.Sprintf("./runtime/%d/%s", userInfo.ID, exportFileName)
|
||||||
|
utils.CheckDirPath("./runtime/"+fmt.Sprint(userInfo.ID), true)
|
||||||
res, err := service.BundleProvider.BundleBalanceExport(context.Background(), &req)
|
res, err := service.BundleProvider.BundleBalanceExport(context.Background(), &req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
service.Error(ctx, err)
|
service.Error(ctx, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user