优化代码生成&新增默认值处理

This commit is contained in:
不做码农
2023-02-17 11:02:27 +08:00
parent a51c85fcad
commit c7582e62ed
15 changed files with 128 additions and 75 deletions

View File

@@ -77,5 +77,9 @@ namespace ZR.Model.System.Dto
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 自动填充类型
/// </summary>
public int? AutoFillType { get; set; }
}
}

View File

@@ -91,6 +91,10 @@ namespace ZR.Model.System.Generate
/// 字典类型
/// </summary>
public string DictType { get; set; } = "";
/// <summary>
/// 自动填充类型 1、添加 2、编辑 3、添加编辑
/// </summary>
public int AutoFillType { get; set; }
#region
[SugarColumn(IsIgnore = true)]
@@ -126,7 +130,7 @@ namespace ZR.Model.System.Generate
{
get
{
return (((!IsInsert && !IsEdit) || IsPk) && !IsRequired) ? " :disabled=\"true\"" : "";
return ((IsPk) && !IsRequired) ? " :disabled=\"true\"" : "";
}
}