Authored by zhengwen.ge

去掉测试类

package com.test;
import com.yoho.unions.server.service.impl.DuomaiServiceImpl;
import com.yoho.unions.vo.OrderInfo;
import com.yoho.unions.vo.OrdersGood;
import java.math.BigDecimal;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.List;
/**
* Created by yoho on 2016/12/20.
*/
public class DuomaiTest {
public static void main(String args[]){
List<OrderInfo> orderInfoList = new ArrayList<>();
OrderInfo orderInfo = new OrderInfo();
orderInfo.setOrderCode("1071030883");
orderInfo.setClientId(3017);
orderInfo.setOrderStatus("1");
List<OrdersGood> ordersGoods = new ArrayList<>();
OrdersGood ordersGood = new OrdersGood();
ordersGood.setBuyNumber(2);
ordersGood.setLastPrice(new BigDecimal(12));
ordersGood.setProductName("NIKE");
ordersGood.setProductSkn("20193911");
ordersGoods.add(ordersGood);
orderInfo.setOrdersGoods(ordersGoods);
orderInfoList.add(orderInfo);
DuomaiServiceImpl duomaiService = new DuomaiServiceImpl();
duomaiService.pushOrder(orderInfoList);
String encoude = "hash%3D96613bf38393aa3d16451218f22344a8%26euid%3D189018877%26order_sn%3D1612568846%26order_time%3D2016-12-05+22%3A13%3A40%26orders_price%3D158.0%26promotion_code%3D0%26is_new_custom%3D1%26channel%3D0%26status%3D0%26goods_id%3D690870%26goods_name%3D%2520N%2520O%2520T%2520H%2520O%2520M%2520M%2520E%2520%25%25202%25200%2520%E8%B4%B4%2520%E8%A2%8B%2520%E6%9D%9F%2520%E8%84%9A%2520%E5%B7%A5%2520%E8%A3%85%2520%E8%A3%A4%2520%26goods_price%3D158.0%26goods_ta%3D1%26goods_cate%3D129%26goods_cate_name%3D0%26totalPrice%3D158.0%26rate%3D0%26commission%3D%26commission_type%3D0%26coupon%3D0.0";
try{
String decode = URLDecoder.decode(encoude,"UTF-8");
System.out.print(decode);
}catch (Exception e){
}
}
}
//package com.test;
//
//import com.yoho.unions.server.service.impl.DuomaiServiceImpl;
//import com.yoho.unions.vo.OrderInfo;
//import com.yoho.unions.vo.OrdersGood;
//
//import java.math.BigDecimal;
//import java.net.URLDecoder;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * Created by yoho on 2016/12/20.
// */
//public class DuomaiTest {
//
// public static void main(String args[]){
// List<OrderInfo> orderInfoList = new ArrayList<>();
// OrderInfo orderInfo = new OrderInfo();
// orderInfo.setOrderCode("1071030883");
// orderInfo.setClientId(3017);
// orderInfo.setOrderStatus("1");
// List<OrdersGood> ordersGoods = new ArrayList<>();
// OrdersGood ordersGood = new OrdersGood();
// ordersGood.setBuyNumber(2);
// ordersGood.setLastPrice(new BigDecimal(12));
// ordersGood.setProductName("NIKE");
// ordersGood.setProductSkn("20193911");
// ordersGoods.add(ordersGood);
// orderInfo.setOrdersGoods(ordersGoods);
// orderInfoList.add(orderInfo);
// DuomaiServiceImpl duomaiService = new DuomaiServiceImpl();
// duomaiService.pushOrder(orderInfoList);
//
// String encoude = "hash%3D96613bf38393aa3d16451218f22344a8%26euid%3D189018877%26order_sn%3D1612568846%26order_time%3D2016-12-05+22%3A13%3A40%26orders_price%3D158.0%26promotion_code%3D0%26is_new_custom%3D1%26channel%3D0%26status%3D0%26goods_id%3D690870%26goods_name%3D%2520N%2520O%2520T%2520H%2520O%2520M%2520M%2520E%2520%25%25202%25200%2520%E8%B4%B4%2520%E8%A2%8B%2520%E6%9D%9F%2520%E8%84%9A%2520%E5%B7%A5%2520%E8%A3%85%2520%E8%A3%A4%2520%26goods_price%3D158.0%26goods_ta%3D1%26goods_cate%3D129%26goods_cate_name%3D0%26totalPrice%3D158.0%26rate%3D0%26commission%3D%26commission_type%3D0%26coupon%3D0.0";
// try{
// String decode = URLDecoder.decode(encoude,"UTF-8");
// System.out.print(decode);
// }catch (Exception e){
//
// }
//
// }
//
//}
... ...