@ -25,8 +25,7 @@ public interface ProjectManagementMapper {
*分页查询+条件查询
*分页查询+条件查询
*
*
*@parammanagement
*@parammanagement
*@return
*@return"select projectId,projectName,projectPermissions,founder,creationTime,state from hr_project_management where isdel=0",
*"select projectId,projectName,projectPermissions,founder,creationTime,state from hr_project_management where isdel=0",
*" <if test='projectPermissions!=null'> and projectPermissions=#{projectPermissions}</if>",
*" <if test='projectPermissions!=null'> and projectPermissions=#{projectPermissions}</if>",
*" <if test='founder!=null and userId==null'> and founder=#{founder}</if>",//服务端跳项目管理
*" <if test='founder!=null and userId==null'> and founder=#{founder}</if>",//服务端跳项目管理
*" <if test='founder==null and userId!=null'> and (userId=#{userId} or founder = 0)</if>",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的
*" <if test='founder==null and userId!=null'> and (userId=#{userId} or founder = 0)</if>",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的
@ -69,8 +68,9 @@ public interface ProjectManagementMapper {
@Select({"<script>",
@Select({"<script>",
"select * from hr_project_management where enable = 0",//(roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0)",
"select * from hr_project_management where enable = 0",//(roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0)",
"<if test='userId==null'>AND roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0</if>",
"<if test='userId==null'>AND founder != 14 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 ((AND founder != 14 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='queryName!=null'> and projectName LIKE '%' #{queryName} '%'</if>",
" <if test='queryName!=null'> and projectName LIKE '%' #{queryName} '%'</if>",
" ORDER BY creationTime desc",
" ORDER BY creationTime desc",
@ -211,7 +211,7 @@ public interface ProjectManagementMapper {
@Select({"<script>",
@Select({"<script>",
"select score,judgmentPointsId from hr_score_index where judgmentPointsId=#{judgmentPointsId} and systemId = #{systemId} and projectId = #{projectId}",
"select score,judgmentPointsId from hr_score_index where judgmentPointsId=#{judgmentPointsId} and systemId = #{systemId} and projectId = #{projectId}",