使用razor模板生成实体文件

This commit is contained in:
2023-05-18 15:38:25 +08:00
parent 709c9f6598
commit 31db0d5667
8 changed files with 296 additions and 175 deletions

View File

@@ -857,7 +857,7 @@ public class RunService : IRunService, ITransient
if (!templateInfo.VerifyTemplate()) throw Oops.Oh(ErrorCode.D1401); // 验证模板
// 处理系统控件(模板开启行编辑)
if (_userManager.UserOrigin.Equals("pc") && templateInfo.ColumnData.type.Equals(4))
if (_userManager.UserOrigin?.Equals("pc") == true && templateInfo.ColumnData.type.Equals(4))
{
// 处理显示列和提交的表单数据匹配(行编辑空数据 前端会过滤该控件)
templateInfo.ColumnData.columnList.Where(x => !allDataMap.ContainsKey(x.prop) && x.__config__.visibility.Equals("pc")).ToList()