导出问题,增加了打印4

This commit is contained in:
2024-12-06 10:49:08 +08:00
parent 34600c4307
commit 355706b83d
2 changed files with 4 additions and 10 deletions
-10
View File
@@ -1,7 +1,6 @@
package service
import (
"encoding/json"
"fmt"
"github.com/shopspring/decimal"
"hospital-admin-api/api/dao"
@@ -1657,15 +1656,6 @@ func (r *ExportService) OrderProduct(d []*model.OrderProduct) (string, error) {
dataSlice = append(dataSlice, data)
}
// 转为 JSON
jsonData, err := json.Marshal(dataSlice)
if err != nil {
fmt.Println("Error converting to JSON:", err)
return "", err
}
utils.LogJsonInfo("打印数据:", string(jsonData))
file, err := utils.Export(header, dataSlice)
if err != nil {
return "", err