xiangpei
2024-05-27 13a68df58b3f937db5ba6437c814bafdcd8d37f8
src/main/java/com/mindskip/xzs/service/impl/QuestionServiceImpl.java
@@ -139,7 +139,7 @@
        questionMapper.updateByPrimaryKeySelective(question);
        // 处理题目所属部门
        deptQuestionMapper.remove(question.getId(), model.getDeptIds());
        deptQuestionMapper.remove(question.getId());
        List<DeptQuestion> deptQuestions = model.getDeptIds().stream().map(deptId -> {
            DeptQuestion deptQuestion = new DeptQuestion();
            deptQuestion.setQuestionId(question.getId());