From 591a82a9e9e26c3aadccb6ac4b222eaac1c4427e Mon Sep 17 00:00:00 2001 From: jhc Date: Mon, 12 May 2025 13:34:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/bundle/bundleOrder.go | 2 -- pkg/service/bundle/logic/export.go | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/service/bundle/bundleOrder.go b/pkg/service/bundle/bundleOrder.go index 24bb361..6a2499d 100644 --- a/pkg/service/bundle/bundleOrder.go +++ b/pkg/service/bundle/bundleOrder.go @@ -263,8 +263,6 @@ func OrderRecordsList(c *gin.Context) { Domain: "app", ID: userID, }) - fmt.Println("============================== 打印 用户信息 ==============================") - fmt.Printf("userInfo %+v\n",userInfo) if userInfo != nil { orderRecord.Sex = userInfo.Sex orderRecord.Nationality = userInfo.Nationality diff --git a/pkg/service/bundle/logic/export.go b/pkg/service/bundle/logic/export.go index 7f5d0e1..f033b82 100644 --- a/pkg/service/bundle/logic/export.go +++ b/pkg/service/bundle/logic/export.go @@ -25,6 +25,8 @@ func WriteToExcel(dirPath string, orderInfos [][]interface{}) (string, error) { rowIndex := 2 for i := 0; i < len(orderInfos); i++ { + fmt.Println("===================================== rowIndex =========================") + fmt.Printf("rowIndex %+v\n", rowIndex) xlsx.SetCellStyle(index, fmt.Sprintf("A%v", rowIndex), fmt.Sprintf("O%v", rowIndex), style) xlsx.SetSheetRow(index, fmt.Sprintf("A%v", rowIndex), &orderInfos[i]) rowIndex = rowIndex + 1