|
@@ -200,6 +200,32 @@ public class DepartmentalPerformanceIndicatorPlanController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * 详情-删除
|
|
|
|
+ *
|
|
|
|
+ * @param id 主键
|
|
|
|
+ * @return 结果
|
|
|
|
+ */
|
|
|
|
+ @GetMapping(value = "/delete/{id}")
|
|
|
|
+ public R delete(@PathVariable String id) {
|
|
|
|
+ try {
|
|
|
|
+ EvaluationDeptBusinessContent evaluationDeptBusinessContent = evaluationDeptBusinessContentService.getById(id);
|
|
|
|
+ if (null != evaluationDeptBusinessContent) {
|
|
|
|
+ if ("23031009".equals(evaluationDeptBusinessContent.getCreateDept())) {
|
|
|
|
+ return R.customError("没有删除权限,删除失败!");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ boolean b = evaluationDeptBusinessContentService.removeById(id);
|
|
|
|
+ if (b) {
|
|
|
|
+ return R.ok().data(b);
|
|
|
|
+ } else {
|
|
|
|
+ return R.customError("删除失败!");
|
|
|
|
+ }
|
|
|
|
+ } catch (CustomException e) {
|
|
|
|
+ return R.customError(e.getMessage()).data("失败!");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 详情部门信息
|
|
* 详情部门信息
|
|
*
|
|
*
|
|
* @param id 业务主键
|
|
* @param id 业务主键
|