作者 Your Name

导入模板更新

@@ -4,6 +4,9 @@ import ( @@ -4,6 +4,9 @@ import (
4 "bytes" 4 "bytes"
5 "encoding/json" 5 "encoding/json"
6 "fmt" 6 "fmt"
  7 + "io"
  8 + "strings"
  9 +
7 "github.com/linmadan/egglib-go/core/application" 10 "github.com/linmadan/egglib-go/core/application"
8 "github.com/linmadan/egglib-go/utils/excel" 11 "github.com/linmadan/egglib-go/utils/excel"
9 "github.com/xuri/excelize/v2" 12 "github.com/xuri/excelize/v2"
@@ -16,8 +19,6 @@ import ( @@ -16,8 +19,6 @@ import (
16 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/cost_structured" 19 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/cost_structured"
17 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/util/converter" 20 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/util/converter"
18 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/util/oss" 21 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/util/oss"
19 - "io"  
20 - "strings"  
21 ) 22 )
22 23
23 type ExcelDataService struct { 24 type ExcelDataService struct {
@@ -486,6 +487,12 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import @@ -486,6 +487,12 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import
486 domain.ImportProducts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220628/object/1656396441_5Ms2hRRk2Z7fTW32RWjwdKfhA5wM5YeZ.xlsx", 487 domain.ImportProducts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220628/object/1656396441_5Ms2hRRk2Z7fTW32RWjwdKfhA5wM5YeZ.xlsx",
487 domain.ImportDevices: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20220126/object/1643184320_hT6sY5BKHmBa4TynfSGSCGyZ2KTTtzkj.xlsx", 488 domain.ImportDevices: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20220126/object/1643184320_hT6sY5BKHmBa4TynfSGSCGyZ2KTTtzkj.xlsx",
488 domain.ImportCosts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220616/object/1655349687_CjpXGrjD4EH2jrw4SXJmHkaQZXKQcT56.xlsx", 489 domain.ImportCosts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220616/object/1655349687_CjpXGrjD4EH2jrw4SXJmHkaQZXKQcT56.xlsx",
  490 + //车间制造-二级品审核导入
  491 + "ImportProductRecordLevel2": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221030/object/1667144411_R3h4nQxxcMJ7ympktMsYBBQ6bAcFC6xj.xlsx",
  492 + //车间制造-工时管理导入
  493 + "ImportAttendance": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221030/object/1667144523_w66QpzZTfxsmhbM5mmBrHjpytcydMNs2.xlsx",
  494 + //车间制造-事故管理导入
  495 + "ImportProductTrouble": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221030/object/1667144570_xYKYMrMnXWTyasDPnX2JNXEZHd3rJsWG.xlsx",
489 } 496 }
490 var url string 497 var url string
491 var ok bool 498 var ok bool