From 6eb23017d39889cbcace0b2a85ebb93b81220d08 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周日, 04 5月 2025 10:31:20 +0800
Subject: [PATCH] 222

---
 Weben_CMS专用代码生成器/Code/Generate/Entity/InputModel_Generate.cs |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 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/Generate/Entity/InputModel_Generate.cs" "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/Generate/Entity/InputModel_Generate.cs"
index d2e34cf..350ee04 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/Generate/Entity/InputModel_Generate.cs"
+++ "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/Generate/Entity/InputModel_Generate.cs"
@@ -1,5 +1,6 @@
 锘�
 
+using GenerateCode_WeiBen_WMS.Model;
 using System;
 using System.Collections.Generic;
 using System.Linq;
@@ -12,21 +13,17 @@
     /// </summary>
     public class InputModel_Generate : BaseGenerate
     {
-        public static string CreateQueryModelLText(string Modulelogo,
-            string ChinaComment, List<ColumnModel> columnNameList, string entityName)
+        public static string CreateQueryModelLText(GenerateCodeParam param)
         {
-            var str = TextHelper.ReadText(@"Templete\Entity\InputModel妯℃澘.txt");
+            var str = TextHelper.ReadText(@"Templete\Entity\InputQueryModel妯℃澘.txt");
             CommonReplace(ref str);
 
-            str = str.Replace("$ChinaComment$", ChinaComment);//涓枃娉ㄩ噴
-            str = str.Replace("$EntityName$", entityName);
-
-            str = str.Replace("$Modulelogo$", Modulelogo);//妯″潡绠�鍐�
+          
 
             //澶勭悊 鍒嗛〉鏌ヨ閮ㄥ垎
             string attrString = "";
 
-            List<ColumnModel> newColumnNameList = ListHelper.OnlyRemoveId(columnNameList);
+            List<ColumnModel> newColumnNameList = ListHelper.OnlyRemoveId(param.ColumnNameList);
             for (int i = 0; i < newColumnNameList.Count; ++i)
             {
                 attrString += StructStrHelper.GenerateAttributeForQueryModel(newColumnNameList[i]);
@@ -36,10 +33,10 @@
 
             //澶勭悊 鏂板閮ㄥ垎
             attrString = "";
-            newColumnNameList = ListHelper.RemoveIdCreatorModifier(columnNameList);
+            newColumnNameList = ListHelper.RemoveIdCreatorModifier(param.ColumnNameList);
             for (int i = 0; i < newColumnNameList.Count; ++i)
             {
-                attrString += StructStrHelper.GenerateAttribute(i,newColumnNameList[i]);
+                attrString += StructStrHelper.GenerateAttribute(i, newColumnNameList[i]);
             }
             str = str.Replace("$AddAttributes$", attrString);
 

--
Gitblit v1.9.3