feat:代码生成模板新增下拉多选查询

This commit is contained in:
不做码农
2022-10-17 17:59:52 +08:00
parent f5c0588f42
commit cfc8eee2a3
5 changed files with 19 additions and 7 deletions

View File

@@ -99,7 +99,7 @@ namespace ZR.Model.System.Generate
get
{
string[] arr = new string[] { "int", "long" };
return (!IsRequired && (arr.Any(f => f.Contains(CsharpType))) || typeof(DateTime).Name == CsharpType) ? "?" : "";
return (!IsRequired && HtmlType != "selectMulti" && (arr.Any(f => f.Contains(CsharpType))) || typeof(DateTime).Name == CsharpType) ? "?" : "";
}
}
/// <summary>