作者 Your Name

修改读取excel 方式

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