作者 Your Name

更新导入

@@ -488,14 +488,13 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import @@ -488,14 +488,13 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import
488 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",
489 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 //车间制造-二级品审核导入 490 //车间制造-二级品审核导入
491 - // "ImportProductRecordLevel2": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221030/object/1667144411_R3h4nQxxcMJ7ympktMsYBBQ6bAcFC6xj.xlsx",  
492 "ImportProductRecordLevel2": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221031/object/1667194451_tZePks2hW2nNAhX4CRCmwczeFaK5GzKb.xlsx", 491 "ImportProductRecordLevel2": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221031/object/1667194451_tZePks2hW2nNAhX4CRCmwczeFaK5GzKb.xlsx",
493 //车间制造-工时管理导入 492 //车间制造-工时管理导入
494 - //"ImportAttendance": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221030/object/1667144523_w66QpzZTfxsmhbM5mmBrHjpytcydMNs2.xlsx",  
495 - "ImportAttendance": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221031/object/1667194539_BAWsGePnjn2dJ6WmSmzn3tyPt36wm3sN.xlsx", 493 + "ImportAttendance": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221101/object/1667294206_7PYTAZ6nzmSkeNZGTTPdc6zGtAamYPSW.xlsx",
496 //车间制造-事故管理导入 494 //车间制造-事故管理导入
497 - // "ImportProductTrouble": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221030/object/1667144570_xYKYMrMnXWTyasDPnX2JNXEZHd3rJsWG.xlsx",  
498 - "ImportProductTrouble": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221031/object/1667194573_tdxR7BNJJeaWpNrCb7eFFtn5xpnMph3X.xlsx", 495 + "ImportProductTrouble": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221101/object/1667294264_2WyhcbfrAFJs3knpEnmnrTR7kA34XNFM.xlsx",
  496 + //产能管理导入
  497 + "ImportProductCapacities": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221101/object/1667294313_cJ7pysrycjdPePpDQaxQCacHdrPCYY6p.xlsx",
499 } 498 }
500 var url string 499 var url string
501 var ok bool 500 var ok bool
@@ -188,7 +188,8 @@ func (controller *ExcelDataController) FileImport() { @@ -188,7 +188,8 @@ func (controller *ExcelDataController) FileImport() {
188 importDividendsOrder(controller) 188 importDividendsOrder(controller)
189 case domain.ImportDividendsReturnOrders: 189 case domain.ImportDividendsReturnOrders:
190 importDividendsReturnedOrder(controller) 190 importDividendsReturnedOrder(controller)
191 - case "ImportProductRecordLevel2", "ImportAttendance", "ImportProductTrouble": 191 + case "ImportProductRecordLevel2", "ImportAttendance", "ImportProductTrouble", "ImportProductCapacities":
  192 + //二级品审核导入,工时管理导入 ,事故管理导入,产能管理导入
192 sourceFile, err := controller.GetExcelFile() 193 sourceFile, err := controller.GetExcelFile()
193 if err != nil { 194 if err != nil {
194 e := application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 195 e := application.ThrowError(application.TRANSACTION_ERROR, err.Error())