From b6837f097e9cdb2645368aed4ddb03f580c331e4 Mon Sep 17 00:00:00 2001
From: z8018 <1282578289@qq.com>
Date: 星期一, 05 五月 2025 17:29:07 +0800
Subject: [PATCH] 1

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_DictionaryController.cs |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_DictionaryController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_DictionaryController.cs"
index e049cbe..cdb20b7 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_DictionaryController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_DictionaryController.cs"
@@ -21,6 +21,7 @@
 using WIDESEAWCS_Core.Enums;
 using WIDESEAWCS_Core.Caches;
 using WIDESEAWCS_QuartzJob.DeviceEnum;
+using OfficeOpenXml.FormulaParsing.Excel.Functions.Information;
 
 namespace WIDESEAWCS_WCSServer.Controllers.System
 {
@@ -46,6 +47,10 @@
                 List<string> cacheDicNos = new List<string>();
                 foreach (string n in dicNos)
                 {
+                    if(vueDictionaryDTOs.Where(x => x.DicNo == n).Count() > 0)
+                    {
+                        continue;
+                    }
                     string str = _cacheService.Get(n);
                     if (!string.IsNullOrEmpty(str))
                     {
@@ -76,6 +81,10 @@
 
                         foreach (var item in cusDics)
                         {
+                            if (vueDictionaryDTOs.Where(x => x.DicNo == item).Count() > 0)
+                            {
+                                continue;
+                            }
                             VueDictionaryDTO vueDictionaryDTO = GetVueDictionary(item.Trim());
                             if (vueDictionaryDTO != null)
                             {

--
Gitblit v1.9.3