|
@@ -5,6 +5,8 @@ import com.zhongzheng.common.core.controller.BaseController;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
|
|
+import com.zhongzheng.common.utils.ServletUtils;
|
|
|
|
+import com.zhongzheng.framework.web.service.WxTokenService;
|
|
import com.zhongzheng.modules.exam.bo.*;
|
|
import com.zhongzheng.modules.exam.bo.*;
|
|
import com.zhongzheng.modules.exam.service.IExamBeforeGoodsService;
|
|
import com.zhongzheng.modules.exam.service.IExamBeforeGoodsService;
|
|
import com.zhongzheng.modules.exam.service.IExamBeforeService;
|
|
import com.zhongzheng.modules.exam.service.IExamBeforeService;
|
|
@@ -12,6 +14,7 @@ import com.zhongzheng.modules.exam.service.IExamBeforeUrlService;
|
|
import com.zhongzheng.modules.exam.vo.ExamBeforeUrlVo;
|
|
import com.zhongzheng.modules.exam.vo.ExamBeforeUrlVo;
|
|
import com.zhongzheng.modules.exam.vo.ExamBeforeVo;
|
|
import com.zhongzheng.modules.exam.vo.ExamBeforeVo;
|
|
import com.zhongzheng.modules.exam.vo.ExamNumberGoodsVo;
|
|
import com.zhongzheng.modules.exam.vo.ExamNumberGoodsVo;
|
|
|
|
+import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -23,7 +26,7 @@ import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 前培安排Controller
|
|
* 前培安排Controller
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @author ruoyi
|
|
* @author ruoyi
|
|
* @date 2021-12-07
|
|
* @date 2021-12-07
|
|
*/
|
|
*/
|
|
@@ -36,6 +39,7 @@ public class ExamBeforeController extends BaseController {
|
|
private final IExamBeforeService iExamBeforeService;
|
|
private final IExamBeforeService iExamBeforeService;
|
|
private final IExamBeforeUrlService iExamBeforeUrlService;
|
|
private final IExamBeforeUrlService iExamBeforeUrlService;
|
|
private final IExamBeforeGoodsService iExamBeforeGoodsService;
|
|
private final IExamBeforeGoodsService iExamBeforeGoodsService;
|
|
|
|
+ private final WxTokenService wxTokenService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取前培安排详细信息
|
|
* 获取前培安排详细信息
|
|
@@ -43,6 +47,8 @@ public class ExamBeforeController extends BaseController {
|
|
@ApiOperation("获得刷题地址")
|
|
@ApiOperation("获得刷题地址")
|
|
@GetMapping("/address")
|
|
@GetMapping("/address")
|
|
public AjaxResult<ExamBeforeVo> getAddressInfo(ExamBeforeQueryBo examBeforeQueryBo) {
|
|
public AjaxResult<ExamBeforeVo> getAddressInfo(ExamBeforeQueryBo examBeforeQueryBo) {
|
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
|
+ examBeforeQueryBo.setUserId(loginUser.getUser().getUserId());
|
|
return AjaxResult.success(iExamBeforeService.getAddressInfo(examBeforeQueryBo));
|
|
return AjaxResult.success(iExamBeforeService.getAddressInfo(examBeforeQueryBo));
|
|
}
|
|
}
|
|
}
|
|
}
|