...
|
...
|
@@ -382,15 +382,24 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
|
throw new ServiceException(ServiceError.ACTIVITY_CUTDOWNPRICE_HAS_HELPED_FULL_ERROR);
|
|
|
}
|
|
|
|
|
|
//判断用户是否已经针对该skn帮助砍价,当天24小时内只能帮砍一次
|
|
|
//判断用户是否已经针对该次分享帮助砍价
|
|
|
if(!SYSTEM_HELP_ID.equals(helpUserId)){
|
|
|
Integer count = cutPriceUserHelpMapper.selectExistHelpInfo(helpUserId, activityId, productSkn, startTime);
|
|
|
Integer count = cutPriceUserHelpMapper.selectExistHelpInfo(helpUserId, activityId, productSkn, recordDb.getId());
|
|
|
if (count>0){
|
|
|
logger.warn(" you have help only one time, activityId is {}, productSkn is {}, helpUserId is {}", activityId, productSkn, helpUserId);
|
|
|
logger.warn(" you have help one time for this share, activityId is {}, productSkn is {}, helpUserId is {}, recordId is {}", activityId, productSkn, helpUserId, recordDb.getId());
|
|
|
throw new ServiceException(ServiceError.ACTIVITY_CUTDOWNPRICE_YOU_HAS_HELPED_ERROR);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//判断用户是否已经针对该skn帮助砍价,当天24小时内只能帮砍一次
|
|
|
if(!SYSTEM_HELP_ID.equals(helpUserId)){
|
|
|
Integer count = cutPriceUserHelpMapper.selectExistHelpInfoCurrentDay(helpUserId, activityId, productSkn, startTime);
|
|
|
if (count>0){
|
|
|
logger.warn(" you have help one time today, activityId is {}, productSkn is {}, helpUserId is {}", activityId, productSkn, helpUserId);
|
|
|
throw new ServiceException(ServiceError.ACTIVITY_CUTDOWNPRICE_YOU_HAS_HELPED_SKN_ERROR);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 查询已砍的价格
|
|
|
List<CutDownPriceProductHelpUser> helpUsers = cutPriceUserHelpMapper.selectHelpInfo(userId, activityId, productSkn, recordDb.getId());
|
|
|
|
...
|
...
|
|