From 823de910e991d157aa70bb733a9853dc5fbfc625 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Fri, 23 Feb 2024 17:09:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E9=83=A8=E9=97=A8=E8=80=83?= =?UTF-8?q?=E6=A0=B8=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/logpm/supervise/api/ClassifyApi.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/api/ClassifyApi.java b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/api/ClassifyApi.java index 997336da2..5a0010432 100644 --- a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/api/ClassifyApi.java +++ b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/api/ClassifyApi.java @@ -44,17 +44,17 @@ public class ClassifyApi { return null; } String dept = AuthUtil.getUser().getDeptId(); - if (!("0").equals(dept)){ - if (!deptId.contains(dept)){ - log.error(method+"当前登录人无法对选择部门进行考核"); - return R.fail("此账号无法对该部门进行考核"); - } - } +// if (!("0").equals(dept)){ +// if (!deptId.contains(dept)){ +// log.error(method+"当前登录人无法对选择部门进行考核"); +// return R.fail("此账号无法对该部门进行考核"); +// } +// } List list = Func.toLongList(deptId); int indexOf = list.indexOf(Long.parseLong(dept)); if (list.size() - 1 == indexOf){ //当前登录账号处于组织结构树最后一级就只能进行最后一级的指标项搜索 - deptId = dept; + list.remove(indexOf); } List detail = classifyService.selectClassifyList(deptId); return R.data(detail);