Browse Source

feat:[试验管理][非实验管理]新增方法阅读判断

master
15881625488@163.com 3 months ago
parent
commit
ed281c2040
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyMethodController.java

+ 12
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyMethodController.java View File

@ -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<StudyMethodRead> 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("成功");
}
}

Loading…
Cancel
Save