优化
This commit is contained in:
		| @ -159,7 +159,7 @@ public class AnnexServiceImpl extends ServicePlusImpl<AnnexMapper, Annex> implem | ||||
|  | ||||
| 	@Override | ||||
| 	public void deleteByUserIdAndRecruitIdAndType(List<Long> userIds, Long recruitId, String type) { | ||||
| 		baseMapper.delete(Wrappers.<Annex>lambdaQuery().in(Annex::getUserId,userIds) | ||||
| 		baseMapper.delete(Wrappers.<Annex>lambdaUpdate().in(Annex::getUserId,userIds) | ||||
| 			.eq(Annex::getRecruitId,recruitId).eq(Annex::getAnnexType,type).eq(Annex::getUserType,WGZ)); | ||||
| 	} | ||||
|  | ||||
|  | ||||
| @ -80,7 +80,7 @@ public class BusinessTask | ||||
|     public void recruitRefuse() | ||||
|     { | ||||
| 		Console.log("开始招工拒绝任务"); | ||||
| 		List<String> status = Arrays.asList(RecruitApplyStatus.SIGN_UP.getCode(), RecruitApplyStatus.BGT_PASS.getCode()); | ||||
| 		List<String> status = Arrays.asList(RecruitApplyStatus.SIGN_UP.getCode(), RecruitApplyStatus.BGT_PASS.getCode(), RecruitApplyStatus.WGZ_PASS.getCode()); | ||||
| 		List<BgtProjectRecruit> recruitList = recruitService.list(Wrappers.<BgtProjectRecruit>lambdaQuery() | ||||
| 			.lt(BgtProjectRecruit::getRecruitEndTime, LocalDate.now())); | ||||
| 		if(CollectionUtil.isNotEmpty(recruitList)){ | ||||
|  | ||||
| @ -3,7 +3,6 @@ package com.ruoyi.wgz.service.impl; | ||||
| import cn.hutool.core.bean.BeanUtil; | ||||
| import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||||
| import com.baomidou.mybatisplus.core.toolkit.Wrappers; | ||||
| import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | ||||
| import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||||
| import com.ruoyi.bgt.domain.vo.BgtQuestionResult; | ||||
| import com.ruoyi.common.core.mybatisplus.core.ServicePlusImpl; | ||||
| @ -386,8 +385,8 @@ public class WgzQuestionSaveServiceImpl extends ServicePlusImpl<WgzQuestionSaveM | ||||
| 		long time= 0L; | ||||
|  | ||||
| 		for (WgzQuestionSave wgzQuestionSave : savaList){ | ||||
| 			score += wgzQuestionSave.getScore(); | ||||
| 			if(wgzQuestionSave.getCorrect().equals("1")){ | ||||
| 				score += wgzQuestionSave.getScore(); | ||||
| 				successNum++; | ||||
| 			}else{ | ||||
| 				errorNum++; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 zt
					zt