|
|
@@ -24,7 +24,6 @@ import com.ylx.point.service.IPointAccountService;
|
|
|
import com.ylx.usercenter.domain.dto.UnifiedUserCenterDTO;
|
|
|
import com.ylx.usercenter.service.UnifiedUserCenterService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.transaction.support.TransactionSynchronization;
|
|
|
@@ -60,9 +59,6 @@ public class TCommentUserServiceImpl extends ServiceImpl<TCommentUserMapper, TCo
|
|
|
private UnifiedUserCenterService unifiedUserCenterService;
|
|
|
@Resource
|
|
|
private IPointAccountService pointAccountService;
|
|
|
- @Lazy
|
|
|
- @Resource
|
|
|
- private TCommentUserService self;
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@@ -166,7 +162,7 @@ public class TCommentUserServiceImpl extends ServiceImpl<TCommentUserMapper, TCo
|
|
|
if (ObjectUtil.equals(table.getType(), "4")) {
|
|
|
table.setActivityUrl(activityUrl);
|
|
|
table.setActivityId(activity.getId());
|
|
|
- self.saveLotteryLogAndCommit(wxLoginUser, table, 1);
|
|
|
+ saveLotteryLog(wxLoginUser, table, 1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -175,9 +171,7 @@ public class TCommentUserServiceImpl extends ServiceImpl<TCommentUserMapper, TCo
|
|
|
/**
|
|
|
* 统一保存抽奖次数日志
|
|
|
*/
|
|
|
- @Override
|
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
- public void saveLotteryLogAndCommit(WxLoginUser wxLoginUser, LocalActivityTableVO table, Integer lotteryNum) {
|
|
|
+ private void saveLotteryLog(WxLoginUser wxLoginUser, LocalActivityTableVO table, Integer lotteryNum) {
|
|
|
LotteryCountLog log = new LotteryCountLog();
|
|
|
log.setOpenId(wxLoginUser.getCOpenid());
|
|
|
log.setUserId(wxLoginUser.getId());
|
|
|
@@ -219,6 +213,4 @@ public class TCommentUserServiceImpl extends ServiceImpl<TCommentUserMapper, TCo
|
|
|
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
+}
|