From 48e865c8ed5902ae34f133a29dfade36d3f018d3 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期四, 24 十月 2024 13:46:24 +0800 Subject: [PATCH] 修改WMS货位信息表,任务表,添加WCS接口 --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs | 43 ++++++++++++++++++++++--------------------- 1 files changed, 22 insertions(+), 21 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs" index eabf102..cc0c192 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs" @@ -117,8 +117,9 @@ foreach (var item in dics) { + if (dicList.Contains(item)) + cusDics.Add(item); dicList.Remove(item); - cusDics.Add(item); } foreach (var item in cusDics) @@ -126,9 +127,9 @@ VueDictionaryDTO vueDictionaryDTO = GetVueDictionary(item.Trim()); if (vueDictionaryDTO != null) { - vueDictionaryDTOs.Add(vueDictionaryDTO); if (!_cacheService.Exists(item)) { + vueDictionaryDTOs.Add(vueDictionaryDTO); _cacheService.Add(item, vueDictionaryDTO.Serialize()); } } @@ -485,25 +486,25 @@ } } - { - Type type = typeof(AGVTaskStatusEnum); - List<int> enums = Enum.GetValues(typeof(AGVTaskStatusEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(AGVTaskStatusEnum).GetField(((AGVTaskStatusEnum)item).ToString()); - DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); - if (description != null) - { - data.Add(new { key = item.ToString(), value = description.Description }); - } - else - { - data.Add(new { key = item.ToString(), value = item.ToString() }); - } - index++; - } - } + //{ + // Type type = typeof(AGVTaskStatusEnum); + // List<int> enums = Enum.GetValues(typeof(AGVTaskStatusEnum)).Cast<int>().ToList(); + // int index = 0; + // foreach (var item in enums) + // { + // FieldInfo? fieldInfo = typeof(AGVTaskStatusEnum).GetField(((AGVTaskStatusEnum)item).ToString()); + // DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); + // if (description != null) + // { + // data.Add(new { key = item.ToString(), value = description.Description }); + // } + // else + // { + // data.Add(new { key = item.ToString(), value = item.ToString() }); + // } + // index++; + // } + //} result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; } -- Gitblit v1.9.3