|
@@ -101,7 +101,7 @@ public class DepartmentalPerformanceIndicatorPlanController {
|
|
|
if (b) {
|
|
|
return R.ok().data(b);
|
|
|
} else {
|
|
|
- return R.customError("保存失败!");
|
|
|
+ return R.error("保存失败!");
|
|
|
}
|
|
|
} catch (CustomException e) {
|
|
|
return R.customError(e.getMessage()).data("失败!");
|
|
@@ -135,7 +135,7 @@ public class DepartmentalPerformanceIndicatorPlanController {
|
|
|
if (b) {
|
|
|
return R.ok().data(b);
|
|
|
} else {
|
|
|
- return R.customError("修改失败!");
|
|
|
+ return R.error("修改失败!");
|
|
|
}
|
|
|
} catch (CustomException e) {
|
|
|
return R.customError(e.getMessage()).data("失败!");
|
|
@@ -156,7 +156,7 @@ public class DepartmentalPerformanceIndicatorPlanController {
|
|
|
if (b) {
|
|
|
return R.ok().data(b);
|
|
|
} else {
|
|
|
- return R.customError("删除失败!");
|
|
|
+ return R.error("删除失败!");
|
|
|
}
|
|
|
} catch (CustomException e) {
|
|
|
return R.customError(e.getMessage()).data("失败!");
|
|
@@ -211,7 +211,7 @@ public class DepartmentalPerformanceIndicatorPlanController {
|
|
|
if (b) {
|
|
|
return R.ok().data(b);
|
|
|
} else {
|
|
|
- return R.customError("新增/修改失败,指标名称重复!");
|
|
|
+ return R.error("新增/修改失败,指标名称重复!");
|
|
|
}
|
|
|
} catch (CustomException e) {
|
|
|
return R.customError(e.getMessage()).data("失败!");
|
|
@@ -231,7 +231,7 @@ public class DepartmentalPerformanceIndicatorPlanController {
|
|
|
if (null != evaluationDeptBusinessContent) {
|
|
|
if ("23031009".equals(evaluationDeptBusinessContent.getCreateDept())) {//组织人事部添加
|
|
|
if (!"23031009".equals(deptId)) {//非组织人事部
|
|
|
- return R.customError("没有删除权限,删除失败!");
|
|
|
+ return R.error("没有删除权限,删除失败!");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -239,7 +239,7 @@ public class DepartmentalPerformanceIndicatorPlanController {
|
|
|
if (b) {
|
|
|
return R.ok().data(b);
|
|
|
} else {
|
|
|
- return R.customError("删除失败!");
|
|
|
+ return R.error("删除失败!");
|
|
|
}
|
|
|
} catch (CustomException e) {
|
|
|
return R.customError(e.getMessage()).data("失败!");
|
|
@@ -308,14 +308,14 @@ public class DepartmentalPerformanceIndicatorPlanController {
|
|
|
if (b) {
|
|
|
return R.ok().data(b);
|
|
|
} else {
|
|
|
- return R.customError("导入失败!");
|
|
|
+ return R.error("导入失败!");
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
log.error("错误", e);
|
|
|
return R.customError(e.getMessage()).data("失败!");
|
|
|
}
|
|
|
}
|
|
|
- return R.customError("上传文件为空!");
|
|
|
+ return R.error("上传文件为空!");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -335,7 +335,7 @@ public class DepartmentalPerformanceIndicatorPlanController {
|
|
|
if (b) {
|
|
|
return R.ok().data(b);
|
|
|
} else {
|
|
|
- return R.customError("失败!");
|
|
|
+ return R.error("失败!");
|
|
|
}
|
|
|
} catch (CustomException e) {
|
|
|
return R.customError(e.getMessage()).data("失败!");
|
|
@@ -395,7 +395,7 @@ public class DepartmentalPerformanceIndicatorPlanController {
|
|
|
if (b) {
|
|
|
return R.ok().data(b);
|
|
|
} else {
|
|
|
- return R.customError("行数据审核状态未通过!");
|
|
|
+ return R.error("行数据审核状态未通过!");
|
|
|
}
|
|
|
}
|
|
|
}
|