fix 分组查询处理
This commit is contained in:
@@ -153,7 +153,7 @@ public class GainfoPermissionService : IGainfoPermissionService
|
||||
{
|
||||
var codeDesc = x.UniqueType == DeviceAssignmentTypeEnumType.Device
|
||||
? item.DeployPlace
|
||||
: deviceGroups.First(p => p.Code == x.Codes.First()).Name;
|
||||
: deviceGroups.First(p => p.Code == x.OriginalCodes.First()).Name;
|
||||
|
||||
var currentAssignValue = x.AssignValue;
|
||||
if (x.AssignType == AssignTypeEnumType.Department)
|
||||
@@ -166,6 +166,11 @@ public class GainfoPermissionService : IGainfoPermissionService
|
||||
currentAssignValue = userGroups.First(p => p.Code == Guid.Parse(currentAssignValue)).Name;
|
||||
}
|
||||
|
||||
if (x.AssignType == AssignTypeEnumType.User)
|
||||
{
|
||||
currentAssignValue = "自己";
|
||||
}
|
||||
|
||||
var r = new DevicePermissionSourceTypeDto
|
||||
{
|
||||
AssignType = x.AssignType,
|
||||
|
||||
Reference in New Issue
Block a user