理论试题管理代码调整
This commit is contained in:
parent
6f42bfbe9c
commit
016f6c8c48
@ -147,9 +147,10 @@ public class PagerQuestionService {
|
|||||||
*/
|
*/
|
||||||
public PaperQuestionVO getQuestion(Long questionId,boolean doNotCheckDel,boolean random) {
|
public PaperQuestionVO getQuestion(Long questionId,boolean doNotCheckDel,boolean random) {
|
||||||
PaperQuestionWithBLOBs question = questionDAO.selectByPrimaryKey(questionId);
|
PaperQuestionWithBLOBs question = questionDAO.selectByPrimaryKey(questionId);
|
||||||
boolean isDel = Objects.nonNull(question) || question.getIsDel() == BusinessConsts.DBLogicDelete.NORMAL.ordinal();
|
BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(Objects.nonNull(question),"没有找到对应的数据");
|
||||||
|
boolean isDel = question.getIsDel() == BusinessConsts.DBLogicDelete.NORMAL.ordinal();
|
||||||
if(doNotCheckDel){
|
if(doNotCheckDel){
|
||||||
isDel = Objects.nonNull(question);
|
isDel = true;
|
||||||
}
|
}
|
||||||
BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(isDel);
|
BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(isDel);
|
||||||
PaperQuestionVO questionVO = new PaperQuestionVO(question);
|
PaperQuestionVO questionVO = new PaperQuestionVO(question);
|
||||||
|
Loading…
Reference in New Issue
Block a user