修复稽核查询swagger不返回data参数
This commit is contained in:
@@ -38,4 +38,7 @@ public class GetInterviewInspectionListReq extends PageBasicInfo {
|
|||||||
private String endTime;
|
private String endTime;
|
||||||
|
|
||||||
|
|
||||||
|
private String userId;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.cool.store.request.GetInterviewInspectionResultListReq;
|
|||||||
import com.cool.store.response.ResponseResult;
|
import com.cool.store.response.ResponseResult;
|
||||||
import com.cool.store.service.InterviewInspectionService;
|
import com.cool.store.service.InterviewInspectionService;
|
||||||
import com.cool.store.vo.interview.InterviewInspectionResultVO;
|
import com.cool.store.vo.interview.InterviewInspectionResultVO;
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
@@ -35,7 +36,8 @@ public class AuditResultController {
|
|||||||
*/
|
*/
|
||||||
@PostMapping("/getList")
|
@PostMapping("/getList")
|
||||||
@ApiOperation("获取面试稽核结果列表")
|
@ApiOperation("获取面试稽核结果列表")
|
||||||
public ResponseResult interviewInspectionResultGetList(GetInterviewInspectionResultListReq request) {
|
public ResponseResult<PageInfo<InterviewInspectionResultVO>> interviewInspectionResultGetList(GetInterviewInspectionResultListReq request) {
|
||||||
|
PageHelper.startPage(request.getPageNum(), request.getPageSize());
|
||||||
List<InterviewInspectionResultVO> interviewInspectionResultGetList = interviewInspectionService.interviewInspectionResultGetList(request);
|
List<InterviewInspectionResultVO> interviewInspectionResultGetList = interviewInspectionService.interviewInspectionResultGetList(request);
|
||||||
return ResponseResult.success(new PageInfo<>(interviewInspectionResultGetList));
|
return ResponseResult.success(new PageInfo<>(interviewInspectionResultGetList));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,9 +10,11 @@ import com.cool.store.vo.interview.GetInterviewInspectionHistoryListVO;
|
|||||||
import com.cool.store.vo.interview.InterviewInspectionHistoryInfo;
|
import com.cool.store.vo.interview.InterviewInspectionHistoryInfo;
|
||||||
import com.cool.store.vo.interview.InterviewInspectionInfo;
|
import com.cool.store.vo.interview.InterviewInspectionInfo;
|
||||||
import com.cool.store.vo.interview.InterviewInspectionVO;
|
import com.cool.store.vo.interview.InterviewInspectionVO;
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@@ -54,7 +56,8 @@ public class InterviewInspectionController {
|
|||||||
*/
|
*/
|
||||||
@PostMapping("/getList")
|
@PostMapping("/getList")
|
||||||
@ApiOperation("获取面试稽核列表")
|
@ApiOperation("获取面试稽核列表")
|
||||||
public ResponseResult interviewInspectionGetList(GetInterviewInspectionListReq request) {
|
public ResponseResult<PageInfo<InterviewInspectionVO>> interviewInspectionGetList(GetInterviewInspectionListReq request) {
|
||||||
|
PageHelper.startPage(request.getPageNum(), request.getPageSize());
|
||||||
List<InterviewInspectionVO> interviewInspectionVOList = interviewInspectionService.interviewInspectionGetList(request);
|
List<InterviewInspectionVO> interviewInspectionVOList = interviewInspectionService.interviewInspectionGetList(request);
|
||||||
return ResponseResult.success(new PageInfo<>(interviewInspectionVOList));
|
return ResponseResult.success(new PageInfo<>(interviewInspectionVOList));
|
||||||
}
|
}
|
||||||
@@ -68,7 +71,7 @@ public class InterviewInspectionController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/getDetail")
|
@GetMapping("/getDetail")
|
||||||
@ApiOperation("获取面试稽核详情信息")
|
@ApiOperation("获取面试稽核详情信息")
|
||||||
public ResponseResult interviewInspectionGetDetail(@RequestParam("id") Long id) {
|
public ResponseResult<InterviewInspectionInfo> interviewInspectionGetDetail(@RequestParam("id") Long id) {
|
||||||
InterviewInspectionInfo interviewInspectionInfo = interviewInspectionService.interviewInspectionGetDetail(id);
|
InterviewInspectionInfo interviewInspectionInfo = interviewInspectionService.interviewInspectionGetDetail(id);
|
||||||
return ResponseResult.success(interviewInspectionInfo);
|
return ResponseResult.success(interviewInspectionInfo);
|
||||||
}
|
}
|
||||||
@@ -81,7 +84,7 @@ public class InterviewInspectionController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/getHistoryDetail")
|
@GetMapping("/getHistoryDetail")
|
||||||
@ApiOperation("稽核历史结果查看")
|
@ApiOperation("稽核历史结果查看")
|
||||||
public ResponseResult interviewInspectionGetHistoryDetail(@RequestParam("id") Long id) {
|
public ResponseResult<GetInterviewInspectionHistoryListVO> interviewInspectionGetHistoryDetail(@RequestParam("id") Long id) {
|
||||||
List<InterviewInspectionHistoryInfo> interviewInspectionHistoryInfos = interviewInspectionService.interviewInspectionGetHistoryDetail(id);
|
List<InterviewInspectionHistoryInfo> interviewInspectionHistoryInfos = interviewInspectionService.interviewInspectionGetHistoryDetail(id);
|
||||||
return ResponseResult.success(new GetInterviewInspectionHistoryListVO().setInterviewInspectionHistoryInfos(interviewInspectionHistoryInfos));
|
return ResponseResult.success(new GetInterviewInspectionHistoryListVO().setInterviewInspectionHistoryInfos(interviewInspectionHistoryInfos));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user