From 1aedfb344258702ffcc3c76dd00fcd12a4cf99b3 Mon Sep 17 00:00:00 2001 From: "xiaodong.hu" <1075471126@qq.com> Date: Thu, 20 Jul 2023 14:39:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A8=BD=E6=A0=B8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2swagger=E4=B8=8D=E8=BF=94=E5=9B=9Edata=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store/request/GetInterviewInspectionListReq.java | 3 +++ .../com/cool/store/controller/AuditResultController.java | 4 +++- .../store/controller/InterviewInspectionController.java | 9 ++++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/coolstore-partner-model/src/main/java/com/cool/store/request/GetInterviewInspectionListReq.java b/coolstore-partner-model/src/main/java/com/cool/store/request/GetInterviewInspectionListReq.java index 8d0cf0fd7..93eec46c2 100644 --- a/coolstore-partner-model/src/main/java/com/cool/store/request/GetInterviewInspectionListReq.java +++ b/coolstore-partner-model/src/main/java/com/cool/store/request/GetInterviewInspectionListReq.java @@ -38,4 +38,7 @@ public class GetInterviewInspectionListReq extends PageBasicInfo { private String endTime; + private String userId; + + } diff --git a/coolstore-partner-webb/src/main/java/com/cool/store/controller/AuditResultController.java b/coolstore-partner-webb/src/main/java/com/cool/store/controller/AuditResultController.java index e37152dc3..74bd56cef 100644 --- a/coolstore-partner-webb/src/main/java/com/cool/store/controller/AuditResultController.java +++ b/coolstore-partner-webb/src/main/java/com/cool/store/controller/AuditResultController.java @@ -4,6 +4,7 @@ import com.cool.store.request.GetInterviewInspectionResultListReq; import com.cool.store.response.ResponseResult; import com.cool.store.service.InterviewInspectionService; import com.cool.store.vo.interview.InterviewInspectionResultVO; +import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -35,7 +36,8 @@ public class AuditResultController { */ @PostMapping("/getList") @ApiOperation("获取面试稽核结果列表") - public ResponseResult interviewInspectionResultGetList(GetInterviewInspectionResultListReq request) { + public ResponseResult> interviewInspectionResultGetList(GetInterviewInspectionResultListReq request) { + PageHelper.startPage(request.getPageNum(), request.getPageSize()); List interviewInspectionResultGetList = interviewInspectionService.interviewInspectionResultGetList(request); return ResponseResult.success(new PageInfo<>(interviewInspectionResultGetList)); } diff --git a/coolstore-partner-webb/src/main/java/com/cool/store/controller/InterviewInspectionController.java b/coolstore-partner-webb/src/main/java/com/cool/store/controller/InterviewInspectionController.java index c1b3b3de2..11962780b 100644 --- a/coolstore-partner-webb/src/main/java/com/cool/store/controller/InterviewInspectionController.java +++ b/coolstore-partner-webb/src/main/java/com/cool/store/controller/InterviewInspectionController.java @@ -10,9 +10,11 @@ import com.cool.store.vo.interview.GetInterviewInspectionHistoryListVO; import com.cool.store.vo.interview.InterviewInspectionHistoryInfo; import com.cool.store.vo.interview.InterviewInspectionInfo; import com.cool.store.vo.interview.InterviewInspectionVO; +import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -54,7 +56,8 @@ public class InterviewInspectionController { */ @PostMapping("/getList") @ApiOperation("获取面试稽核列表") - public ResponseResult interviewInspectionGetList(GetInterviewInspectionListReq request) { + public ResponseResult> interviewInspectionGetList(GetInterviewInspectionListReq request) { + PageHelper.startPage(request.getPageNum(), request.getPageSize()); List interviewInspectionVOList = interviewInspectionService.interviewInspectionGetList(request); return ResponseResult.success(new PageInfo<>(interviewInspectionVOList)); } @@ -68,7 +71,7 @@ public class InterviewInspectionController { */ @GetMapping("/getDetail") @ApiOperation("获取面试稽核详情信息") - public ResponseResult interviewInspectionGetDetail(@RequestParam("id") Long id) { + public ResponseResult interviewInspectionGetDetail(@RequestParam("id") Long id) { InterviewInspectionInfo interviewInspectionInfo = interviewInspectionService.interviewInspectionGetDetail(id); return ResponseResult.success(interviewInspectionInfo); } @@ -81,7 +84,7 @@ public class InterviewInspectionController { */ @GetMapping("/getHistoryDetail") @ApiOperation("稽核历史结果查看") - public ResponseResult interviewInspectionGetHistoryDetail(@RequestParam("id") Long id) { + public ResponseResult interviewInspectionGetHistoryDetail(@RequestParam("id") Long id) { List interviewInspectionHistoryInfos = interviewInspectionService.interviewInspectionGetHistoryDetail(id); return ResponseResult.success(new GetInterviewInspectionHistoryListVO().setInterviewInspectionHistoryInfos(interviewInspectionHistoryInfos)); }