From dffde4019898268b44ddd1e9855f8eb3359d44c4 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周五, 09 5月 2025 09:05:05 +0800
Subject: [PATCH] 优化 导出

---
 Weben_CMS专用代码生成器/Code/Templete/AppService/AppService模板.txt |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/AppService/AppService\346\250\241\346\235\277.txt" "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/AppService/AppService\346\250\241\346\235\277.txt"
index f56427c..4687685 100644
--- "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/AppService/AppService\346\250\241\346\235\277.txt"
+++ "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/AppService/AppService\346\250\241\346\235\277.txt"
@@ -1,8 +1,7 @@
 using CMS.Plugin.$NameSpacePath$.Application.Contracts.Dtos.$EntityName$;
 using CMS.Plugin.$NameSpacePath$.Application.Contracts.Services;
 using CMS.Plugin.$NameSpacePath$.Domain.Shared;
-using CMS.Plugin.$NameSpacePath$.Domain.Shared.Util;
-using CMS.Plugin.$NameSpacePath$.Domain.Shared.$EntityName$;
+using CmsQueryExtensions;
 using CMS.Plugin.$NameSpacePath$.Domain.$EntityName$;
 using CmsQueryExtensions.Extension;
 using System.Linq.Expressions;
@@ -115,10 +114,10 @@
 
         await $EntityInstanceName$Repository.InsertAsync(insertObj);
 
-        if (input.Sort.HasValue && insertObj.Sort != maxSort)
-        {
-            await AdjustSortAsync(insertObj.Id, insertObj.Sort);
-        }
+        //if (input.Sort.HasValue && insertObj.Sort != maxSort)
+        //{
+        //    await AdjustSortAsync(insertObj.Id, insertObj.Sort);
+        //}
 
         return ObjectMapper.Map<$EntityName$, $EntityName$Dto>(insertObj);
     }
@@ -283,7 +282,7 @@
 
             foreach (var impItem in importItems)
             {
-                if (impItem.$ValidateRepeatName$.IsNullOrWhiteSpace() && impItem.MaterialName.IsNullOrWhiteSpace())
+                if (impItem.$ValidateRepeatName$.IsNullOrWhiteSpace())
                 {
                     continue;
                 }
@@ -375,7 +374,7 @@
             ["配置"] = ExportHelper.ConvertListToExportData(result),
         };
 
-        var fileName = result.Count > 1 ? "$ChinaComment$列表" : result.Count == 1 ? result[0]?.$ValidateRepeatName$ : "$EntityName$模版";
+        var fileName = "$PageMenuName$";
         return (sheets, fileName);
     }
 

--
Gitblit v1.9.3