You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/Myshipping.Core/Entity/DBEntityTenant.cs

38 lines
1.0 KiB
C#

2 years ago

using SqlSugar;
namespace Myshipping.Core.Entity;
2 years ago
/// <summary>
/// 自定义租户基类实体
/// </summary>
public abstract class DBEntityTenant : DEntityBase
{
/// <summary>
/// 租户id
/// </summary>
[SugarColumn(ColumnDescription = "租户id")]
public virtual long? TenantId { get; set; }
//public override void Create() {
// var userId = App.User.FindFirst(ClaimConst.CLAINM_USERID)?.Value;
// var userName = App.User.FindFirst(ClaimConst.CLAINM_ACCOUNT)?.Value;
// var tenantId = App.User.FindFirst(ClaimConst.TENANT_ID)?.Value;
// this.Id = YitIdHelper.NextId();
// this.CreatedTime = DateTime.Now;
// if (!string.IsNullOrEmpty(userId))
// {
// this.CreatedUserId = long.Parse(userId);
// this.CreatedUserName = userName;
// }
// if (!string.IsNullOrWhiteSpace(tenantId)) {
// this.TenantId = long.Parse(tenantId);
// }
//}
//public void CreateNotFillTenantInfo() {
// base.Create();
//}
}