|
@@ -5,6 +5,8 @@ import cn.hutool.core.lang.Validator;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.extra.tokenizer.Word;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
import com.zhongzheng.common.constant.Constants;
|
|
|
import com.zhongzheng.common.core.domain.entity.SysUser;
|
|
|
import com.zhongzheng.common.core.redis.RedisCache;
|
|
@@ -15,10 +17,7 @@ import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.common.utils.ToolsUtils;
|
|
|
import com.zhongzheng.modules.alioss.service.OssService;
|
|
|
import com.zhongzheng.modules.bank.bo.*;
|
|
|
-import com.zhongzheng.modules.bank.domain.ExamQuestion;
|
|
|
-import com.zhongzheng.modules.bank.domain.Question;
|
|
|
-import com.zhongzheng.modules.bank.domain.QuestionBusiness;
|
|
|
-import com.zhongzheng.modules.bank.domain.QuestionModuleChapter;
|
|
|
+import com.zhongzheng.modules.bank.domain.*;
|
|
|
import com.zhongzheng.modules.bank.mapper.QuestionMapper;
|
|
|
import com.zhongzheng.modules.bank.service.IExamQuestionService;
|
|
|
import com.zhongzheng.modules.bank.service.IQuestionBusinessService;
|
|
@@ -1716,6 +1715,16 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public boolean batchDelQuestion(QuestionBatchDelBo bo) {
|
|
|
+ if (CollectionUtils.isEmpty(bo.getIds())){
|
|
|
+ throw new CustomException("题目ID不能为空");
|
|
|
+ }
|
|
|
+ return update(new LambdaUpdateWrapper<Question>()
|
|
|
+ .set(Question::getStatus,bo.getStatus())
|
|
|
+ .in(Question::getQuestionId,bo.getIds()));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private String removeNo(String txt) {
|
|
|
int intIndex = txt.indexOf("、");
|