|
@@ -355,9 +355,9 @@ public class UserController {
|
|
|
}
|
|
|
// //查询用户的选择状态()
|
|
|
LocalDate date =LocalDate.now();
|
|
|
- Integer nextYear =date.getYear()+1 ;
|
|
|
+ Integer lastYear =date.getYear()-1 ;
|
|
|
studentSelectionProjectSaveReqVO project =new studentSelectionProjectSaveReqVO();
|
|
|
- studentSelectionProjectSaveReqVO project1 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(nextYear),studentSelectionProjectSaveReqVO.class);
|
|
|
+ studentSelectionProjectSaveReqVO project1 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(lastYear),studentSelectionProjectSaveReqVO.class);
|
|
|
studentSelectionProjectSaveReqVO project2 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(date.getYear()),studentSelectionProjectSaveReqVO.class);
|
|
|
project =project1==null?project2:project1;
|
|
|
if (project!=null) {
|
|
@@ -621,9 +621,9 @@ public class UserController {
|
|
|
AdminUserDO loginUser =userService.getUser(loginId);
|
|
|
Set<Long> roleIds = permissionService.getUserRoleIdListByUserId(loginId);
|
|
|
|
|
|
- Integer nextYear =date.getYear()+1 ;
|
|
|
+ Integer lastYear =date.getYear()-1 ;
|
|
|
studentSelectionProjectSaveReqVO project =new studentSelectionProjectSaveReqVO();
|
|
|
- studentSelectionProjectSaveReqVO project1 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(nextYear),studentSelectionProjectSaveReqVO.class);
|
|
|
+ studentSelectionProjectSaveReqVO project1 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(lastYear),studentSelectionProjectSaveReqVO.class);
|
|
|
studentSelectionProjectSaveReqVO project2 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(date.getYear()),studentSelectionProjectSaveReqVO.class);
|
|
|
project =project1==null?project2:project1;
|
|
|
if (project==null){
|
|
@@ -658,9 +658,9 @@ public class UserController {
|
|
|
userService.updatePop(popData);
|
|
|
|
|
|
LocalDate date =LocalDate.now();
|
|
|
- Integer nextYear =date.getYear()+1 ;
|
|
|
+ Integer lastYear =date.getYear()-1 ;
|
|
|
studentSelectionProjectSaveReqVO project =new studentSelectionProjectSaveReqVO();
|
|
|
- studentSelectionProjectSaveReqVO project1 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(nextYear),studentSelectionProjectSaveReqVO.class);
|
|
|
+ studentSelectionProjectSaveReqVO project1 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(lastYear),studentSelectionProjectSaveReqVO.class);
|
|
|
studentSelectionProjectSaveReqVO project2 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(date.getYear()),studentSelectionProjectSaveReqVO.class);
|
|
|
project =project1==null?project2:project1;
|
|
|
|
|
@@ -710,13 +710,13 @@ public class UserController {
|
|
|
@PreAuthorize("@ss.hasPermission('system:user:getPassedStudentsPage')")
|
|
|
public CommonResult<PageResult<AdminUserDO>> getPassedStudentsPage(@Valid UserPageReqVO pageReqVO) {
|
|
|
LocalDate date =LocalDate.now();
|
|
|
- Integer nextYear =date.getYear()+1 ;
|
|
|
+ Integer lastYear =date.getYear()-1 ;
|
|
|
studentSelectionProjectSaveReqVO project =new studentSelectionProjectSaveReqVO();
|
|
|
- studentSelectionProjectSaveReqVO project1 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(nextYear),studentSelectionProjectSaveReqVO.class);
|
|
|
+ studentSelectionProjectSaveReqVO project1 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(lastYear),studentSelectionProjectSaveReqVO.class);
|
|
|
studentSelectionProjectSaveReqVO project2 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(date.getYear()),studentSelectionProjectSaveReqVO.class);
|
|
|
project =project1==null?project2:project1;
|
|
|
if (project==null) {
|
|
|
- return error(1,"今年还没有创建互选项目");
|
|
|
+ return error(1,"还没有创建互选项目");
|
|
|
}
|
|
|
pageReqVO.setGrade(project.getStudentGrade());
|
|
|
pageReqVO.setUserType("1");
|
|
@@ -730,13 +730,13 @@ public class UserController {
|
|
|
@PreAuthorize("@ss.hasPermission('system:user:getUnPassedStudentsPage')")
|
|
|
public CommonResult<PageResult<AdminUserDO>> getUnPassedStudentsPage(@Valid UserPageReqVO reqVO) {
|
|
|
LocalDate date =LocalDate.now();
|
|
|
- Integer nextYear =date.getYear()+1 ;
|
|
|
+ Integer lastYear =date.getYear()-1 ;
|
|
|
studentSelectionProjectSaveReqVO project =new studentSelectionProjectSaveReqVO();
|
|
|
- studentSelectionProjectSaveReqVO project1 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(nextYear),studentSelectionProjectSaveReqVO.class);
|
|
|
+ studentSelectionProjectSaveReqVO project1 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(lastYear),studentSelectionProjectSaveReqVO.class);
|
|
|
studentSelectionProjectSaveReqVO project2 = BeanUtils.toBean(studentSelectionProjectService.getStudentSelectionProjectByYear(date.getYear()),studentSelectionProjectSaveReqVO.class);
|
|
|
project =project1==null?project2:project1;
|
|
|
if (project==null) {
|
|
|
- return error(1,"今年还没有创建互选项目");
|
|
|
+ return error(1,"还没有创建互选项目");
|
|
|
}
|
|
|
|
|
|
reqVO.setGrade(project.getStudentGrade());
|