作者 Your Name

更新导入

... ... @@ -488,14 +488,13 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import
domain.ImportDevices: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20220126/object/1643184320_hT6sY5BKHmBa4TynfSGSCGyZ2KTTtzkj.xlsx",
domain.ImportCosts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220616/object/1655349687_CjpXGrjD4EH2jrw4SXJmHkaQZXKQcT56.xlsx",
//车间制造-二级品审核导入
// "ImportProductRecordLevel2": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221030/object/1667144411_R3h4nQxxcMJ7ympktMsYBBQ6bAcFC6xj.xlsx",
"ImportProductRecordLevel2": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221031/object/1667194451_tZePks2hW2nNAhX4CRCmwczeFaK5GzKb.xlsx",
//车间制造-工时管理导入
//"ImportAttendance": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221030/object/1667144523_w66QpzZTfxsmhbM5mmBrHjpytcydMNs2.xlsx",
"ImportAttendance": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221031/object/1667194539_BAWsGePnjn2dJ6WmSmzn3tyPt36wm3sN.xlsx",
"ImportAttendance": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221101/object/1667294206_7PYTAZ6nzmSkeNZGTTPdc6zGtAamYPSW.xlsx",
//车间制造-事故管理导入
// "ImportProductTrouble": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221030/object/1667144570_xYKYMrMnXWTyasDPnX2JNXEZHd3rJsWG.xlsx",
"ImportProductTrouble": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221031/object/1667194573_tdxR7BNJJeaWpNrCb7eFFtn5xpnMph3X.xlsx",
"ImportProductTrouble": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221101/object/1667294264_2WyhcbfrAFJs3knpEnmnrTR7kA34XNFM.xlsx",
//产能管理导入
"ImportProductCapacities": "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20221101/object/1667294313_cJ7pysrycjdPePpDQaxQCacHdrPCYY6p.xlsx",
}
var url string
var ok bool
... ...
... ... @@ -188,7 +188,8 @@ func (controller *ExcelDataController) FileImport() {
importDividendsOrder(controller)
case domain.ImportDividendsReturnOrders:
importDividendsReturnedOrder(controller)
case "ImportProductRecordLevel2", "ImportAttendance", "ImportProductTrouble":
case "ImportProductRecordLevel2", "ImportAttendance", "ImportProductTrouble", "ImportProductCapacities":
//二级品审核导入,工时管理导入 ,事故管理导入,产能管理导入
sourceFile, err := controller.GetExcelFile()
if err != nil {
e := application.ThrowError(application.TRANSACTION_ERROR, err.Error())
... ...