Ver Fonte

提交导出结构设置BUG

chenken há 8 anos atrás
pai
commit
edd0b52ab6

+ 6 - 2
cqb-paper/src/main/java/com/qmth/cqb/paper/web/ExportStructureController.java

@@ -66,8 +66,12 @@ public class ExportStructureController {
 	
 	@ApiOperation(value="根据考试ID查询导出结构",notes="根据考试ID查询导出结构")
 	@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);
 	}