update:去掉父节点
This commit is contained in:
@@ -34,13 +34,12 @@ namespace Ewide.Core.Entity
|
||||
[Required]
|
||||
public int LevelType { get; set; }
|
||||
|
||||
[Comment("父级区域代码")]
|
||||
[MaxLength(10)]
|
||||
public string ParentCode { get; set; }
|
||||
|
||||
[Comment("排序")]
|
||||
public int Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父节点就是去掉后面两位
|
||||
/// </summary>
|
||||
public string ParentCode => LevelType>1?Code[0..(Code.Length-2)]:string.Empty;
|
||||
/// <summary>
|
||||
/// 多个区域有多个用户绑定自定义数据
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user