From 44036f6e3f4d443d58f594774ef89221f7a87036 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Mon, 02 Feb 2026 17:28:34 +0800
Subject: [PATCH] 增加初始化数据

---
 multi-system/src/main/java/com/gkhy/exam/system/service/impl/DocumentChangesInvalidatedServiceImpl.java |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 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..f1beb33 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
@@ -3,20 +3,21 @@
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
 import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 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;
 import com.gkhy.exam.system.domain.DocumentChangesInvalidated;
 import com.gkhy.exam.system.domain.DocumentChangesInvalidatedEvaluate;
 import com.gkhy.exam.system.domain.DocumentChangesInvalidatedIssue;
 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;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
@@ -43,6 +44,10 @@
 
     @Autowired
     private DocumentChangesInvalidatedEvaluateMapper documentChangesInvalidatedEvaluateMapper;
+
+
+    @Autowired
+    private SysDeptMapper sysDeptMapper;
 
     @Override
     public CommonPage selectDocumentChangesInvalidatedList(DocumentChangesInvalidated documentChangesInvalidated) {
@@ -126,6 +131,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