Uat_Study
he 2022-03-29 14:08:36 +08:00
parent d3ea27eb3e
commit 4c7fad02b2
3 changed files with 33 additions and 2 deletions

View File

@ -183,7 +183,7 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
/// <summary>
/// 子类
/// </summary>
public string ChildrenType { get; set; }
public string ChildrenType { get; set; } = string.Empty;
/// <summary>
/// 修改原因

View File

@ -70,7 +70,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
query = query.WhereIf(!dto.BlindName.IsNullOrEmpty(), x => x.BlindName == dto.BlindName)
.WhereIf(dto.IsSign != null, x => x.IsSign == dto.IsSign)
.WhereIf(dto.ChildrenType != null, x => x.ChildrenType == dto.ChildrenType)
.WhereIf(!dto.ChildrenType.IsNullOrEmpty(), x => x.ChildrenType == dto.ChildrenType)
.WhereIf(!dto.ModuleType.IsNullOrEmpty(), x => x.ModuleType == dto.ModuleType)
.WhereIf(!dto.OptType.IsNullOrEmpty(), x => x.OptType == dto.OptType)
.WhereIf(!dto.Reason.IsNullOrEmpty(), x => x.Reason == dto.Reason)

View File

@ -0,0 +1,31 @@
using AutoMapper;
using AutoMapper.EquivalencyExpression;
using IRaCIS.Application.Contracts;
using IRaCIS.Core.Application.Contracts;
using IRaCIS.Core.Application.Contracts.DTO;
using IRaCIS.Core.Application.Service.Inspection.DTO;
using IRaCIS.Core.Application.ViewModel;
using IRaCIS.Core.Domain.Models;
using IRaCIS.Core.Domain.Share;
namespace IRaCIS.Core.Application.Service
{
public class InspectionConfig : Profile
{
public InspectionConfig()
{
CreateMap<DataInspectionAddDTO, DataInspection>();
}
}
}