|
@@ -326,7 +326,8 @@ public class OrganizationEvaluationServiceImpl extends ServiceImpl<OrganizationE
|
|
//查询对应年度的目标责任书
|
|
//查询对应年度的目标责任书
|
|
List<DeptResponsibility> responsibilities = deptResponsibilityService.list("", organizationEvaluation.getCheckCycle(), organizationEvaluation.getYear(), "");
|
|
List<DeptResponsibility> responsibilities = deptResponsibilityService.list("", organizationEvaluation.getCheckCycle(), organizationEvaluation.getYear(), "");
|
|
if (null == responsibilities || responsibilities.size() <= 0) {
|
|
if (null == responsibilities || responsibilities.size() <= 0) {
|
|
- throw new CustomException("该年度的目标责任书不存在");
|
|
|
|
|
|
+// throw new CustomException();
|
|
|
|
+ return R.error("该年度的目标责任书不存在");
|
|
}
|
|
}
|
|
DeptResponsibility deptResponsibility = responsibilities.get(0);
|
|
DeptResponsibility deptResponsibility = responsibilities.get(0);
|
|
//
|
|
//
|
|
@@ -507,7 +508,7 @@ public class OrganizationEvaluationServiceImpl extends ServiceImpl<OrganizationE
|
|
//查询当前周期下对应的考评权重(需要考评的单位)
|
|
//查询当前周期下对应的考评权重(需要考评的单位)
|
|
List<OrganizationEvaluationRule> evaluationRules = organizationEvaluationRuleService.getOrganizationEvaluationRuleByYearAndCycle(organizationType, checkCycle, year, "");
|
|
List<OrganizationEvaluationRule> evaluationRules = organizationEvaluationRuleService.getOrganizationEvaluationRuleByYearAndCycle(organizationType, checkCycle, year, "");
|
|
if (evaluationRules == null || evaluationRules.isEmpty()) {
|
|
if (evaluationRules == null || evaluationRules.isEmpty()) {
|
|
- throw new CustomException("单位权重未配置");
|
|
|
|
|
|
+ return R.error("单位权重未配置");
|
|
}
|
|
}
|
|
|
|
|
|
//判断组织id 是否有值;不为空只生成当前组织的数据
|
|
//判断组织id 是否有值;不为空只生成当前组织的数据
|