| | |
| | | package com.ruoyi.study.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.constant.Constants; |
| | | import com.ruoyi.study.domain.TGame; |
| | |
| | | // 游戏难度 |
| | | GAME_DIFFICULTY_MAP.put(Constants.ZERO, Constants.ONE); |
| | | GAME_DIFFICULTY_MAP.put(Constants.ONE, Constants.TWO); |
| | | } |
| | | |
| | | @Override |
| | | public TUserStudy studySchedule(String userId) { |
| | | LambdaQueryChainWrapper<TUserStudy> wrapper = lambdaQuery().eq(TUserStudy::getUserId, userId); |
| | | return wrapper.eq(TUserStudy::getDisabled, 0).one(); |
| | | } |
| | | |
| | | @Override |