Authored by zhouxiang

no message

@@ -40,7 +40,7 @@ public class BigDataOrderInfoTask { @@ -40,7 +40,7 @@ public class BigDataOrderInfoTask {
40 return; 40 return;
41 } 41 }
42 //订单列表转map key:orderCode value:OrderInfo 42 //订单列表转map key:orderCode value:OrderInfo
43 - Map<Integer,OrderInfo> orderMap = Maps.uniqueIndex(orderInfoList, new Function<OrderInfo, Integer>() { 43 + Map<Integer, OrderInfo> orderMap = Maps.uniqueIndex(orderInfoList, new Function<OrderInfo, Integer>() {
44 @Override 44 @Override
45 public Integer apply(OrderInfo input) { 45 public Integer apply(OrderInfo input) {
46 return input.getOrderCode(); 46 return input.getOrderCode();
@@ -49,16 +49,16 @@ public class BigDataOrderInfoTask { @@ -49,16 +49,16 @@ public class BigDataOrderInfoTask {
49 //获取校验后的订单code 49 //获取校验后的订单code
50 List<Integer> orderCodeList = null; 50 List<Integer> orderCodeList = null;
51 //按source分类 51 //按source分类
52 - Map<Integer,List<OrderInfo>> orderInfoMap = Maps.newHashMap();  
53 - for(Integer orderCode : orderCodeList){ 52 + Map<Integer, List<OrderInfo>> orderInfoMap = Maps.newHashMap();
  53 + for (Integer orderCode : orderCodeList) {
54 OrderInfo orderInfo = orderMap.get(orderCode); 54 OrderInfo orderInfo = orderMap.get(orderCode);
55 //为空直接return 55 //为空直接return
56 - if(null == orderInfo){ 56 + if (null == orderInfo) {
57 continue; 57 continue;
58 } 58 }
59 //组装分类 59 //组装分类
60 - if(!orderInfoMap.containsKey(orderInfo.getClientId())){  
61 - orderInfoMap.put(orderInfo.getClientId(),Lists.newArrayList(orderInfo)); 60 + if (!orderInfoMap.containsKey(orderInfo.getClientId())) {
  61 + orderInfoMap.put(orderInfo.getClientId(), Lists.newArrayList(orderInfo));
62 continue; 62 continue;
63 } 63 }
64 orderInfoMap.get(orderInfo.getClientId()).add(orderInfo); 64 orderInfoMap.get(orderInfo.getClientId()).add(orderInfo);