@ -25,17 +25,16 @@ public interface ProjectManagementMapper {
*分页查询+条件查询
*
*@parammanagement
*@return
*"select projectId,projectName,projectPermissions,founder,creationTime,state from hr_project_management where isdel=0",
*" <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 (userId=#{userId} or founder = 0)</if>",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的
*" <if test='founder==0 and userId!=null'> and founder=#{founder}</if>",//教师选择创建人为系统
*" <if test='founder==1 and userId!=null'> and userId=#{userId}</if>",//教师选则创建人为老师
*" <if test='state!=null'> and state=#{state}</if>",
*" <if test='systemId!=null'> and systemId=#{systemId}</if>",
*" <if test='projectName!=null'> and projectName like concat('%',#{projectName},'%')</if>",
*" ORDER BY creationTime desc",
*@return"select projectId,projectName,projectPermissions,founder,creationTime,state from hr_project_management where isdel=0",
*" <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 (userId=#{userId} or founder = 0)</if>",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的
*" <if test='founder==0 and userId!=null'> and founder=#{founder}</if>",//教师选择创建人为系统
*" <if test='founder==1 and userId!=null'> and userId=#{userId}</if>",//教师选则创建人为老师
*" <if test='state!=null'> and state=#{state}</if>",
*" <if test='systemId!=null'> and systemId=#{systemId}</if>",
*" <if test='projectName!=null'> and projectName like concat('%',#{projectName},'%')</if>",
*" ORDER BY creationTime desc",
*/
@Select({"<script>",
// "select projectId,projectName,projectPermissions,founder,creationTime,state,knowledgePoints,experimentIntroduction from hr_project_management where isdel=0",
@ -44,9 +43,9 @@ public interface ProjectManagementMapper {
" <if test='userId!=null'>AND ((FIND_IN_SET(1,founder) AND isdel = 0) OR ( isdel = 0 AND userId = #{userId} ))</if>",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的
" <if test='projectPermissions!=null'> and projectPermissions=#{projectPermissions}</if>",
" <if test='founder!=null'> and founder=#{founder}</if>",//教师选择创建人为系统
" <if test='state!=null'> and state=#{state}</if>",
" <if test='systemId!=null'> and systemId=#{systemId}</if>",
" <if test='projectName!=null'> and projectName like concat('%',#{projectName},'%')</if>",
" <if test='state!=null'> and state=#{state}</if>",
" <if test='systemId!=null'> and systemId=#{systemId}</if>",
" <if test='projectName!=null'> and projectName like concat('%',#{projectName},'%')</if>",
@ -69,10 +68,11 @@ public interface ProjectManagementMapper {
@Select({"<script>",
"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 ((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='queryName!=null'> and projectName LIKE '%' #{queryName} '%'</if>",
"<if test='userId==null'>AND founder != 14 AND isdel = 0 AND projectPermissions != 0</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='queryName!=null'> and projectName LIKE '%' #{queryName} '%'</if>",
@ -211,7 +211,7 @@ public interface ProjectManagementMapper {
@Select({"<script>",
"select score,judgmentPointsId from hr_score_index where judgmentPointsId=#{judgmentPointsId} and systemId = #{systemId} and projectId = #{projectId}",