Commit 0aa19f77 by 郑云飞

随机生成试卷

parent befb0951
......@@ -210,7 +210,7 @@ public class DbQuestionBankServiceImpl implements IDbQuestionBankService {
*/
@Override
public void init() {
List<DbQuestionBank> dbQuestionBanks = baseMapper.selectList();
List<DbQuestionBank> dbQuestionBanks = baseMapper.selectList(Wrappers.<DbQuestionBank>lambdaQuery().eq(DbQuestionBank::getStatus, 0));
RedisUtils.setCacheObject("question_bank:default_question_bank", JsonUtils.toJsonString(dbQuestionBanks));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment