From c754c44efb5aaf607cb189ad9fb6f71c1f14637e Mon Sep 17 00:00:00 2001 From: "jiakun.lin" Date: Thu, 29 Apr 2021 14:34:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yipin/liuwanr/mapper/ProjectManagementMapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java b/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java index a4f7d12..055b1d0 100644 --- a/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java +++ b/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java @@ -40,7 +40,7 @@ public interface ProjectManagementMapper { // "select projectId,projectName,projectPermissions,founder,creationTime,state,knowledgePoints,experimentIntroduction from hr_project_management where isdel=0", "select * from hr_project_management where 1 = 1",// (roleId NOT LIKE '%3%' AND isdel = 0)", " AND founder NOT LIKE '4' AND isdel = 0", - " AND ((FIND_IN_SET(1,founder) AND isdel = 0) OR ( isdel = 0 AND userId = #{userId} ))",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的 + " AND ((founder != 14 AND isdel = 0) OR ( isdel = 0 AND userId = #{userId} ))",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的 " and projectPermissions=#{projectPermissions}", " and founder=#{founder}",//教师选择创建人为系统 " and state=#{state}", @@ -55,7 +55,7 @@ public interface ProjectManagementMapper { // "select projectId,projectName,projectPermissions,founder,creationTime,state,knowledgePoints,experimentIntroduction from hr_project_management where isdel=0", "select * from hr_project_management where 1 = 1",// (roleId NOT LIKE '%3%' AND isdel = 0)", " AND founder NOT LIKE '4' AND isdel = 0", - " AND ((FIND_IN_SET(1,founder) AND isdel = 0) OR ( isdel = 0 AND userId = #{userId} ))",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的 + " AND ((founder != 14 AND isdel = 0) OR ( isdel = 0 AND userId = #{userId} ))",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的 " and projectPermissions=#{projectPermissions}", " and founder=#{founder}",//教师选择创建人为系统 " and state=#{state}",