提交实物代码

dev-discount
袁野 2 years ago
parent 302736a0c9
commit c1880b58af
  1. 6
      hai-service/src/main/java/com/hai/service/impl/HighActivityUserLotteryNumServiceImpl.java

@ -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);
} }

Loading…
Cancel
Save