|
@@ -22,6 +22,8 @@ import com.zhongzheng.modules.goods.service.IGoodsAuditionConfigService;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsAttachedVo;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
+import com.zhongzheng.modules.grade.bo.UserPeriodQueryBo;
|
|
|
+import com.zhongzheng.modules.grade.service.IUserPeriodService;
|
|
|
import com.zhongzheng.modules.user.bo.UserExamRecordQueryBo;
|
|
|
import com.zhongzheng.modules.user.bo.UserExamWrongRecordQueryBo;
|
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
@@ -66,6 +68,8 @@ public class GoodsController extends BaseController {
|
|
|
|
|
|
private final IQuestionChapterExamService iQuestionChapterExamService;
|
|
|
|
|
|
+ private final IUserPeriodService iUserPeriodService;
|
|
|
+
|
|
|
/**
|
|
|
* 获取商品详细信息
|
|
|
*/
|
|
@@ -161,4 +165,16 @@ public class GoodsController extends BaseController {
|
|
|
List<ExamVo> list = iQuestionChapterExamService.getDoList(bo);
|
|
|
return AjaxResult.success(list);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询用户商品今天学习节数
|
|
|
+ */
|
|
|
+ @ApiOperation("查询用户商品今天学习节数")
|
|
|
+ @GetMapping("/todayStudySectionNum")
|
|
|
+ public AjaxResult<Long> todayStudySectionNum(UserPeriodQueryBo bo) {
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
|
+ return AjaxResult.success(iUserPeriodService.todayStudySectionNum(bo));
|
|
|
+ }
|
|
|
+
|
|
|
}
|