diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index 851952723..fda29c5ae 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -738,6 +738,13 @@ + + + 批量更新状态和发布版本 + + + + PublishLogService diff --git a/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs index c6b7567b3..8aa5e7e0c 100644 --- a/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs +++ b/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs @@ -45,6 +45,9 @@ namespace IRaCIS.Core.Application.ViewModel public string FrontType { get; set; } = string.Empty; public int InternationalizationType { get; set; } + public string Module { get; set; } = string.Empty; + //关联版本历史记录表Id + public Guid? PublishLogId { get; set; } } public class BatchAddInternationalization @@ -64,16 +67,29 @@ namespace IRaCIS.Core.Application.ViewModel public string Value { get; set; } = string.Empty; public string FrontType { get; set; } = string.Empty; public string ValueCN { get; set; } = string.Empty; + + public string Module { get; set; } = string.Empty; + //关联版本历史记录表Id + public Guid? PublishLogId { get; set; } } public class BatchAddInternationalizationDto : BatchInternationalizationDto { - + } - public class InternationalizationSimpleDto: BatchInternationalizationDto + public class InternationalizationSimpleDto : BatchInternationalizationDto { - + + } + + public class BatchUpdateInfoCommand + { + public List IdList { get; set; } + + public Guid? PublishLogId { get; set; } + + public int State { get; set; } } } diff --git a/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs b/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs index ff6b43a4c..f3c18f9d3 100644 --- a/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs +++ b/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs @@ -202,6 +202,19 @@ namespace IRaCIS.Core.Application.Service return ResponseOutput.Ok(); } + /// + /// 批量更新状态和发布版本 + /// + /// + /// + [HttpPut] + public async Task BatchUpdateInternationalInfo(BatchUpdateInfoCommand inCommand) + { + await _internationalizationRepository.BatchUpdateNoTrackingAsync(t => inCommand.IdList.Contains(t.Id), t => new Internationalization() { State = inCommand.State, PublishLogId = inCommand.PublishLogId }); + + return ResponseOutput.Ok(); + } + } } diff --git a/IRaCIS.Core.Domain/Common/Internationalization.cs b/IRaCIS.Core.Domain/Common/Internationalization.cs index e4a7be5e9..6d7a9e864 100644 --- a/IRaCIS.Core.Domain/Common/Internationalization.cs +++ b/IRaCIS.Core.Domain/Common/Internationalization.cs @@ -45,6 +45,13 @@ namespace IRaCIS.Core.Domain.Models public string FrontType { get; set; }=string.Empty; + + public string Module { get; set; } = string.Empty; + //关联版本历史记录表Id + public Guid? PublishLogId { get; set; } + + + } }