|
|
@ -90,7 +90,7 @@ public class StudyMethodController extends BaseController { |
|
|
@RequiresPermissions("business:studyMethod:download") |
|
|
@RequiresPermissions("business:studyMethod:download") |
|
|
public AjaxResult test(Long studyMethodId) { |
|
|
public AjaxResult test(Long studyMethodId) { |
|
|
StudyMethod studyMethod = studyMethodService.getById(studyMethodId); |
|
|
StudyMethod studyMethod = studyMethodService.getById(studyMethodId); |
|
|
if(studyMethod == null) { |
|
|
|
|
|
|
|
|
if (studyMethod == null) { |
|
|
return error("试验方法不存在或已删除"); |
|
|
return error("试验方法不存在或已删除"); |
|
|
} |
|
|
} |
|
|
List<StudyMethodRead> list = studyMethodReadService.queryList(studyMethodId); |
|
|
List<StudyMethodRead> list = studyMethodReadService.queryList(studyMethodId); |
|
|
@ -100,4 +100,15 @@ public class StudyMethodController extends BaseController { |
|
|
result.put("fileUrl", exportStudyMethodFilePath); |
|
|
result.put("fileUrl", exportStudyMethodFilePath); |
|
|
return AjaxResult.success(result); |
|
|
return AjaxResult.success(result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 判断用户是否全部已读试验/学科下的试验方法 |
|
|
|
|
|
*/ |
|
|
|
|
|
@GetMapping(value = "/getReadAllMethodStatus") |
|
|
|
|
|
public AjaxResult getReadAllMethodStatus(Long userId, Long studyId, Long studySubjectId) { |
|
|
|
|
|
studyMethodService.checkAllMethodReadStatus(userId, studyId, studySubjectId); |
|
|
|
|
|
return AjaxResult.success("成功"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |