From 5c663ec3e9d36ceac537f3e60486ab22fa6b92e6 Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Wed, 4 Jun 2025 10:50:28 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96?=
=?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=B1=BB=E5=9E=8B=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Common/DTO/FrontAuditConfigViewModel.cs | 21 +++++
.../Inspection/FrontAuditConfigService.cs | 76 ++++++++++++++++++-
2 files changed, 93 insertions(+), 4 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs
index 6b57d26ed..1519ab090 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs
@@ -3,6 +3,7 @@
// 生成时间 2022-03-28 16:43:52
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
+using DocumentFormat.OpenXml.Wordprocessing;
using IRaCIS.Core.Infra.EFCore.Common;
using System.ComponentModel.DataAnnotations;
@@ -63,6 +64,26 @@ namespace IRaCIS.Core.Application.ViewModel
}
+
+ public class ModuleTypeData
+ {
+
+ public bool IsShow { get; set; }
+
+ public Guid Id { get; set; }
+ public Guid? ParentId { get; set; }
+ public Guid DictionaryId { get; set; }
+
+ public int ShowOrder { get; set; }
+ public string DictionaryValue { get; set; }
+
+ }
+
+ public class GetModuleTypeListInDto
+ {
+ public Guid TrialId { get; set; }
+ }
+
///
/// 复制其他对象到当前对象
///
diff --git a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs
index bb34a6ed0..aa0b2edb5 100644
--- a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs
+++ b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs
@@ -7,6 +7,7 @@
using IRaCIS.Application.Contracts;
using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.ViewModel;
+using IRaCIS.Core.Domain.Models;
using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Infra.EFCore.Common;
using MassTransit;
@@ -15,6 +16,8 @@ using Microsoft.Data.SqlClient;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Npgsql;
+using NPOI.POIFS.Properties;
+using NPOI.SS.Formula.Functions;
namespace IRaCIS.Core.Application.Service
{
@@ -29,6 +32,7 @@ namespace IRaCIS.Core.Application.Service
IRepository _qCChallengeRepository,
IRepository _dictionaryRepository,
IRepository _trialRepository,
+ IRepository _trialAuditShowRepository,
IRepository _userRoleRepository,
IRepository _checkChallengeDialogRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IFrontAuditConfigService
@@ -1134,18 +1138,82 @@ namespace IRaCIS.Core.Application.Service
return ResponseOutput.Ok();
}
+ ///
+ /// 获取模块类型列表
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task