Esempio n. 1
0
 public void testBatchInsertOrderInfo() throws Throwable {
   List<OrderInfo> orderInfoList = new ArrayList<OrderInfo>();
   orderInfoList.add(new OrderInfo(null, 1L, 10000.0, 10.0, "2013-10-22 16:55:43"));
   orderInfoList.add(new OrderInfo(null, 1L, 10000.0, 10.0, "2013-10-22 16:55:43"));
   orderInfoList.add(new OrderInfo(null, 1L, 10000.0, 10.0, "2013-10-22 16:55:43"));
   orderInfoList.add(new OrderInfo(null, 1L, 10000.0, 10.0, "2013-10-22 16:55:43"));
   orderInfoList.add(new OrderInfo(null, 1L, 10000.0, 10.0, "2013-10-22 16:55:43"));
   orderInfoService.batchInsertOrderInfo(orderInfoList);
 }
Esempio n. 2
0
 public void testCreateOrder() throws Throwable {
   OrderInfo mainOrderInfo = new OrderInfo(null, null, 0.0, 0.0, "2013-10-22 16:55:43");
   List<OrderItem> orderItemList = new ArrayList<OrderItem>();
   for (int i = 0; i < 5; i++) {
     OrderItem orderItem =
         new OrderItem(null, 10001L, "iPhone 5s 土豪金", 6998.0, 1 + i, "2013-10-22 16:55:43");
     orderItemList.add(orderItem);
   }
   orderInfoService.createOrder(mainOrderInfo, orderItemList);
 }
Esempio n. 3
0
 public void testInsertOrderInfo() throws Throwable {
   OrderInfo mainOrderInfo = new OrderInfo(null, null, 10000.0, 10.0, "2013-10-22 16:55:43");
   orderInfoService.insertOrderInfo(mainOrderInfo);
 }