|
@@ -5,12 +5,15 @@ 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.common.utils.poi.ExcelUtil;
|
|
|
+import com.zhongzheng.framework.web.service.WxTokenService;
|
|
|
import com.zhongzheng.modules.mock.bo.MockApplyAddBo;
|
|
|
import com.zhongzheng.modules.mock.bo.MockApplyEditBo;
|
|
|
import com.zhongzheng.modules.mock.bo.MockApplyQueryBo;
|
|
|
import com.zhongzheng.modules.mock.service.IMockApplyService;
|
|
|
import com.zhongzheng.modules.mock.vo.MockApplyVo;
|
|
|
+import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -35,6 +38,8 @@ public class MockApplyController extends BaseController {
|
|
|
|
|
|
private final IMockApplyService iMockApplyService;
|
|
|
|
|
|
+ private final WxTokenService wxTokenService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询模考安排列表
|
|
|
*/
|
|
@@ -115,4 +120,17 @@ public class MockApplyController extends BaseController {
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询模考预约业务层次列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询模考预约业务层次列表")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:apply:list')")
|
|
|
+ @GetMapping("/listApplyBusiness")
|
|
|
+ public TableDataInfo<MockApplyVo> listApplyBusiness(MockApplyQueryBo bo) {
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
|
+ List<MockApplyVo> list = iMockApplyService.listApplyBusiness(bo);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
}
|