From ed281c204096da9c241807ac7b6c4b51c1191595 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Tue, 20 Jan 2026 16:09:06 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A[=E8=AF=95=E9=AA=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86][=E9=9D=9E=E5=AE=9E=E9=AA=8C=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=B9=E6=B3=95=E9=98=85=E8=AF=BB=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hxhq/business/controller/StudyMethodController.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyMethodController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyMethodController.java index e238833..7648aea 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyMethodController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyMethodController.java @@ -90,7 +90,7 @@ public class StudyMethodController extends BaseController { @RequiresPermissions("business:studyMethod:download") public AjaxResult test(Long studyMethodId) { StudyMethod studyMethod = studyMethodService.getById(studyMethodId); - if(studyMethod == null) { + if (studyMethod == null) { return error("试验方法不存在或已删除"); } List list = studyMethodReadService.queryList(studyMethodId); @@ -100,4 +100,15 @@ public class StudyMethodController extends BaseController { result.put("fileUrl", exportStudyMethodFilePath); return AjaxResult.success(result); } + + /** + * 判断用户是否全部已读试验/学科下的试验方法 + */ + @GetMapping(value = "/getReadAllMethodStatus") + public AjaxResult getReadAllMethodStatus(Long userId, Long studyId, Long studySubjectId) { + studyMethodService.checkAllMethodReadStatus(userId, studyId, studySubjectId); + return AjaxResult.success("成功"); + } + + }