dengjunjie
2 天以前 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs
@@ -98,8 +98,8 @@
                    }
                }
            }
            List<string> dicList = dicNos.ToList();
            if (dicNos.Where(x => !cacheDicNos.Contains(x)).Count() > 0)
            List<string> dicList = dicNos.Where(x => !cacheDicNos.Contains(x)).ToList();
            if (dicList.Count() > 0)
            {
                string str = AppSettings.Configuration["dics"];
                if (!string.IsNullOrEmpty(str))
@@ -114,7 +114,6 @@
                            cusDics.Add(item);
                        dicList.Remove(item);
                    }
                    foreach (var item in cusDics)
                    {
                        VueDictionaryDTO vueDictionaryDTO = GetVueDictionary(item.Trim());
@@ -521,6 +520,30 @@
                            result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
                        }
                        break;
                    case "productStatusEmun":
                        {
                            List<object> data = new List<object>();
                            Type type = typeof(ProductStatusEmun);
                            List<int> enums = Enum.GetValues(typeof(ProductStatusEmun)).Cast<int>().ToList();
                            int index = 0;
                            foreach (var item in enums)
                            {
                                FieldInfo? fieldInfo = typeof(ProductStatusEmun).GetField(((ProductStatusEmun)item).ToString());
                                DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>();
                                if (description != null)
                                {
                                    data.Add(new { key = item, value = description.Description });
                                }
                                else
                                {
                                    data.Add(new { key = item, value = item.ToString() });
                                }
                                index++;
                            }
                            result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
                        }
                        break;
                    case "locationChangeType":
                        {
                            List<object> data = new List<object>();