|
@@ -6,17 +6,13 @@ import cn.hutool.core.io.IoUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
|
|
|
import cn.iocoder.yudao.framework.common.exception.ServiceException;
|
|
|
-import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils;
|
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
|
-import cn.iocoder.yudao.framework.common.util.validation.ValidationUtils;
|
|
|
import cn.iocoder.yudao.framework.datapermission.core.util.DataPermissionUtils;
|
|
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
|
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
|
|
-import cn.iocoder.yudao.module.infra.api.config.ConfigApi;
|
|
|
import cn.iocoder.yudao.module.infra.api.file.FileApi;
|
|
|
-import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptListReqVO;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptSaveReqVO;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfileUpdatePasswordReqVO;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfileUpdateReqVO;
|
|
@@ -24,7 +20,6 @@ import cn.iocoder.yudao.module.system.controller.admin.user.vo.user.*;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.userAchievement.vo.UserAchievementPageReqVO;
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.dept.UserPostDO;
|
|
|
-import cn.iocoder.yudao.module.system.dal.dataobject.studentSelectionProject.studentSelectionProjectDO;
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO;
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.user.PopDo;
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.userAchievement.UserAchievementDO;
|
|
@@ -41,20 +36,15 @@ import com.mzt.logapi.context.LogRecordContext;
|
|
|
import com.mzt.logapi.service.impl.DiffParseFunction;
|
|
|
import com.mzt.logapi.starter.annotation.LogRecord;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.apache.ibatis.annotations.Param;
|
|
|
-import org.apache.ibatis.annotations.Select;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.security.crypto.password.PasswordEncoder;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
-import javax.validation.ConstraintViolationException;
|
|
|
import java.io.InputStream;
|
|
|
-import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.*;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
|
|
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList;
|
|
@@ -1221,29 +1211,29 @@ public class AdminUserServiceImpl implements AdminUserService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public PageResult<AdminUserDO> getPassedStudentsPage(UserPageReqVO reqVO){
|
|
|
+ public PageResult<StudentProjectRespVO> getPassedStudentsPage(UserPageReqVO reqVO, Long projectId){
|
|
|
int offset;
|
|
|
if (reqVO.getPageSize() == -1) {
|
|
|
offset =-1; //
|
|
|
} else {
|
|
|
offset = (reqVO.getPageNo() - 1) * reqVO.getPageSize();
|
|
|
}
|
|
|
- List<AdminUserDO> result =userMapper.getIsPassedStudentsPage(reqVO,offset,1);
|
|
|
- Long size = userMapper.getIsPassedStudentsPageCount(reqVO,1);
|
|
|
+ List<StudentProjectRespVO> result =userMapper.getIsPassedStudentsPage(reqVO,projectId,offset,1);
|
|
|
+ Long size = userMapper.getIsPassedStudentsPageCount(reqVO,projectId,1);
|
|
|
|
|
|
return new PageResult<>(result,size);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public PageResult<AdminUserDO> getUnPassedStudentsPage(UserPageReqVO reqVO){
|
|
|
+ public PageResult<StudentProjectRespVO> getUnPassedStudentsPage(UserPageReqVO reqVO, Long projectId){
|
|
|
int offset;
|
|
|
if (reqVO.getPageSize() == -1) {
|
|
|
offset =-1; //
|
|
|
} else {
|
|
|
offset = (reqVO.getPageNo() - 1) * reqVO.getPageSize();
|
|
|
}
|
|
|
- List<AdminUserDO> result =userMapper.getIsPassedStudentsPage(reqVO,offset,0);
|
|
|
- Long size = userMapper.getIsPassedStudentsPageCount(reqVO,0);
|
|
|
+ List<StudentProjectRespVO> result =userMapper.getIsPassedStudentsPage(reqVO,projectId,offset,0);
|
|
|
+ Long size = userMapper.getIsPassedStudentsPageCount(reqVO,projectId,0);
|
|
|
|
|
|
return new PageResult<>(result,size);
|
|
|
}
|