分享题库功能完善
This commit is contained in:
parent
d4bc968131
commit
1ee6daa866
|
@ -277,7 +277,7 @@ public class QuestionController {
|
|||
List<Integer> selectQuestionId=(List<Integer>) addInfo.get("selectQuestionId");
|
||||
Integer userId =(Integer) addInfo.get("userId");
|
||||
|
||||
String result = sharedQuestionService.addShardQuestions(sharedBankId, selectQuestionId, userId);
|
||||
String result = sharedQuestionService.addSharedQuestions(sharedBankId, selectQuestionId, userId);
|
||||
|
||||
if(result.equals("已存在添加题库中")){
|
||||
return R.success("分享成功");
|
||||
|
|
|
@ -3,5 +3,17 @@ package com.yzdx.AiInterviewer.service;
|
|||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.yzdx.AiInterviewer.entity.SharedQuestion;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SharedQuestionService extends IService<SharedQuestion> {
|
||||
|
||||
/**
|
||||
* 增加题目
|
||||
* @param sharedBankId 分享题库id
|
||||
* @param selectQuestionId 分享题目的id
|
||||
* @param userId 分享人
|
||||
* @return 影响的行数
|
||||
*
|
||||
* */
|
||||
String addSharedQuestions(Integer sharedBankId, List<Integer> selectQuestionId,Integer userId);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||
import com.yzdx.AiInterviewer.entity.Question;
|
||||
import com.yzdx.AiInterviewer.entity.SharedQuestion;
|
||||
import com.yzdx.AiInterviewer.mapper.QuestionMapper;
|
||||
import com.yzdx.AiInterviewer.mapper.SharedQuestionBankMapper;
|
||||
import com.yzdx.AiInterviewer.mapper.SharedQuestionMapper;
|
||||
import com.yzdx.AiInterviewer.service.SharedQuestionService;
|
||||
import com.yzdx.AiInterviewer.utiles.TimeUtil;
|
||||
|
@ -24,7 +23,7 @@ public class SharedQuestionServiceImpl extends ServiceImpl<SharedQuestionMapper,
|
|||
private SharedQuestionMapper sharedQuestionMapper;
|
||||
|
||||
@Override
|
||||
public String addShardQuestions(Integer sharedBankId, List<Integer> selectQuestionId, Integer userId) {
|
||||
public String addSharedQuestions(Integer sharedBankId, List<Integer> selectQuestionId, Integer userId) {
|
||||
|
||||
String errorQuestion="";
|
||||
|
||||
|
|
Loading…
Reference in New Issue