添加查询参数
This commit is contained in:
@@ -100,6 +100,9 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||
public string Identification { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public class CopyOtherToThisItem
|
||||
{
|
||||
public List<Guid?> DataSource { get; set; }=new List<Guid?>(){ };
|
||||
@@ -107,6 +110,11 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||
public Guid AddItem { get; set; }
|
||||
}
|
||||
|
||||
public class GetDescriptionByModuleTypeDto
|
||||
{
|
||||
public string ModuleType { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
///<summary>FrontAuditConfigQuery 列表查询参数模型</summary>
|
||||
public class FrontAuditConfigQuery
|
||||
{
|
||||
|
||||
@@ -110,13 +110,20 @@ namespace IRaCIS.Core.Application.Service
|
||||
await _repository.SaveChangesAsync();
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取Description
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<string>> GetDescriptionByModuleType(GetDescriptionByModuleTypeDto dto)
|
||||
{
|
||||
var result= await _frontAuditConfigRepository.Where(x=>x.ModuleTypeId== dto.ModuleType&&x.Description!=null &&x.Description!=string.Empty).Select(x=>x.Description).Distinct().ToListAsync();
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取列表
|
||||
|
||||
Reference in New Issue
Block a user