feat:完成权限相关、全局配置、优化细节
This commit is contained in:
@@ -5,6 +5,7 @@ using Yi.Framework.Ddd.Dtos;
|
||||
using Yi.Framework.DictionaryManager.Entities;
|
||||
using Yi.Framework.DictionaryManager.Dtos.Dictionary;
|
||||
using Yi.Framework.Core.Attributes;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Yi.Framework.DictionaryManager
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace Yi.Framework.DictionaryManager
|
||||
|
||||
public override async Task<PagedResultDto<DictionaryGetListOutputDto>> GetListAsync(DictionaryGetListInputVo input)
|
||||
{
|
||||
int total = 0;
|
||||
RefAsync<int> total = 0;
|
||||
var entities = await _DbQueryable.WhereIF(input.DictType is not null, x => x.DictType == input.DictType)
|
||||
.WhereIF(input.DictLabel is not null, x => x.DictLabel!.Contains(input.DictLabel!))
|
||||
.WhereIF(input.State is not null, x => x.State == input.State)
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Yi.Framework.DictionaryManager
|
||||
public async override Task<PagedResultDto<DictionaryTypeGetListOutputDto>> GetListAsync(DictionaryTypeGetListInputVo input)
|
||||
{
|
||||
|
||||
int total = 0;
|
||||
RefAsync<int> total = 0;
|
||||
var entities = await _DbQueryable.WhereIF(input.DictName is not null, x => x.DictName.Contains(input.DictName!))
|
||||
.WhereIF(input.DictType is not null, x => x.DictType!.Contains(input.DictType!))
|
||||
.WhereIF(input.State is not null, x => x.State == input.State)
|
||||
|
||||
Reference in New Issue
Block a user