@ -46,17 +46,33 @@ public interface ProjectManagementMapper {
*" ORDER BY creationTime desc",
*" ORDER BY creationTime desc",
*/
*/
@Select({"<script>",
@Select({"<script>",
// "select projectId,projectName,projectPermissions,founder,creationTime,state,knowledgePoints,experimentIntroduction from hr_project_management where isdel=0",
"select * from hr_project_management where isdel = 0",
"select * from hr_project_management where (roleId NOT LIKE '%3%' AND isdel = 0)",
//// "select projectId,projectName,projectPermissions,founder,creationTime,state,knowledgePoints,experimentIntroduction from hr_project_management where isdel=0",
//// "select projectId,projectName,projectPermissions,founder,creationTime,state,knowledgePoints,experimentIntroduction from hr_project_management where isdel=0",
// "select * from hr_project_management where isdel=0",
// "select * from hr_project_management where isdel=0",
@ -76,11 +92,19 @@ public interface ProjectManagementMapper {
@Select({"<script>",
@Select({"<script>",
"select * from hr_project_management where (roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0)",
"select * from hr_project_management where (roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0)",
" <if test='userId!=null'>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>",
@ -228,7 +252,7 @@ public interface ProjectManagementMapper {
*@paramprojectId
*@paramprojectId
*@return
*@return
*/
*/
@Select("select judgmentPointsId,judgmentPointsName,experimentalRequirements from hr_judgment_points where isdel=0 and FIND_IN_SET(#{projectId},projectId)>0")
@Select("select judgmentPointsId,judgmentPointsName,experimentalRequirements ,userId from hr_judgment_points where isdel=0 and FIND_IN_SET(#{projectId},projectId)>0")
@ -46,7 +46,7 @@ public interface ScoreIndexMapper {
*根据判分点id和项目id查询具体分数
*根据判分点id和项目id查询具体分数
*@return
*@return
*/
*/
@Select("select score from hr_score_index where isdel=0 and judgmentPointsId=#{judgmentPointsId} and projectId=#{projectId} and userId=#{userId}")
@Select("select score from hr_score_index where isdel=0 and judgmentPointsId=#{judgmentPointsId} and projectId=#{projectId} and userId=#{userId} ORDER BY score DESC LIMIT 1")