From 1c1fab121bd507a1f0bb19d29c748a08a1280b58 Mon Sep 17 00:00:00 2001 From: "jiakun.lin" Date: Mon, 22 Mar 2021 14:47:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E9=80=89-=E7=AE=A1=E7=90=86=E5=91=98-?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=AE=A1=E7=90=86=E5=91=98=E5=8A=A0=E8=80=81?= =?UTF-8?q?=E5=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../liuwanr/service/ProjectManagementService.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/com/yipin/liuwanr/service/ProjectManagementService.java b/src/main/java/com/yipin/liuwanr/service/ProjectManagementService.java index 83cefe0..cf58749 100644 --- a/src/main/java/com/yipin/liuwanr/service/ProjectManagementService.java +++ b/src/main/java/com/yipin/liuwanr/service/ProjectManagementService.java @@ -8,6 +8,7 @@ import com.yipin.liuwanr.mapper.ProjectManagementMapper; import com.yipin.liuwanr.mapper.ScoreIndexMapper; import org.apache.commons.lang3.StringUtils; import org.jboss.logging.Logger; +import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -129,6 +130,16 @@ public class ProjectManagementService { } //条件查询 List list = mapper.queryManagements(vo); + //管理员权限id + String adminId = "13"; + if (adminId.equals(vo.getFounder())){ + //查完管理员,再查管理员+教师权限的 13,14 + ProjectManagement vo1 = new ProjectManagement(); + BeanUtils.copyProperties(vo,vo1); + vo1.setFounder("13,14"); + List list1 = mapper.queryManagements(vo1); + list.addAll(list1); + } resp.put("retvalue",list); resp.put("retcode", 200); } catch (Exception e) {