稽查修改
parent
32e23ca0a2
commit
372ee55241
|
|
@ -449,6 +449,12 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
|||
public List<GetTrialShowInspectionOutDto> Children { get; set; }
|
||||
}
|
||||
|
||||
public class InspectionDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string? JsonDetail { get; set; }
|
||||
}
|
||||
|
||||
public class SetTrialShowInspection
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,6 +27,39 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
|||
IRepository<FrontAuditConfig> _frontAuditConfigRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IInspectionService
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id获取稽查记录
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> getInspectionById(InspectionDto inDto)
|
||||
{
|
||||
var dataInspection = await _dataInspectionRepository.Select(x=> new InspectionDto()
|
||||
{
|
||||
Id=x.Id,
|
||||
JsonDetail = x.JsonDetail,
|
||||
|
||||
}).FirstOrDefaultAsync();
|
||||
|
||||
return ResponseOutput.Ok(dataInspection);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 设置稽查记录JsonDetail
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> SetJsonDetail(InspectionDto inDto)
|
||||
{
|
||||
await _dataInspectionRepository.BatchUpdateNoTrackingAsync(x => x.Id == inDto.Id, u => new DataInspection() { JsonDetail = inDto.JsonDetail });
|
||||
|
||||
return ResponseOutput.Ok(inDto);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置项目稽查配置
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue