dengjunjie
2025-03-12 f43b7df8400f4fcffc9f19dca0888d61e2b33d5f
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs
@@ -59,7 +59,7 @@
        }
        [HttpPost, Route("Del")]
        public virtual ActionResult Del(object key)
        public virtual ActionResult Del([FromBody] object[] key)
        {
            return Json(InvokeService("DeleteData", new object[] { key }));
        }
@@ -77,7 +77,7 @@
            return Json(result);
        }
        [HttpPost, Route("DownLoadTemplate")]
        [HttpPost, HttpGet, Route("DownLoadTemplate")]
        public virtual ActionResult DownLoadTemplate()
        {
            WebResponseContent result = InvokeService("DownLoadTemplate", new object[] { }) as WebResponseContent;
@@ -94,7 +94,12 @@
        public virtual ActionResult Import(List<IFormFile> fileInput)
        {
            return Json(InvokeService("Import", new object[] { fileInput }));
        }
        [HttpPost, Route("ExportSeedData"), AllowAnonymous]
        public ActionResult ExportSeedData()
        {
            return Json(InvokeService("ExportSeedData", new object[] { }));
        }
        private object InvokeService(string methodName, object[] parameters)