update:去掉父节点

This commit is contained in:
2021-04-27 17:33:03 +08:00
parent 669810b6c0
commit d5f47dffde
4 changed files with 7015 additions and 10 deletions

View File

@@ -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>