|
|
@ -332,6 +332,10 @@ public static class SqlSugarSetup
|
|
|
|
if (tenantId == null || tenantId == 0)
|
|
|
|
if (tenantId == null || tenantId == 0)
|
|
|
|
entityInfo.SetValue(App.User.FindFirst(ClaimConst.TENANT_ID)?.Value);
|
|
|
|
entityInfo.SetValue(App.User.FindFirst(ClaimConst.TENANT_ID)?.Value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (entityInfo.PropertyName == "TenantName")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
entityInfo.SetValue(App.User.FindFirst(ClaimConst.CLAINM_TENANT_NAME)?.Value);
|
|
|
|
|
|
|
|
}
|
|
|
|
if (entityInfo.PropertyName == "CreatedUserId")
|
|
|
|
if (entityInfo.PropertyName == "CreatedUserId")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var createUserId = ((dynamic)entityInfo.EntityValue).CreatedUserId;
|
|
|
|
var createUserId = ((dynamic)entityInfo.EntityValue).CreatedUserId;
|
|
|
|