|
@@ -66,8 +66,12 @@ public class ExportStructureController {
|
|
|
|
|
|
@ApiOperation(value="根据考试ID查询导出结构",notes="根据考试ID查询导出结构")
|
|
@ApiOperation(value="根据考试ID查询导出结构",notes="根据考试ID查询导出结构")
|
|
@GetMapping(value="/findExportStructure/{examId}")
|
|
@GetMapping(value="/findExportStructure/{examId}")
|
|
- public ResponseEntity findExportStructureByExamTypeAndExamId(@PathVariable String examId){
|
|
|
|
- ExportStructure exportStructure = exportStructureService.findByExportStructure(new ExportStructure(examId));
|
|
|
|
|
|
+ public ResponseEntity findExportStructure(HttpServletRequest request,@PathVariable String examId){
|
|
|
|
+ AccessUser user = (AccessUser) request.getAttribute("accessUser");
|
|
|
|
+ ExportStructure condition = new ExportStructure();
|
|
|
|
+ condition.setOrgId(user.getRootOrgId()+"");
|
|
|
|
+ condition.setExamId(examId);
|
|
|
|
+ ExportStructure exportStructure = exportStructureService.findByExportStructure(condition);
|
|
return new ResponseEntity(exportStructure,HttpStatus.OK);
|
|
return new ResponseEntity(exportStructure,HttpStatus.OK);
|
|
}
|
|
}
|
|
|
|
|