From d0191ea7bc8c25aed57168de6ceffa284c072f36 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Tue, 10 Feb 2026 09:09:40 +0800
Subject: [PATCH] 条款区分公司

---
 multi-system/src/main/java/com/gkhy/exam/system/service/impl/FactorControlServiceImpl.java |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/FactorControlServiceImpl.java b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/FactorControlServiceImpl.java
index 89aa777..03d1f25 100644
--- a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/FactorControlServiceImpl.java
+++ b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/FactorControlServiceImpl.java
@@ -8,10 +8,8 @@
 import com.gkhy.exam.common.utils.SecurityUtils;
 import com.gkhy.exam.system.domain.FactorContent;
 import com.gkhy.exam.system.domain.FactorControl;
-import com.gkhy.exam.system.domain.FactorDiscern;
 import com.gkhy.exam.system.mapper.FactorContentMapper;
 import com.gkhy.exam.system.mapper.FactorControlMapper;
-import com.gkhy.exam.system.mapper.FactorDiscernMapper;
 import com.gkhy.exam.system.service.FactorControlService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -76,13 +74,14 @@
     }
 
     @Override
-    public CommonResult deletedFactorControl(Integer factorControlId) {
+    public CommonResult deletedFactorControl(Integer factorControlId,Integer factorDiscrenId) {
         FactorControl factorControl = new FactorControl();
         factorControl.setId(factorControlId);
         factorControl.setUpdateTime(LocalDateTime.now());
         factorControl.setUpdateBy(SecurityUtils.getUsername());
         factorControl.setDelFlag(2);
         factorControlMapper.updateById(factorControl);
+        factorContentMapper.updateByFactorId(factorDiscrenId);
         return CommonResult.success();
     }
 }

--
Gitblit v1.9.2