定时器失效1
parent
1ec02df246
commit
18915baa22
|
@ -8,7 +8,6 @@ import com.ruoyi.mybasic.common.domain.response.PurseResponse;
|
|||
import com.ruoyi.mybasic.mapper.InvitationMapper;
|
||||
import com.ruoyi.mybasic.service.InvitationService;
|
||||
import com.ruoyi.mybasic.service.PurseServiceTwo;
|
||||
import com.ruoyi.mybasic.timer.SysUserPurse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
@ -139,10 +138,10 @@ public class InvitationServiceImpl implements InvitationService {
|
|||
}
|
||||
// 清空redis中的钱包余额数据
|
||||
// redisService.deleteObject(userId + SysUserPurse.PURSE_NAME);
|
||||
//再次查询钱包修改后的信息
|
||||
PurseResponse NewpurseResponse = purseServiceTwo.purseObject(Long.valueOf(userId));
|
||||
Integer balanceFee = NewpurseResponse.getBalanceFee();
|
||||
//将查到新用户的余额存储到Redis中
|
||||
redisService.setCacheObject(userId + SysUserPurse.PURSE_NAME,balanceFee);
|
||||
// //再次查询钱包修改后的信息
|
||||
// PurseResponse NewpurseResponse = purseServiceTwo.purseObject(Long.valueOf(userId));
|
||||
// Integer balanceFee = NewpurseResponse.getBalanceFee();
|
||||
// //将查到新用户的余额存储到Redis中
|
||||
// redisService.setCacheObject(userId + SysUserPurse.PURSE_NAME,balanceFee);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue