|
@@ -1,7 +1,10 @@
|
|
|
package com.zhongzheng.controller.course;
|
|
|
|
|
|
+import com.zhongzheng.common.annotation.Log;
|
|
|
import com.zhongzheng.common.core.controller.BaseController;
|
|
|
+import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
+import com.zhongzheng.common.enums.BusinessType;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.framework.web.service.*;
|
|
|
import com.zhongzheng.framework.web.service.WxTokenService;
|
|
@@ -14,15 +17,14 @@ import com.zhongzheng.modules.goods.vo.GoodsPeriodVo;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
import com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo;
|
|
|
import com.zhongzheng.modules.user.bo.UserPlanQueryBo;
|
|
|
+import com.zhongzheng.modules.user.bo.UserSubscribeCertificateEditBo;
|
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
@@ -47,7 +49,6 @@ public class CoursePeriodController extends BaseController {
|
|
|
* 查询用户拥有商品的学时记录
|
|
|
*/
|
|
|
@ApiOperation("查询用户拥有商品的学时记录")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:plan:list')")
|
|
|
@GetMapping("/listGoods")
|
|
|
public TableDataInfo<GoodsPeriodVo> listGoods(UserPlanQueryBo bo) {
|
|
|
ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
@@ -60,8 +61,7 @@ public class CoursePeriodController extends BaseController {
|
|
|
* 查询学习计划列表
|
|
|
*/
|
|
|
@ApiOperation("查看班级作弊重学详细情况")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:plan:list')")
|
|
|
- @GetMapping("/listSection")
|
|
|
+ @GetMapping("/cheat")
|
|
|
public TableDataInfo<GoodsPeriodStatusVo> listSection(ClassGradeUserQueryBo bo) {
|
|
|
ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
bo.setUserId(loginUser.getUser().getUserId());
|
|
@@ -69,5 +69,15 @@ public class CoursePeriodController extends BaseController {
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 修改用户预约考试
|
|
|
+ */
|
|
|
+ @ApiOperation("确认重学")
|
|
|
+ @Log(title = "确认重学", businessType = BusinessType.UPDATE)
|
|
|
+ @PostMapping("rebuild")
|
|
|
+ public AjaxResult<Void> editRebuild(@RequestBody ClassGradeUserQueryBo bo) {
|
|
|
+ return toAjax(courseService.editRebuild(bo) ? 1 : 0);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|