...
|
...
|
@@ -2153,7 +2153,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
if(rewardInterval != null && rewardInterval != 0){
|
|
|
startTime = getTimeIntInterval(startTime, publishTime , rewardInterval);
|
|
|
}
|
|
|
List<RewardsSendRecords> userRecords = rewardsSendRecordsDAO.selectByRewardsIdAndTimeBetween(uid,grassRewardsConfig.getId(), startTime,endTime);
|
|
|
List<RewardsSendRecords> userRecords = rewardsSendRecordsDAO.selectByTypeAndTimeBetween(uid, 3, startTime,endTime);
|
|
|
if(userRecords.stream().anyMatch(rewardsSendRecords -> rewardsSendRecords.getArticleId().equals(articleId))){
|
|
|
logger.info("sendFirstPublishReward user has recieved reward, rewardId is {}, articleId is {},uid is {}",grassRewardsConfig.getId(), articleId, uid);
|
|
|
return;
|
...
|
...
|
|