|
@@ -36,6 +36,7 @@ import com.zhongzheng.modules.exam.service.IExamKnowledgeService;
|
|
|
import com.zhongzheng.modules.goods.bo.BankGoodsExamAddBo;
|
|
|
import com.zhongzheng.modules.goods.bo.GoodsQueryBo;
|
|
|
import com.zhongzheng.modules.goods.bo.TodayExamTobVo;
|
|
|
+import com.zhongzheng.modules.goods.bo.TodayExamWeekRecordDetailVo;
|
|
|
import com.zhongzheng.modules.goods.domain.Goods;
|
|
|
import com.zhongzheng.modules.goods.domain.GoodsExamTime;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsExamTimeService;
|
|
@@ -1896,6 +1897,17 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
return voList.stream().sorted(Comparator.comparing(TodayExamTobVo::getRecordCount).reversed()).collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public TodayExamWeekRecordDetailVo getTodayExamWeekRecord(Long goodsId, Long userId) {
|
|
|
+ //获取每日一练的打卡记录
|
|
|
+ List<UserSpecialExamRecord> recordList = userSpecialExamRecordService
|
|
|
+ .list(new LambdaQueryWrapper<UserSpecialExamRecord>()
|
|
|
+ .eq(UserSpecialExamRecord::getUserId, userId)
|
|
|
+ .eq(UserSpecialExamRecord::getGoodsId, goodsId));
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
private String getPercent(Integer x,Integer y){
|
|
|
Double d1 = x * 1.0;
|
|
|
Double d2 = y * 1.0;
|