diff --git a/src/main/java/club/joylink/rtss/controller/paper/PaperCompositionController.java b/src/main/java/club/joylink/rtss/controller/paper/PaperCompositionController.java index ad44aaa2a..f863f58d4 100644 --- a/src/main/java/club/joylink/rtss/controller/paper/PaperCompositionController.java +++ b/src/main/java/club/joylink/rtss/controller/paper/PaperCompositionController.java @@ -83,6 +83,14 @@ public class PaperCompositionController { return this.compositionService.findPaperCompositionByPage(req); } + /** + * 根据试卷蓝图名称简介分页查找某个组织的试卷蓝图 + */ + @PostMapping("/find/page/for/{orgId}") + public PageVO findPaperCompositionForOrgByPage(@PathVariable("orgId") Long orgId, @RequestBody FindPaperCompositionPageReqVo req) { + req.setOrgId(orgId); + return this.compositionService.findPaperCompositionByPage(req); + } /** * 根据账户分页查找试卷蓝图 */ diff --git a/src/main/java/club/joylink/rtss/controller/paper/PaperUserController.java b/src/main/java/club/joylink/rtss/controller/paper/PaperUserController.java index 6bc55700d..4e8ecc7eb 100644 --- a/src/main/java/club/joylink/rtss/controller/paper/PaperUserController.java +++ b/src/main/java/club/joylink/rtss/controller/paper/PaperUserController.java @@ -118,4 +118,12 @@ public class PaperUserController { public List findPaperUserForAccount(@RequestBody FindPaperUserForAccountReqVo req, @RequestAttribute AccountVO user){ return this.paperUserFindPageService.findPaperUserForAccount(req); } + /** + * 查看组织的某个账户的某个试卷蓝图的用户试卷 + */ + @PostMapping("/{orgId}/user/list/account") + public List findOrgPaperUserForAccount(@PathVariable("orgId") Long orgId,@RequestBody FindPaperUserForAccountReqVo req, @RequestAttribute AccountVO user){ + req.setOrgId(orgId); + return this.paperUserFindPageService.findPaperUserForAccount(req); + } }