From ab84e66fe4eeac8a961d49bd9cbaab6fb89fbea1 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 24 Jun 2024 10:51:23 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../IRaCIS.Core.Application.xml | 7 ++++++
.../DTO/InternationalizationViewModel.cs | 22 ++++++++++++++++---
.../Common/InternationalizationService.cs | 13 +++++++++++
.../Common/Internationalization.cs | 7 ++++++
4 files changed, 46 insertions(+), 3 deletions(-)
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; }
+
+
+
}
}