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