SqlsugarHelper调整

usertest
zhangxiaofeng 4 months ago
parent 79970be082
commit db8e8a39cd

@ -48,12 +48,14 @@ namespace DS.Module.SqlSugar
{
var tenantId = ((dynamic)entityInfo.EntityValue).TenantId;
if (tenantId == null || tenantId == 0)
entityInfo.SetValue(user.GetTenantId());
entityInfo.SetValue(user.TenantName);
}
if (entityInfo.PropertyName == "OrgId")
{
entityInfo.SetValue(user.TenantName);
var orgId = ((dynamic)entityInfo.EntityValue).OrgId;
if (orgId == null || orgId == 0)
entityInfo.SetValue(user.GetOrgId());
}
if (entityInfo.PropertyName == "CreateBy")

@ -317,7 +317,10 @@ namespace DS.WMS.Core.TaskPlat.Method
{
TaskId = taskInfo.Id,
UserId = x.RecvUserId,
UserName = x.RecvUserName
UserName = x.RecvUserName,
Status = TaskStatusEnum.Create.ToString(),
StatusName = TaskStatusEnum.Create.EnumDescription(),
StatusTime = DateTime.Now
}).ToList();
await tenantDb.Insertable(allocationList).ExecuteCommandAsync();
}

Loading…
Cancel
Save