|
@@ -1,53 +1,38 @@
|
|
|
package com.zhongzheng.controller.user;
|
|
|
|
|
|
-import java.time.LocalDateTime;
|
|
|
-import java.time.format.DateTimeFormatter;
|
|
|
-import java.util.*;
|
|
|
-import java.util.stream.Collectors;
|
|
|
-
|
|
|
-import cn.afterturn.easypoi.excel.entity.ExportParams;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
-import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
-import com.zhongzheng.common.core.domain.model.LoginUser;
|
|
|
+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.DateUtils;
|
|
|
-import com.zhongzheng.common.utils.ServletUtils;
|
|
|
-import com.zhongzheng.modules.bank.vo.QuestionImport;
|
|
|
-import com.zhongzheng.modules.base.vo.UserProfileExportGaiVo;
|
|
|
+import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
|
import com.zhongzheng.modules.exam.bo.ExamApplyGoodsQueryBo;
|
|
|
import com.zhongzheng.modules.exam.service.IExamApplyGoodsService;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamApplyGoodsVo;
|
|
|
-import com.zhongzheng.modules.exam.vo.ExamApplyVo;
|
|
|
-import com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo;
|
|
|
-import com.zhongzheng.modules.grade.vo.ClassPeriodStudentExportVo;
|
|
|
-import com.zhongzheng.modules.grade.vo.ClassStudentExportVo;
|
|
|
+import com.zhongzheng.modules.exam.vo.ExamSessionVo;
|
|
|
import com.zhongzheng.modules.user.bo.*;
|
|
|
-import com.zhongzheng.modules.user.domain.UserBankRecord;
|
|
|
import com.zhongzheng.modules.user.service.IUserExamGoodsService;
|
|
|
-import com.zhongzheng.modules.user.vo.*;
|
|
|
-import lombok.RequiredArgsConstructor;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-import com.zhongzheng.common.annotation.Log;
|
|
|
-import com.zhongzheng.common.core.controller.BaseController;
|
|
|
-import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
-import com.zhongzheng.common.enums.BusinessType;
|
|
|
import com.zhongzheng.modules.user.service.IUserSubscribeService;
|
|
|
-import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
|
-import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
+import com.zhongzheng.modules.user.vo.*;
|
|
|
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.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.time.format.DateTimeFormatter;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
/**
|
|
|
* 用户预约考试Controller
|
|
|
*
|
|
@@ -78,6 +63,16 @@ public class UserSubscribeController extends BaseController {
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据月份获取当月考试场次
|
|
|
+ */
|
|
|
+ @ApiOperation("根据月份获取当月考试场次")
|
|
|
+ @GetMapping("/session/{month}")
|
|
|
+ public AjaxResult<List<ExamSessionVo>> getExamSession(@PathVariable("month")Integer month) {
|
|
|
+ List<ExamSessionVo> list = iUserSubscribeService.getExamSession(month);
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 修改用户预约考试
|
|
|
*/
|