作者 yangfu

refactor: 生产制造产品管理导入模板调整

@@ -177,10 +177,10 @@ func (srv ExcelDataService) ImportProduct(importDataCommand *command.ImportDataC @@ -177,10 +177,10 @@ func (srv ExcelDataService) ImportProduct(importDataCommand *command.ImportDataC
177 excelImport := excel.NewExcelImport() 177 excelImport := excel.NewExcelImport()
178 excelImport.RowBegin = 3 //第二行开始读取 178 excelImport.RowBegin = 3 //第二行开始读取
179 excelImport.DataFields = []excel.DataField{ 179 excelImport.DataFields = []excel.DataField{
180 - {EnName: "productCode", CnName: "产品编号"},  
181 - {EnName: "productName", CnName: "*品名"},  
182 - {EnName: "unit", CnName: "*规格"},  
183 - {EnName: "productCategory", CnName: "*类别"}, 180 + {EnName: "productCode", CnName: "*产品编号"},
  181 + {EnName: "productName", CnName: "品名"},
  182 + {EnName: "unit", CnName: "规格"},
  183 + {EnName: "productCategory", CnName: "类别"},
184 {EnName: "unitWeight", CnName: "投入单份重量"}, 184 {EnName: "unitWeight", CnName: "投入单份重量"},
185 } 185 }
186 excelData, err := converter.OpenImportFileFromIoReader(excelImport, importDataCommand.Reader, importDataCommand.FileExt) //excelImport.OpenExcelFromIoReader(importDataCommand.Reader) 186 excelData, err := converter.OpenImportFileFromIoReader(excelImport, importDataCommand.Reader, importDataCommand.FileExt) //excelImport.OpenExcelFromIoReader(importDataCommand.Reader)
@@ -483,7 +483,7 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import @@ -483,7 +483,7 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import
483 domain.ImportDividendsOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210927/object/1632743206_NPYTKw6RGhXn4TpYNEQhGGdCkXKXTnxM.xlsx", 483 domain.ImportDividendsOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210927/object/1632743206_NPYTKw6RGhXn4TpYNEQhGGdCkXKXTnxM.xlsx",
484 domain.ImportCooperationUser: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210926/object/1632635345_SbfzmkXjQHhCwPw4MB7zb5EBBtdp2MSE.xlsx", 484 domain.ImportCooperationUser: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210926/object/1632635345_SbfzmkXjQHhCwPw4MB7zb5EBBtdp2MSE.xlsx",
485 domain.ImportDividendsReturnOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210927/object/1632743214_rNHm6ZBXZaC5xKTrsE7M4h45MY6n6Ff3.xlsx", 485 domain.ImportDividendsReturnOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210927/object/1632743214_rNHm6ZBXZaC5xKTrsE7M4h45MY6n6Ff3.xlsx",
486 - domain.ImportProducts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20220120/object/1642670543_cbraNKjNPHcbN6RNBYQBrwhC7BXGbDWp.xlsx", 486 + 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", 487 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", 488 domain.ImportCosts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220616/object/1655349687_CjpXGrjD4EH2jrw4SXJmHkaQZXKQcT56.xlsx",
489 } 489 }