Authored by wangshusheng

注释

@@ -498,9 +498,12 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { @@ -498,9 +498,12 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService {
498 logger.warn(" the cutdown product not exist, activityId is {}, productSkn is {}", activityId, productSkn); 498 logger.warn(" the cutdown product not exist, activityId is {}, productSkn is {}", activityId, productSkn);
499 throw new ServiceException(ServiceError.ACTIVITY_CUTDOWNPRICE_PRODUCT_NOTEXIST_ERROR); 499 throw new ServiceException(ServiceError.ACTIVITY_CUTDOWNPRICE_PRODUCT_NOTEXIST_ERROR);
500 } 500 }
501 - // 查询该用户是否已经发起过(之前发起过,没砍价成功,发起时间超过24小时) 501 + // 查询该用户是否已经发起过
  502 + // (之前发起过,没砍价成功,发起时间超过24小时,可以重新发起)
  503 + // 之前发起过,砍价成功了,但是24小时没付款失效了,就不能再重新发起了
502 CutDownPriceUserRecord recordDb = cutDownPriceUserRecordMapper.selectCutDownPriceUserRecord(userId, activityId, productSkn); 504 CutDownPriceUserRecord recordDb = cutDownPriceUserRecordMapper.selectCutDownPriceUserRecord(userId, activityId, productSkn);
503 - if(recordDb!=null && (recordDb.getHelpCount()>=cutDownPriceProductBo.getJoinNum()+1 || (DateUtils.getCurrentTimeSecond() - recordDb.getCreateTime() < TIME_24_HOUR))){ 505 + if(recordDb!=null &&
  506 + (recordDb.getHelpCount()>=cutDownPriceProductBo.getJoinNum()+1 || (DateUtils.getCurrentTimeSecond() - recordDb.getCreateTime() < TIME_24_HOUR))){
504 logger.warn(" the cutdown record has exist, userId is {}, activityId is {}, productSkn is {}", userId, activityId, productSkn); 507 logger.warn(" the cutdown record has exist, userId is {}, activityId is {}, productSkn is {}", userId, activityId, productSkn);
505 throw new ServiceException(ServiceError.ACTIVITY_CUTDOWNPRICE_YOU_HAS_CREATE_CUTDOWN_ERROR); 508 throw new ServiceException(ServiceError.ACTIVITY_CUTDOWNPRICE_YOU_HAS_CREATE_CUTDOWN_ERROR);
506 } 509 }