...
|
...
|
@@ -430,6 +430,9 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
|
clearCache(activityId, productSkn, userId, recordDb.getId());
|
|
|
// 砍价成功时,给用户推送砍价成功消息
|
|
|
if(helpUsers!=null && (helpUsers.size()+1) == cutDownPriceProductBo.getJoinNum()){
|
|
|
// 修改砍价成功状态
|
|
|
cutDownPriceUserRecordMapper.updateCutSuccess(recordDb.getId());
|
|
|
// 给用户推送砍价成功消息
|
|
|
pushSuccessMessage(userId, activityBo, cutDownPriceProductBo);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -763,7 +766,8 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
|
// 活动已结束
|
|
|
bo.setCutStatus(CutPriceConstant.CUT_STATUS_EXPIRE);
|
|
|
}else{
|
|
|
// 活动进行中
|
|
|
// 活动进行中,是否已经发起砍价
|
|
|
if(null!=bo.getCreateTime()){
|
|
|
// 砍价成功、失败
|
|
|
if(bo.getHasJoinNum() > bo.getJoinNum()){
|
|
|
// 砍价已成功
|
...
|
...
|
@@ -786,6 +790,10 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
|
bo.setCutEndTime(bo.getCreateTime()+TIME_24_HOUR);
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
bo.setCutStatus(CutPriceConstant.CUT_STATUS_NOT_CREATE);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|