Test.EIImageViewer
he 2023-02-13 17:05:01 +08:00
parent d51a605f54
commit ec4b1c58ef
2 changed files with 4 additions and 1 deletions

View File

@ -51,6 +51,8 @@ namespace IRaCIS.Core.Application.ViewModel
public class DefaultShortcutKeyQuery
{
public int ImageToolType { get; set; }
public int? ShortcutKeyEnum { get; set; }
}
///<summary> DefaultShortcutKeyAddOrEdit 列表查询参数模型</summary>

View File

@ -37,7 +37,8 @@ namespace IRaCIS.Core.Application.Service
public async Task<List<DefaultShortcutKeyView>> GetDefaultShortcutKeyList(DefaultShortcutKeyQuery inQuery)
{
var defaultShortcutKey = await _defaultShortcutKeyRepository.Where(x => x.ImageToolType == inQuery.ImageToolType).ToListAsync();
var shortcutKeydic = await _dictionaryRepository.Where(x => x.Parent.Code == "ShortcutKey").ToListAsync();
var shortcutKeydic = await _dictionaryRepository.Where(x => x.Parent.Code == "ShortcutKey")
.WhereIf(inQuery.ShortcutKeyEnum!=null,x=>x.Code==inQuery.ShortcutKeyEnum.ToString()).ToListAsync();
List<DefaultShortcutKeyView> result = new List<DefaultShortcutKeyView>();