bug
This commit is contained in:
@ -101,7 +101,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
||||
// 过滤请求
|
||||
.authorizeRequests()
|
||||
// 对于登录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(
|
||||
HttpMethod.GET,
|
||||
"/*.html",
|
||||
|
@ -159,15 +159,17 @@ public class BgtProjectRecruitServiceImpl extends ServicePlusImpl<BgtProjectRecr
|
||||
@Override
|
||||
public BgtProjectRecruitDetailWgzListVO wgzList(Long id) {
|
||||
BgtProjectRecruitDetailWgzListVO vo = new BgtProjectRecruitDetailWgzListVO();
|
||||
vo.setId(id);
|
||||
BgtProjectRecruitApplyQueryDTO bgtProjectRecruitApplyQueryDTO = new BgtProjectRecruitApplyQueryDTO();
|
||||
bgtProjectRecruitApplyQueryDTO.setRecruitIds(Collections.singletonList(id));
|
||||
bgtProjectRecruitApplyQueryDTO.setStatus(applyStatus);
|
||||
List<BgtProjectRecruitApplyVO> bgtProjectRecruitApplyVOS = bgtProjectRecruitApplyService.appQueryList(bgtProjectRecruitApplyQueryDTO);
|
||||
vo.setTotalNum(bgtProjectRecruitApplyVOS.size());
|
||||
|
||||
int count = (int)bgtProjectRecruitApplyVOS.stream().filter(apply -> apply.getStatus().equals(RecruitApplyStatus.BGT_PASS.getCode())).count();
|
||||
vo.setPassNum(count);
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user