diff --git a/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java b/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java index 01896c6..349b7af 100644 --- a/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java +++ b/src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java @@ -1,10 +1,15 @@ package com.yipin.liuwanr.mapper; -import com.yipin.liuwanr.entity.*; -import org.apache.ibatis.annotations.*; - import java.util.List; +import com.yipin.liuwanr.entity.*; +import org.apache.ibatis.annotations.Delete; +import org.apache.ibatis.annotations.Insert; +import org.apache.ibatis.annotations.Options; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; +import org.apache.ibatis.annotations.Update; + /** * 项目管理系统 项目管理表 * @@ -18,7 +23,7 @@ public interface ProjectManagementMapper { * @param projectName * @return */ - @Select("select count(*) from hr_project_management where projectName=#{projectName} and isdel=0") + @Select("select count(*) from hr_project_management where projectName=#{projectName}") Integer getByprojectName(String projectName); /** @@ -71,8 +76,7 @@ public interface ProjectManagementMapper { "select * from hr_project_management where 1 = 1",//(roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0)", "AND roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0", " AND ((roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0) OR ( isdel = 0 AND projectPermissions != 0 AND userId = #{userId} ))",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的 - " and systemId=#{systemId}", - " and projectName like '%' #{projectName} '%'", + " and systemId=#{systemId}", " ORDER BY creationTime desc", ""}) List queryManagementsExportTest(ProjectManagement management); @@ -198,7 +202,7 @@ public interface ProjectManagementMapper { * @return */ @Select({""}) List getJudgmentPointsPs(@Param("projectId") Integer projectId); diff --git a/src/main/java/com/yipin/liuwanr/service/ProjectManagementService.java b/src/main/java/com/yipin/liuwanr/service/ProjectManagementService.java index 9b86f31..267c8b1 100644 --- a/src/main/java/com/yipin/liuwanr/service/ProjectManagementService.java +++ b/src/main/java/com/yipin/liuwanr/service/ProjectManagementService.java @@ -456,11 +456,11 @@ public class ProjectManagementService { }*/ //根据projectId查询判分点信息 - List judgmentPointsList = mapper.getJudgmentPointsPs(projectId); + List judgmentPointsList = mapper.getJudgmentPoints(projectId); Integer size = judgmentPointsList.size(); for (int i = 0; i