提交 3650cc2c 编写于 作者: minghao.wu's avatar minghao.wu

fix: 注释权限判断

上级 ff48c972
...@@ -153,28 +153,30 @@ public class AnalysisController { ...@@ -153,28 +153,30 @@ public class AnalysisController {
if (user != null && user.getId() != 0) { if (user != null && user.getId() != 0) {
Doctor doctor = doctorService.getDoctorById(user.getId()); Doctor doctor = doctorService.getDoctorById(user.getId());
if (doctor != null) { examTitleReplyDto.setReplyStatus(analysisService.getReplyStatus(examTitleId, user.getId()));
/**
/*if (doctor != null) {
*//**
* TODO: 判断权限 CHC PSA * TODO: 判断权限 CHC PSA
*/ *//*
CHCAnalysis analysis = analysisService.getAnalysisById(analysisRoundExamTitle.getAnalysisId()); CHCAnalysis analysis = analysisService.getAnalysisById(analysisRoundExamTitle.getAnalysisId());
if (analysis.getType() == 1) { if (analysis.getType() == 1) {
/** *//**
* CHC 获取考试前两百名 * CHC 获取考试前两百名
*/ *//*
if (rankingListService.isRankingInTop200(doctor.getId())) { if (rankingListService.isRankingInTop200(doctor.getId())) {
examTitleReplyDto.setReplyStatus(analysisService.getReplyStatus(examTitleId, user.getId())); examTitleReplyDto.setReplyStatus(analysisService.getReplyStatus(examTitleId, user.getId()));
} }
} else if (analysis.getType() == 2) { } else if (analysis.getType() == 2) {
/** *//**
* PSA 职务职称主任/副主任 院长/副院长 科长/副科长 管理人数100以上 * PSA 职务职称主任/副主任 院长/副院长 科长/副科长 管理人数100以上
*/ *//*
if (doctorService.isAuth(doctor.getId())) { if (doctorService.isAuth(doctor.getId())) {
examTitleReplyDto.setReplyStatus(analysisService.getReplyStatus(examTitleId, user.getId())); examTitleReplyDto.setReplyStatus(analysisService.getReplyStatus(examTitleId, user.getId()));
} }
} }
} }*/
} }
builder.setData(examTitleReplyDto); builder.setData(examTitleReplyDto);
} catch (Exception e) { } catch (Exception e) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册