修改补量条件

master
wjt 1 year ago
parent 727e23e9f3
commit 1ce42166dd

@ -100,12 +100,12 @@ public class ClueBoostServiceImpl implements ClueBoostService {
Date firstTime = clueBoost.getFirstTime(); Date firstTime = clueBoost.getFirstTime();
long betweenFirst = DateUtil.between(firstTime, DateUtil.date(), DateUnit.HOUR); long betweenFirst = DateUtil.between(firstTime, DateUtil.date(), DateUnit.HOUR);
Integer callNum = clueBoost.getCallNum(); Integer callNum = clueBoost.getCallNum();
if (betweenFirst <= DefaultNumberConstants.TWENTY_FOUR) { if (betweenFirst <= DefaultNumberConstants.TWENTY_THREE) {
clueBoost.setCallNum(callNum + 1); clueBoost.setCallNum(callNum + 1);
clueBoost.setLastTime(DateUtil.date()); clueBoost.setLastTime(DateUtil.date());
redisUtils.set(KEY + clueBoostDTO.getClueId(), clueBoost, 48 - betweenFirst, TimeUnit.HOURS); redisUtils.set(KEY + clueBoostDTO.getClueId(), clueBoost, 48 - betweenFirst, TimeUnit.MILLISECONDS);
return; return;
} else if (betweenFirst < DefaultNumberConstants.FORTY_EIGHT) { } else if (betweenFirst <= DefaultNumberConstants.FORTY_EIGHT) {
if (callNum >= DefaultNumberConstants.TWO_NUMBER) { if (callNum >= DefaultNumberConstants.TWO_NUMBER) {
//满足补量 //满足补量
ClueBoost clueBoostNew = new ClueBoost().addClueBoost(clueBoost.getClueId(), clueBoost.getMemberId(), clueBoost.getClueType(), clueBoostDTO.getWhichUserId()); ClueBoost clueBoostNew = new ClueBoost().addClueBoost(clueBoost.getClueId(), clueBoost.getMemberId(), clueBoost.getClueType(), clueBoostDTO.getWhichUserId());

Loading…
Cancel
Save