From 372ee55241e4e3bc861545f0660edca99c7c09ce Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 30 Jul 2026 15:59:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Inspection/DTO/InspectionModel.cs | 6 ++++ .../Service/Inspection/InspectionService.cs | 33 +++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Inspection/DTO/InspectionModel.cs b/IRaCIS.Core.Application/Service/Inspection/DTO/InspectionModel.cs index 6c808bad0..52ce7513b 100644 --- a/IRaCIS.Core.Application/Service/Inspection/DTO/InspectionModel.cs +++ b/IRaCIS.Core.Application/Service/Inspection/DTO/InspectionModel.cs @@ -449,6 +449,12 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO public List Children { get; set; } } + public class InspectionDto + { + public Guid Id { get; set; } + + public string? JsonDetail { get; set; } + } public class SetTrialShowInspection { diff --git a/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs b/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs index 16c5e2e3f..925fa3912 100644 --- a/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs +++ b/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs @@ -27,6 +27,39 @@ namespace IRaCIS.Core.Application.Service.Inspection IRepository _frontAuditConfigRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IInspectionService { + /// + /// 根据Id获取稽查记录 + /// + /// + /// + [HttpPost] + public async Task getInspectionById(InspectionDto inDto) + { + var dataInspection = await _dataInspectionRepository.Select(x=> new InspectionDto() + { + Id=x.Id, + JsonDetail = x.JsonDetail, + + }).FirstOrDefaultAsync(); + + return ResponseOutput.Ok(dataInspection); + + } + + + /// + /// 设置稽查记录JsonDetail + /// + /// + /// + [HttpPost] + public async Task SetJsonDetail(InspectionDto inDto) + { + await _dataInspectionRepository.BatchUpdateNoTrackingAsync(x => x.Id == inDto.Id, u => new DataInspection() { JsonDetail = inDto.JsonDetail }); + + return ResponseOutput.Ok(inDto); + } + /// /// 设置项目稽查配置 /// From 8641a11b53b22f8aef87419f3f2f19e9587bec3d Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 30 Jul 2026 17:38:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IRaCIS.Core.Application.xml | 20 ++++++++++++++++--- .../Service/Inspection/InspectionService.cs | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index 6e76f3bf1..97d8edbb8 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -3284,6 +3284,20 @@ 批次Id + + + 根据Id获取稽查记录 + + + + + + + 设置稽查记录JsonDetail + + + + 设置项目稽查配置 @@ -17558,17 +17572,17 @@ - 质疑 + ���� - 一致性核查 + һ���Ժ˲� - 复制 + ���� diff --git a/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs b/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs index 925fa3912..111366a40 100644 --- a/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs +++ b/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs @@ -35,7 +35,7 @@ namespace IRaCIS.Core.Application.Service.Inspection [HttpPost] public async Task getInspectionById(InspectionDto inDto) { - var dataInspection = await _dataInspectionRepository.Select(x=> new InspectionDto() + var dataInspection = await _dataInspectionRepository.Where(x=>x.Id==inDto.Id).Select(x=> new InspectionDto() { Id=x.Id, JsonDetail = x.JsonDetail,