|
@@ -53,16 +53,16 @@ public interface studentSelectSupervisorRecordMapper extends BaseMapperX<student
|
|
|
|
|
|
if (roleIds.contains(113L)){//导师看自己的待处理,同意,退回
|
|
|
queryWrapperX.eqIfPresent(studentSelectSupervisorRecordDO::getSupervisorId,loginUser.getId())
|
|
|
- .inIfPresent(studentSelectSupervisorRecordDO::getSelectType,1,2,3)
|
|
|
+ .inIfPresent(studentSelectSupervisorRecordDO::getSelectType,1,2,3,4)
|
|
|
.orderBy(true, true, studentSelectSupervisorRecordDO::getSelectType)
|
|
|
.last("ORDER BY FIELD(select_type, 1,2,3)");
|
|
|
}else if (roleIds.contains(114L)){
|
|
|
if ( reqVO.getSupervisorId()!=null&&reqVO.getSupervisorId()!=0) {//招生详情学院看对应导师的同意的
|
|
|
- queryWrapperX.eqIfPresent(studentSelectSupervisorRecordDO::getSelectType, 2);
|
|
|
+ queryWrapperX.inIfPresent(studentSelectSupervisorRecordDO::getSelectType, 2,4);
|
|
|
}else {//互选记录看所有
|
|
|
- queryWrapperX.inIfPresent(studentSelectSupervisorRecordDO::getSelectType,0,1,2,3)
|
|
|
+ queryWrapperX.inIfPresent(studentSelectSupervisorRecordDO::getSelectType,0,1,2,3,4)
|
|
|
.orderBy(true, true, studentSelectSupervisorRecordDO::getSelectType)
|
|
|
- .last("ORDER BY FIELD(select_type,2,1,3,0)");
|
|
|
+ .last("ORDER BY FIELD(select_type,2,1,3,4,0)");
|
|
|
}
|
|
|
}else if (roleIds.contains(112L)){//学生看自己的
|
|
|
queryWrapperX.eqIfPresent(studentSelectSupervisorRecordDO::getStudentId,loginUser.getId());
|
|
@@ -93,16 +93,16 @@ public interface studentSelectSupervisorRecordMapper extends BaseMapperX<student
|
|
|
.orderByDesc(studentSelectSupervisorRecordDO::getCreateTime);
|
|
|
if (roleIds.contains(113L)){//导师看自己的待处理,同意,退回
|
|
|
queryWrapperX.eqIfPresent(studentSelectSupervisorRecordDO::getSupervisorId,loginUser.getId())
|
|
|
- .inIfPresent(studentSelectSupervisorRecordDO::getSelectType,1,2,3)
|
|
|
+ .inIfPresent(studentSelectSupervisorRecordDO::getSelectType,1,2,3,4)
|
|
|
.orderBy(true, true, studentSelectSupervisorRecordDO::getSelectType)
|
|
|
- .last("ORDER BY FIELD(select_type, 1,2,3)");
|
|
|
+ .last("ORDER BY FIELD(select_type, 1,2,3,4)");
|
|
|
}else if (roleIds.contains(114L)){//
|
|
|
if ( reqVO.getSupervisorId()!=null&&reqVO.getSupervisorId()!=0) {//招生详情
|
|
|
- queryWrapperX.eqIfPresent(studentSelectSupervisorRecordDO::getSelectType, 2);
|
|
|
+ queryWrapperX.inIfPresent(studentSelectSupervisorRecordDO::getSelectType, 2,4);
|
|
|
}else {//互选记录看所有
|
|
|
- queryWrapperX.inIfPresent(studentSelectSupervisorRecordDO::getSelectType,0,1,2,3)
|
|
|
+ queryWrapperX.inIfPresent(studentSelectSupervisorRecordDO::getSelectType,0,1,2,3,4)
|
|
|
.orderBy(true, true, studentSelectSupervisorRecordDO::getSelectType)
|
|
|
- .last("ORDER BY FIELD(select_type,2,1,3,0)");
|
|
|
+ .last("ORDER BY FIELD(select_type,2,1,3,4,0)");
|
|
|
}
|
|
|
}else if (roleIds.contains(112L)){//学生看自己的
|
|
|
queryWrapperX.eqIfPresent(studentSelectSupervisorRecordDO::getStudentId,loginUser.getId());
|
|
@@ -171,7 +171,7 @@ public interface studentSelectSupervisorRecordMapper extends BaseMapperX<student
|
|
|
|
|
|
if (roleIds.contains(113L)){//导师看自己的同意和退回
|
|
|
queryWrapperX.eqIfPresent(studentSelectSupervisorRecordDO::getSupervisorId,loginUser.getId())
|
|
|
- .inIfPresent(studentSelectSupervisorRecordDO::getSelectType,2,3);
|
|
|
+ .inIfPresent(studentSelectSupervisorRecordDO::getSelectType,2,3,4);
|
|
|
}
|
|
|
return selectPage(reqVO,queryWrapperX);
|
|
|
}
|