|
@@ -436,5 +436,31 @@ public class PaperController {
|
|
return new ResponseEntity(paperService.selectQuestionsToPaper(paperId, paperDetailId, questions,user),HttpStatus.OK);
|
|
return new ResponseEntity(paperService.selectQuestionsToPaper(paperId, paperDetailId, questions,user),HttpStatus.OK);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param request
|
|
|
|
+ * @param paperSearchInfo
|
|
|
|
+ * @param ids
|
|
|
|
+ * @param curPage
|
|
|
|
+ * @param pageSize
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "查询所有导入试卷(not in paperIds)", notes = "查询所有导入试卷(not in paperIds)")
|
|
|
|
+ @GetMapping(value = "/importPaper/{ids}/{curPage}/{pageSize}")
|
|
|
|
+ public ResponseEntity getImportPapersNotInIds( HttpServletRequest request,
|
|
|
|
+ @ModelAttribute PaperSearchInfo paperSearchInfo,
|
|
|
|
+ @PathVariable String[] ids,
|
|
|
|
+ @PathVariable int curPage,
|
|
|
|
+ @PathVariable int pageSize) {
|
|
|
|
+ AccessUser user = (AccessUser) request.getAttribute("accessUser");
|
|
|
|
+ paperSearchInfo.setOrgId(user.getOrgId().toString());
|
|
|
|
+ if(ids !=null && ids.length > 0){
|
|
|
|
+ return new ResponseEntity(paperService.getImportPapersNotInIds(paperSearchInfo,ids,curPage, pageSize), HttpStatus.OK);
|
|
|
|
+ } else {
|
|
|
|
+ return new ResponseEntity(paperService.getImportPapersNotSuccess(paperSearchInfo, curPage, pageSize), HttpStatus.OK);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|