优化代码生成字典重复问题 link https://gitee.com/izory/ZrAdminNetCore/issues/I8LL2O

This commit is contained in:
不做码农 2023-12-12 09:45:42 +08:00
parent dac25c8785
commit df10dd2cbd

View File

@ -607,7 +607,7 @@ namespace ZR.CodeGenerator
options.Data.Set("showCustomInput", showCustomInput);
options.Data.Set("tool", new CodeGeneratorTool());
options.Data.Set("codeTool", new CodeGenerateTemplate());
options.Data.Set("dicts", dicts);
options.Data.Set("dicts", dicts.DistinctBy(x => x.DictType));
options.Data.Set("sub", dto.GenTable.SubTable != null && dto.GenTable.SubTableName.IsNotEmpty());
options.EnableCache = true;
//...其它数据