|
@@ -89,8 +89,11 @@ public class ConditionServiceImpl implements ConditionService {
|
|
|
// 未找到权限菜单,默认为本人权限
|
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
|
|
|
+ if ("39".equals(privilegeIdString)) {
|
|
|
+ return conditionMapper.listCourseFromExamTask(examId, dpr);
|
|
|
+ }
|
|
|
// 入库申请菜单
|
|
|
- if ("40".equals(privilegeIdString)) {
|
|
|
+ else if ("40".equals(privilegeIdString)) {
|
|
|
return conditionMapper.listCourseForApply(semesterId, examId, enable, sysUser.getId());
|
|
|
}
|
|
|
// 入库审核菜单
|
|
@@ -110,6 +113,11 @@ public class ConditionServiceImpl implements ConditionService {
|
|
|
return conditionMapper.listCourseForScore(semesterId, examId, basicCourses, MarkPaperStatus.FINISH.name(), dpr);
|
|
|
} else if ("491".equals(privilegeIdString)) {
|
|
|
return conditionMapper.listCourseForEntrance(examId, sysUser.getId(), MarkPaperStatus.FORMAL.name());
|
|
|
+ }
|
|
|
+ // 评卷设置(897)、评卷管理(917)、成绩检查(946)
|
|
|
+ else if ("897".equals(privilegeIdString) || "917".equals(privilegeIdString) || "946".equals(privilegeIdString)) {
|
|
|
+ dpr = basicRoleDataPermissionService.findDataPermission(privilegeId);
|
|
|
+ return conditionMapper.listCourseFromMarkPaper(examId, dpr);
|
|
|
} else {
|
|
|
dpr = basicRoleDataPermissionService.findDataPermission(privilegeId);
|
|
|
return conditionMapper.listCourse(semesterId, examId, enable, printPlanIds, dpr);
|
|
@@ -132,8 +140,11 @@ public class ConditionServiceImpl implements ConditionService {
|
|
|
dpr = basicRoleDataPermissionService.findDataPermission(privilegeId);
|
|
|
}
|
|
|
|
|
|
+ if ("39".equals(privilegeIdString)) {
|
|
|
+ return conditionMapper.listPaperNumberFromExamTask(examId, courseCode, dpr);
|
|
|
+ }
|
|
|
// 入库申请菜单
|
|
|
- if ("40".equals(privilegeIdString)) {
|
|
|
+ else if ("40".equals(privilegeIdString)) {
|
|
|
return conditionMapper.listPaperNumberForApply(semesterId, examId, courseCode, sysUser.getId());
|
|
|
}
|
|
|
// 入库审核菜单
|
|
@@ -143,6 +154,10 @@ public class ConditionServiceImpl implements ConditionService {
|
|
|
return conditionMapper.listPaperNumberPlanTask(semesterId, examId, printPlanIds, courseCode, dpr);
|
|
|
} else if ("491".equals(privilegeIdString)) {
|
|
|
return conditionMapper.listPaperNumberForEntrance(examId, sysUser.getId(), courseCode, MarkPaperStatus.FORMAL.name());
|
|
|
+ }
|
|
|
+ // 评卷设置(897)、评卷管理(917)、成绩检查(946)
|
|
|
+ else if ("897".equals(privilegeIdString) || "917".equals(privilegeIdString) || "946".equals(privilegeIdString)) {
|
|
|
+ return conditionMapper.listPaperNumberFromMarkPaper(examId, courseCode, dpr);
|
|
|
} else {
|
|
|
return conditionMapper.listPaperNumber(semesterId, examId, courseCode, printPlanIds, dpr);
|
|
|
}
|