Uat_Study
parent
791e61c3e4
commit
9e719f5158
|
@ -14,10 +14,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
{
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 类型枚举
|
||||
///// </summary>
|
||||
//public OrganType OrganType { get; set; }
|
||||
|
||||
|
||||
public List<Guid> OrganIds { get; set; }
|
||||
}
|
||||
|
@ -30,7 +27,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
public string Part { get; set; }
|
||||
public string TULOC { get; set; }
|
||||
public string TULAT { get; set; }
|
||||
public string TypeName { get; set; }
|
||||
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
@ -67,7 +64,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
public string? Part { get; set; }
|
||||
public string? TULOC { get; set; }
|
||||
public string? TULAT { get; set; }
|
||||
public string? TypeName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 类型枚举
|
||||
|
@ -83,8 +80,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
///<summary>OrganInfoQuery 列表查询参数模型</summary>
|
||||
public class OrganInfoQuery
|
||||
{
|
||||
///<summary> 类型名称</summary>
|
||||
public string? TypeName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 类型枚举
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
public async Task<List<OrganInfoView>> GetOrganInfoList(OrganInfoQuery inQuery)
|
||||
{
|
||||
var organInfoQueryable = _organInfoRepository
|
||||
.WhereIf(!inQuery.TypeName.IsNullOrEmpty(),x=>x.TypeName==inQuery.TypeName)
|
||||
|
||||
.WhereIf(inQuery.OrganType!=null, x => x.OrganType == inQuery.OrganType)
|
||||
.ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider);
|
||||
return await organInfoQueryable.ToListAsync();
|
||||
|
@ -129,7 +129,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
Part = data.Part,
|
||||
TULAT = data.TULAT,
|
||||
TULOC = data.TULOC,
|
||||
TypeName = data.TypeName,
|
||||
|
||||
Remark= data.Remark,
|
||||
OrganType=data.OrganType,
|
||||
};
|
||||
|
@ -159,7 +159,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
Part = data.Part,
|
||||
TULAT = data.TULAT,
|
||||
TULOC = data.TULOC,
|
||||
TypeName = data.TypeName,
|
||||
|
||||
IsCheckd= leftjoin!=null,
|
||||
Remark = data.Remark,
|
||||
OrganType=data.OrganType,
|
||||
|
|
Loading…
Reference in New Issue