fix 数据权限分组问题调整
This commit is contained in:
@@ -69,13 +69,13 @@ public class GetDataPermissionService : IGetDataPermissions, ISingletonDependenc
|
|||||||
{
|
{
|
||||||
deviceCodes = db.Queryable<DeviceGroupRelationshipEntity>().Where(x => myDeviceGroupCodes.Contains(x.GroupCode)).Select(x => x.DeviceCode).ToList();
|
deviceCodes = db.Queryable<DeviceGroupRelationshipEntity>().Where(x => myDeviceGroupCodes.Contains(x.GroupCode)).Select(x => x.DeviceCode).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deviceGroupCodeProperty != null)
|
|
||||||
{
|
|
||||||
dict.Add(deviceGroupCodeProperty.Name, deviceGroupCodes);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (deviceGroupCodeProperty != null)
|
||||||
|
{
|
||||||
|
dict.Add(deviceGroupCodeProperty.Name, deviceGroupCodes);
|
||||||
|
}
|
||||||
|
|
||||||
if (deviceCodeProperty != null)
|
if (deviceCodeProperty != null)
|
||||||
{
|
{
|
||||||
var currentDeviceCodes = userDataPermissions.Where(x => x.UniqueType == DeviceAssignmentTypeEnumType.Device).Select(x => x.UniqueValue).ToList();
|
var currentDeviceCodes = userDataPermissions.Where(x => x.UniqueType == DeviceAssignmentTypeEnumType.Device).Select(x => x.UniqueValue).ToList();
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Dlhis.Entity.Device.Enums;
|
using Dlhis.DataPermission.Model;
|
||||||
|
using Dlhis.Entity.Device.Enums;
|
||||||
using Kurisu.AspNetCore.DataAccess.Entity;
|
using Kurisu.AspNetCore.DataAccess.Entity;
|
||||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
@@ -27,6 +28,7 @@ public class DeviceGroupEntity : SugarBaseEntity, ITenantId, ISoftDeleted
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 设备组code
|
/// 设备组code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[DeviceGroupCode]
|
||||||
[SugarColumn(ColumnDescription = "设备组code")]
|
[SugarColumn(ColumnDescription = "设备组code")]
|
||||||
public Guid Code { get; set; }
|
public Guid Code { get; set; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user