修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9e9db251c8
commit
4d7d42753f
|
|
@ -82,14 +82,24 @@ namespace IRaCIS.Core.Application.Service
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<object?> GetAutoCutNextTask()
|
public async Task<object> GetAutoCutNextTask()
|
||||||
{
|
{
|
||||||
|
var result = await _userRoleRepository.Where(x => x.Id == _userInfo.UserRoleId).Select(x => new
|
||||||
return await _userRoleRepository.Where(x => x.Id == _userInfo.UserRoleId).Select(x => new
|
|
||||||
{
|
{
|
||||||
AutoCutNextTask = x.AutoCutNextTask,
|
AutoCutNextTask = x.AutoCutNextTask,
|
||||||
IsDoubleScreen = x.IsDoubleScreen,
|
IsDoubleScreen = x.IsDoubleScreen,
|
||||||
}).FirstOrDefaultAsync();
|
}).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
if (result == null)
|
||||||
|
{
|
||||||
|
return new
|
||||||
|
{
|
||||||
|
AutoCutNextTask = false,
|
||||||
|
IsDoubleScreen = false,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue