新增同步软件控制权限控制软件状态
This commit is contained in:
parent
3f567cb481
commit
3934088e43
@ -110,7 +110,7 @@ namespace LMS.service.Controllers
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 软件控制-传入用户可以未申请权限数量
|
#region 软件控制-传入用户可以获取未申请权限数量
|
||||||
|
|
||||||
[HttpGet("{userId}")]
|
[HttpGet("{userId}")]
|
||||||
[Authorize]
|
[Authorize]
|
||||||
|
|||||||
@ -48,7 +48,8 @@ namespace LMS.service.Service.SoftwareService
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<SoftwareControl> softwareControl = await _dbContext.SoftwareControl.Where(x => x.UserId == id).ToListAsync();
|
List<SoftwareControl> softwareControl = await _dbContext.SoftwareControl.Where(x => x.UserId == id).ToListAsync();
|
||||||
List<Software> software = await _dbContext.Software.ToListAsync();
|
// 判断是不是可以使用
|
||||||
|
List<Software> software = await _dbContext.Software.Where(x => x.IsUse).ToListAsync();
|
||||||
|
|
||||||
bool isAdd = false;
|
bool isAdd = false;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user