Commit afd42a8d by zhangchen

1.测试

parent 0a2d38f2
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
* Copyright 2014 CTRIP Co.,Ltd. All rights reserved. * Copyright 2014 CTRIP Co.,Ltd. All rights reserved.
*/ */
package com.ctrip.fun.golf.service.payment; package com.ctrip.fun.golf.service.payment;
import java.math.BigDecimal;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -99,6 +100,8 @@ public class CommuneNotifyService extends AbstractNotifyService { ...@@ -99,6 +100,8 @@ public class CommuneNotifyService extends AbstractNotifyService {
Order order = this.getOrderDao().getOrderByOrderNo(Long.parseLong(ordersSn)); Order order = this.getOrderDao().getOrderByOrderNo(Long.parseLong(ordersSn));
CommuneOrderItem communeOrderItem = communeOrderItemDao.getByOrderId(order.getOrderId()).get(0); CommuneOrderItem communeOrderItem = communeOrderItemDao.getByOrderId(order.getOrderId()).get(0);
BuyVoucherActivity buyVoucherActivity = buyVoucherActivityDao.findById(communeOrderItem.getActivityId()); BuyVoucherActivity buyVoucherActivity = buyVoucherActivityDao.findById(communeOrderItem.getActivityId());
buyVoucherActivity.setIsSendRedPacket(1);
buyVoucherActivity.setRedPacketPrice(new BigDecimal(1));
try { try {
this.getOrderDao().updateOrderStatusForMiniApps(Long.parseLong(ordersSn)); this.getOrderDao().updateOrderStatusForMiniApps(Long.parseLong(ordersSn));
} catch (Exception e) { } catch (Exception e) {
...@@ -218,4 +221,11 @@ public class CommuneNotifyService extends AbstractNotifyService { ...@@ -218,4 +221,11 @@ public class CommuneNotifyService extends AbstractNotifyService {
public void setCommuneInviteActivityService(CommuneInviteActivityService communeInviteActivityService) { public void setCommuneInviteActivityService(CommuneInviteActivityService communeInviteActivityService) {
this.communeInviteActivityService = communeInviteActivityService; this.communeInviteActivityService = communeInviteActivityService;
} }
public String test() {
BuyVoucherActivity buyVoucherActivity = buyVoucherActivityDao.findById(22);
BuyVoucherActivity buyVoucherActivity2 = buyVoucherActivityDao.findById1(22);
return null;
}
} }
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