|
|
@ -146,11 +146,11 @@ public class HighActivityUserLotteryNumServiceImpl implements HighActivityUserLo |
|
|
|
if (secConfig != null) { |
|
|
|
if (secConfig != null) { |
|
|
|
// 判断是否活动为空
|
|
|
|
// 判断是否活动为空
|
|
|
|
if (detail == null) { |
|
|
|
if (detail == null) { |
|
|
|
addLotteryNum(activityId , userId , 3); |
|
|
|
addLotteryNum(activityId , userId , Integer.valueOf(secConfig.getCodeValue())); |
|
|
|
return 3; |
|
|
|
return 1; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (!DateUtil.isNow(detail.getUpdateTime())) { |
|
|
|
if (!DateUtil.isNow(detail.getUpdateTime())) { |
|
|
|
detail.setLotteryNum(3); |
|
|
|
detail.setLotteryNum(Integer.valueOf(secConfig.getCodeValue())); |
|
|
|
detail.setUpdateTime(new Date()); |
|
|
|
detail.setUpdateTime(new Date()); |
|
|
|
highActivityUserLotteryNumMapper.updateByPrimaryKey(detail); |
|
|
|
highActivityUserLotteryNumMapper.updateByPrimaryKey(detail); |
|
|
|
} |
|
|
|
} |
|
|
|