From c6265b1f32a6c6c4e4dd478efe27d23e7d825859 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期三, 12 十一月 2025 16:40:25 +0800
Subject: [PATCH] 优化任务逻辑,新增API支持动态货位更新重构任务处理逻辑,支持基于区域的任务分配,优化货位状态更新,减少重复代码 更新项目路径和文档路径,反映文件结构调整。  新增 UpdateStartLocationInfo和RequestLocationAPI 方法,支持动态更新货位信息。

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Repository/Sys_MenuRepository.cs |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Repository/Sys_MenuRepository.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Repository/Sys_MenuRepository.cs"
index 10f60dc..12447c4 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Repository/Sys_MenuRepository.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Repository/Sys_MenuRepository.cs"
@@ -26,13 +26,29 @@
 
         public List<MenuDTO> GetAllMenu()
         {
-            List<Sys_Menu> menus = base.QueryData(x => x.Enable == 1 || x.Enable == 2).OrderByDescending(a => a.OrderNo).ThenByDescending(q => q.ParentId).ToList();
+            //List<Sys_Menu> menus = base.QueryData(x => x.Enable == 1 || x.Enable == 2).OrderByDescending(a => a.OrderNo).ThenByDescending(q => q.ParentId).ToList();
 
+            //List<MenuDTO> _menus = _mapper.Map<List<MenuDTO>>(menus);
+
+            //_menus.ForEach(x =>
+            //{
+            //    x.MenuType ??= 0;
+            //    if (!string.IsNullOrEmpty(x.Auth) && x.Auth.Length > 10)
+            //    {
+            //        try
+            //        {
+            //            x.Actions = x.Auth.DeserializeObject<List<ActionDTO>>();
+            //        }
+            //        catch { }
+            //    }
+            //    x.Actions ??= new List<ActionDTO>();
+            //});
+            //string test = _menus.Serialize();
+            //return _menus;
+            List<Sys_Menu> menus = base.QueryData(x => (x.Enable == 1 || x.Enable == 2) && x.MenuType == App.User.MenuType).OrderByDescending(a => a.OrderNo).ThenByDescending(q => q.ParentId).ToList();
             List<MenuDTO> _menus = _mapper.Map<List<MenuDTO>>(menus);
-
             _menus.ForEach(x =>
             {
-                x.MenuType ??= 0;
                 if (!string.IsNullOrEmpty(x.Auth) && x.Auth.Length > 10)
                 {
                     try

--
Gitblit v1.9.3