From 733e63cb362f17aea4a1020654fa348a0d0c1f06 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期一, 24 二月 2025 00:08:59 +0800
Subject: [PATCH] 优化入库逻辑,优化直接出库逻辑,优化移库任务逻辑
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_MenuController.cs | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 54 insertions(+), 0 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_MenuController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_MenuController.cs"
new file mode 100644
index 0000000..4bddd8e
--- /dev/null
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_MenuController.cs"
@@ -0,0 +1,54 @@
+锘縰sing Microsoft.AspNetCore.Mvc;
+using WIDESEA_Core;
+using WIDESEA_Core.BaseController;
+using WIDESEA_ISystemService;
+using WIDESEA_Model.Models;
+
+namespace WIDESEA_WMSServer.Controllers
+{
+ [Route("api/Sys_Menu")]
+ [ApiController]
+ public class Sys_MenuController : ApiBaseController<ISys_MenuService, Sys_Menu>
+ {
+ private readonly IHttpContextAccessor _httpContextAccessor;
+ public Sys_MenuController(ISys_MenuService menuService, IHttpContextAccessor httpContextAccessor) : base(menuService)
+ {
+ _httpContextAccessor = httpContextAccessor;
+ }
+ [HttpGet, HttpPost, Route("getTreeMenu")]
+ public IActionResult GetTreeMenu()
+ {
+ return Json(Service.GetCurrentMenuActionList());
+ }
+
+ [HttpPost, Route("getMenu")]
+ public IActionResult GetMenu()
+ {
+ return Json(Service.GetMenu());
+ }
+
+ [HttpPost, Route("getTreeItem")]
+ public IActionResult GetTreeItem(int menuId)
+ {
+ return Json(Service.GetTreeItem(menuId));
+ }
+
+ [HttpPost, Route("save")]
+ public ActionResult Save([FromBody] Sys_Menu menu)
+ {
+ if (App.User.UserId == 1)
+ {
+ return Json(Service.Save(menu));
+ }
+ else
+ {
+ return Json(WebResponseContent.Instance.Error("浠呴檺瓒呯骇绠$悊鍛樹慨鏀规暟鎹�"));
+ }
+ }
+ [HttpPost, Route("delMenu")]
+ public WebResponseContent DelMenu(int menuId)
+ {
+ return Service.DelMenu(menuId);
+ }
+ }
+}
--
Gitblit v1.9.3