优化
This commit is contained in:
		| @ -280,7 +280,8 @@ public class FbsProjectTaskServiceImpl extends ServicePlusImpl<FbsProjectTaskMap | ||||
| 		wrapper.eq(BgtProjectRecruitApply::getTaskId, id); | ||||
| 		wrapper.in(BgtProjectRecruitApply::getStatus, RecruitApplyStatus.getTaskStatus()); | ||||
| 		List<BgtProjectRecruitApply> list = recruitApplyService.list(wrapper); | ||||
| 		long wgzPassNum = list.stream().filter(apply -> apply.getStatus().equals(RecruitApplyStatus.WGZ_PASS.getCode())).count(); | ||||
| 		long wgzPassNum = list.stream().filter(apply -> apply.getStatus().equals(RecruitApplyStatus.WGZ_PASS.getCode()) | ||||
| 			|| apply.getStatus().equals(RecruitApplyStatus.BGT_PASS.getCode())).count(); | ||||
| 		long outWorkNum = list.stream().filter(apply -> apply.getStatus().equals(RecruitApplyStatus.OUT_WORK.getCode())).count(); | ||||
| 		long workingNum = list.stream().filter(apply -> apply.getStatus().equals(RecruitApplyStatus.WORKING.getCode())).count(); | ||||
| 		return new BgtProjectTaskUseCountVO(wgzPassNum,workingNum,outWorkNum); | ||||
|  | ||||
| @ -224,11 +224,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|             <if test="dto.taskId != null"> | ||||
|                 and bpra.task_id = #{dto.taskId} | ||||
|             </if> | ||||
|             <if test="dto.status != null"> | ||||
|             <if test="dto.status != null and dto.status == 3"> | ||||
|                 AND bpra.status in ('1','3') | ||||
|             </if> | ||||
|             <if test="dto.status != null and dto.status != 3"> | ||||
|                 AND bpra.status = #{dto.status} | ||||
|             </if> | ||||
|             <if test="dto.status != null"> | ||||
|                 AND bpra.status in ('3','5','6') | ||||
|             <if test="dto.status == null"> | ||||
|                 AND bpra.status in ('1','3','5','6') | ||||
|             </if> | ||||
|         </where> | ||||
|         order by  bpra.create_time desc | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 zt
					zt