Commit 37456f5d by caosy

360 980 送卷

parent de295110
......@@ -49,6 +49,7 @@ public class CommuneNotifyService extends AbstractNotifyService {
private UserExtDao userExtDao;
private static Logger logger = LoggerFactory.getLogger(CommuneNotifyService.class);
......@@ -70,7 +71,7 @@ public class CommuneNotifyService extends AbstractNotifyService {
String uid = order.getUid();//下单人id
String recommendUid = communeOrderItem.getRecommendUid();//推荐人id
this.doPaySuccess(order);
//执行发券规则
//推荐 送卷 执行发券规则
if(OrderCategoryEnum.COMMUNE.getKey() == order.getOrderCategory()){
if(order.getAmount().intValue()==980 ){
//1:执行充值人的小程序送券
......@@ -81,6 +82,9 @@ public class CommuneNotifyService extends AbstractNotifyService {
}
}
}
//执行发券
BuyVoucherActivity buyVoucherActivity = buyVoucherActivityDao.findById(communeOrderItem.getActivityId());
voucherService.sendVoucherForPlaceOrderByConfig(uid, order.getOrderId()+"", true, buyVoucherActivity.getVoucherConfig());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment