bug
This commit is contained in:
@ -101,7 +101,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|||||||
// 过滤请求
|
// 过滤请求
|
||||||
.authorizeRequests()
|
.authorizeRequests()
|
||||||
// 对于登录login 验证码captchaImage 允许匿名访问
|
// 对于登录login 验证码captchaImage 允许匿名访问
|
||||||
.antMatchers("/login", "/app/login", "/captchaImage","/demo/tress/all","/wgz/app/wgzRegister").anonymous()
|
.antMatchers("/login", "/app/login", "/captchaImage","/demo/tress/all").anonymous()
|
||||||
|
.antMatchers("/app/login","/wgz/app/wgzRegister").permitAll()
|
||||||
.antMatchers(
|
.antMatchers(
|
||||||
HttpMethod.GET,
|
HttpMethod.GET,
|
||||||
"/*.html",
|
"/*.html",
|
||||||
|
@ -159,15 +159,17 @@ public class BgtProjectRecruitServiceImpl extends ServicePlusImpl<BgtProjectRecr
|
|||||||
@Override
|
@Override
|
||||||
public BgtProjectRecruitDetailWgzListVO wgzList(Long id) {
|
public BgtProjectRecruitDetailWgzListVO wgzList(Long id) {
|
||||||
BgtProjectRecruitDetailWgzListVO vo = new BgtProjectRecruitDetailWgzListVO();
|
BgtProjectRecruitDetailWgzListVO vo = new BgtProjectRecruitDetailWgzListVO();
|
||||||
|
vo.setId(id);
|
||||||
BgtProjectRecruitApplyQueryDTO bgtProjectRecruitApplyQueryDTO = new BgtProjectRecruitApplyQueryDTO();
|
BgtProjectRecruitApplyQueryDTO bgtProjectRecruitApplyQueryDTO = new BgtProjectRecruitApplyQueryDTO();
|
||||||
bgtProjectRecruitApplyQueryDTO.setRecruitIds(Collections.singletonList(id));
|
bgtProjectRecruitApplyQueryDTO.setRecruitIds(Collections.singletonList(id));
|
||||||
bgtProjectRecruitApplyQueryDTO.setStatus(applyStatus);
|
bgtProjectRecruitApplyQueryDTO.setStatus(applyStatus);
|
||||||
List<BgtProjectRecruitApplyVO> bgtProjectRecruitApplyVOS = bgtProjectRecruitApplyService.appQueryList(bgtProjectRecruitApplyQueryDTO);
|
List<BgtProjectRecruitApplyVO> bgtProjectRecruitApplyVOS = bgtProjectRecruitApplyService.appQueryList(bgtProjectRecruitApplyQueryDTO);
|
||||||
vo.setTotalNum(bgtProjectRecruitApplyVOS.size());
|
vo.setTotalNum(bgtProjectRecruitApplyVOS.size());
|
||||||
|
|
||||||
int count = (int)bgtProjectRecruitApplyVOS.stream().filter(apply -> apply.getStatus().equals(RecruitApplyStatus.BGT_PASS.getCode())).count();
|
int count = (int)bgtProjectRecruitApplyVOS.stream().filter(apply -> apply.getStatus().equals(RecruitApplyStatus.BGT_PASS.getCode())).count();
|
||||||
vo.setPassNum(count);
|
vo.setPassNum(count);
|
||||||
vo.setNotSelectNum(vo.getTotalNum()-vo.getPassNum());
|
vo.setNotSelectNum(vo.getTotalNum()-vo.getPassNum());
|
||||||
vo.setApplyList(bgtProjectRecruitApplyVOS.subList(0, Math.min(count, 3)));
|
vo.setApplyList(bgtProjectRecruitApplyVOS.subList(0, Math.min(vo.getTotalNum(), 3)));
|
||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user