From 3cd9f003ae893abe2483ab3ce0a62bfbd9fa8554 Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周一, 05 5月 2025 18:04:15 +0800 Subject: [PATCH] 库存后端修改 --- Weben_CMS专用代码生成器/Code/Generate/AppService/AppService_Generate.cs | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 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/AppService/AppService_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/AppService/AppService_Generate.cs" index 96fc72a..d68d39d 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/AppService/AppService_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/AppService/AppService_Generate.cs" @@ -20,7 +20,29 @@ CommonHelper.CommonReplaceStr(param, ref str); + string attrString = ""; + List<ColumnModel> newColumnNameList = ListHelper.RemoveAttrForExport(param.ColumnNameList); + for (int i = 0; i < newColumnNameList.Count; ++i) + { + attrString += StructStrHelper.GenerateAttributeForUpdateModel(newColumnNameList[i], param); + } + str = str.Replace("$UpdateAttributes$", attrString); + attrString = ""; + for (int i = 0; i < newColumnNameList.Count; ++i) + { + attrString += StructStrHelper.GenerateAttributeForUpdateModelByImport(newColumnNameList[i], param); + } + str = str.Replace("$UpdateAttributesForImport$", attrString); + + attrString = ""; + for (int i = 0; i < newColumnNameList.Count; ++i) + { + attrString += StructStrHelper.GenerateAttributeForCheckCreateOrUpdateDtoAsync(newColumnNameList[i], param); + } + str = str.Replace("$UpdateAttributesForCheckCreateOrUpdateDtoAsync$", attrString); + + return str; } } -- Gitblit v1.9.3