修改
This commit is contained in:
parent
a07fa1843f
commit
591a82a9e9
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user