作者 Your Name

修改读取excel 方式

@@ -2,6 +2,8 @@ package service @@ -2,6 +2,8 @@ package service
2 2
3 import ( 3 import (
4 "fmt" 4 "fmt"
  5 + "strings"
  6 +
5 "github.com/linmadan/egglib-go/core/application" 7 "github.com/linmadan/egglib-go/core/application"
6 "github.com/linmadan/egglib-go/utils/excel" 8 "github.com/linmadan/egglib-go/utils/excel"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/web/excelData/command" 9 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/web/excelData/command"
@@ -9,7 +11,6 @@ import ( @@ -9,7 +11,6 @@ import (
9 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain" 11 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
10 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/domainService" 12 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/domainService"
11 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_user" 13 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_user"
12 - "strings"  
13 ) 14 )
14 15
15 type ExcelDataService struct { 16 type ExcelDataService struct {
@@ -112,7 +112,8 @@ func importDividendsOrder(controller ExcelDataController) { @@ -112,7 +112,8 @@ func importDividendsOrder(controller ExcelDataController) {
112 return 112 return
113 } 113 }
114 excelImport := excel.NewExcelImport() 114 excelImport := excel.NewExcelImport()
115 - excelImport.RowBegin = 3 //第2行开始读取 115 + excelImport.RowBegin = 3 //第3行开始读取
  116 + excelImport.Sheet = "分红订单"
116 excelImport.DataFields = []excel.DataField{ 117 excelImport.DataFields = []excel.DataField{
117 {EnName: "OriginalOrderNum", CnName: "*来源单号"}, 118 {EnName: "OriginalOrderNum", CnName: "*来源单号"},
118 {EnName: "DividendsCustomerName", CnName: "*客户名称"}, 119 {EnName: "DividendsCustomerName", CnName: "*客户名称"},