Commit 771045f4 by chongli

980发券时使用uid

parent fce9f53f
......@@ -143,7 +143,7 @@ public class CommuneOrderService extends AbstractOrderService<CommuneOrderBean,
Date now = new Date();
if(sendBeginTime.getTime()<now.getTime()&&now.getTime()<sendEndTime.getTime()){
VoucherRule voucherRule = this.getVoucherRuleDao().findById(Integer.parseInt(commune_voucher_configs[0]));
this.getVoucherDao().sendVoucherToSpecificUsers(voucherRule, order.getContactTel(), voucherRule.getQuantity());
this.getVoucherDao().sendVoucherToSpecificUsers(voucherRule, order.getUid(), voucherRule.getQuantity());
}
} catch (ParseException e) {
e.printStackTrace();
......
......@@ -4,7 +4,9 @@ import com.ctrip.fun.common.core.util.DateUtil;
import com.ctrip.fun.common.vo.market.RmdCodeReportQuery;
import com.ctrip.fun.common.vo.market.UserOrderBehaviourStatisticsBean;
import com.ctrip.fun.common.vo.statistics.query.UserStatisticsQuery;
import com.ctrip.fun.golf.dao.order.OrderDao;
import com.ctrip.fun.golf.dao.user.UserOrderBehaviourStatisticsDao;
import com.ctrip.fun.golf.service.order.CommuneOrderService;
import com.ctrip.fun.golf.service.payment.CommuneNotifyService;
import com.ctrip.fun.golf.vo.PagedEntityBean;
......@@ -19,6 +21,8 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
......@@ -33,11 +37,14 @@ public class UserOrderBehaviourStatisticsDaoTest{
private UserOrderBehaviourStatisticsDao userOrderBehaviourStatisticsDao;
@Autowired
private CommuneNotifyService communeNotifyService;
private CommuneOrderService communeOrderService;
@Autowired
private OrderDao orderDao;
@Test
public void testListNonOrderUser() throws Exception {
communeNotifyService.executeOrderActive(null);
communeOrderService.executeOrderActive(orderDao.getOrderByID(1317857115));
}
@Test
......
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