优化代码生成&新增默认值处理
This commit is contained in:
@@ -77,5 +77,9 @@ namespace ZR.Model.System.Dto
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
/// <summary>
|
||||
/// 自动填充类型
|
||||
/// </summary>
|
||||
public int? AutoFillType { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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\"" : "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user