From c95d04de9c717a491135aa76c9107c88dc9c7e6c Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期三, 03 十二月 2025 16:53:34 +0800
Subject: [PATCH] 修改权限

---
 multi-system/src/main/java/com/gkhy/exam/system/service/impl/DocumentChangesInvalidatedServiceImpl.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/DocumentChangesInvalidatedServiceImpl.java b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/DocumentChangesInvalidatedServiceImpl.java
index 4be7a50..5a35e92 100644
--- a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/DocumentChangesInvalidatedServiceImpl.java
+++ b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/DocumentChangesInvalidatedServiceImpl.java
@@ -6,6 +6,7 @@
 import com.gkhy.exam.common.api.CommonPage;
 import com.gkhy.exam.common.api.CommonResult;
 import com.gkhy.exam.common.constant.UserConstant;
+import com.gkhy.exam.common.domain.entity.SysDept;
 import com.gkhy.exam.common.utils.PageUtils;
 import com.gkhy.exam.common.utils.SecurityUtils;
 import com.gkhy.exam.system.domain.AnnualVerificationPlan;
@@ -15,6 +16,7 @@
 import com.gkhy.exam.system.mapper.DocumentChangesInvalidatedEvaluateMapper;
 import com.gkhy.exam.system.mapper.DocumentChangesInvalidatedIssueMapper;
 import com.gkhy.exam.system.mapper.DocumentChangesInvalidatedMapper;
+import com.gkhy.exam.system.mapper.SysDeptMapper;
 import com.gkhy.exam.system.service.DocumentChangesInvalidatedService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -43,6 +45,10 @@
 
     @Autowired
     private DocumentChangesInvalidatedEvaluateMapper documentChangesInvalidatedEvaluateMapper;
+
+
+    @Autowired
+    private SysDeptMapper sysDeptMapper;
 
     @Override
     public CommonPage selectDocumentChangesInvalidatedList(DocumentChangesInvalidated documentChangesInvalidated) {
@@ -126,6 +132,8 @@
     public CommonResult getDocumentChangesInvalidated(Long id) {
         DocumentChangesInvalidated documentChangesInvalidated = documentChangesInvalidatedMapper.selectById(id);
         if (documentChangesInvalidated != null){
+            SysDept sysDept = sysDeptMapper.selectDeptById(documentChangesInvalidated.getDeptId());
+            documentChangesInvalidated.setDeptName(sysDept.getDeptName());
 
             List<DocumentChangesInvalidatedIssue> documentChangesInvalidatedIssues = documentChangesInvalidatedIssueMapper.selectList(new LambdaQueryWrapper<>(DocumentChangesInvalidatedIssue.class)
                     .eq(DocumentChangesInvalidatedIssue::getDocumentChangesId, id)

--
Gitblit v1.9.2