@ -18,7 +23,7 @@ public interface ProjectManagementMapper {
*@paramprojectName
*@paramprojectName
*@return
*@return
*/
*/
@Select("select count(*) from hr_project_management where projectName=#{projectName} and isdel=0")
@Select("select count(*) from hr_project_management where projectName=#{projectName}")
IntegergetByprojectName(StringprojectName);
IntegergetByprojectName(StringprojectName);
/**
/**
@ -72,7 +77,6 @@ public interface ProjectManagementMapper {
"<if test='userId==null'>AND roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0</if>",
"<if test='userId==null'>AND roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0</if>",
" <if test='userId!=null'>AND ((roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0) OR ( isdel = 0 AND projectPermissions != 0 AND userId = #{userId} ))</if>",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的
" <if test='userId!=null'>AND ((roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0) OR ( isdel = 0 AND projectPermissions != 0 AND userId = #{userId} ))</if>",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的
" <if test='systemId!=null'> and systemId=#{systemId}</if>",
" <if test='systemId!=null'> and systemId=#{systemId}</if>",
"<if test='projectName!=null'> and projectName like '%' #{projectName} '%'</if>",