优化
This commit is contained in:
		@ -34,6 +34,7 @@ import com.ruoyi.wgz.service.IWgzReissueacardService;
 | 
			
		||||
import com.ruoyi.wgz.service.IWgzUserService;
 | 
			
		||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
			
		||||
import org.springframework.stereotype.Service;
 | 
			
		||||
import org.springframework.transaction.annotation.Transactional;
 | 
			
		||||
 | 
			
		||||
import java.time.LocalTime;
 | 
			
		||||
import java.util.ArrayList;
 | 
			
		||||
@ -146,6 +147,7 @@ public class BgtMessageServiceImpl extends ServicePlusImpl<BgtMessageMapper, Bgt
 | 
			
		||||
	 */
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	@Transactional
 | 
			
		||||
	public Boolean sendAMessage(BgtMessage bo) {
 | 
			
		||||
		return save(bo);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -443,6 +443,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	@Transactional
 | 
			
		||||
	public Boolean userConfirmRegistration(WgzAppConfirmRegistrationReq req) {
 | 
			
		||||
		//1、获取当前用户
 | 
			
		||||
		WgzUser byUserId = wgzUserService.findByUserId(SecurityUtils.getAppUserId());
 | 
			
		||||
@ -511,7 +512,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
 | 
			
		||||
				setSenderType(USERTYPE_WGZ).
 | 
			
		||||
				setSenderId(byUserId.getUserId()).
 | 
			
		||||
				setRecipientType(USERTYPE_BGT).
 | 
			
		||||
				setRecipientId(apply.getUserId()).
 | 
			
		||||
				setRecipientId(recruit.getUserId()).
 | 
			
		||||
				setHeadline(wgzMessage(mp, "205")).
 | 
			
		||||
				setSubheading(wgzMessage(mp, "206")).
 | 
			
		||||
				setTableId(apply.getId()).
 | 
			
		||||
 | 
			
		||||
@ -202,8 +202,6 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
 | 
			
		||||
		//1、对指定用户进行实名认证
 | 
			
		||||
		WgzUser user = new WgzUser();
 | 
			
		||||
		BeanUtils.copyProperties(req, user);
 | 
			
		||||
		System.out.println("1??????????      "+req.getTypeOfWork());
 | 
			
		||||
		System.out.println("2??????????      "+user.getTypeOfWork());
 | 
			
		||||
		int update = baseMapper.update(user, new LambdaQueryWrapper<WgzUser>().eq(WgzUser::getUserId, req.getUserId()));
 | 
			
		||||
		if (update == 0){
 | 
			
		||||
			throw new RuntimeException("当前用户不存在!");
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user