Commit 676e7196 by 罗承锋

修改异常输出

parent 475ea077
...@@ -75,7 +75,6 @@ public class IntelligenceSendOrder { ...@@ -75,7 +75,6 @@ public class IntelligenceSendOrder {
List<Map<String, Object>> list1 = new ArrayList<>(); List<Map<String, Object>> list1 = new ArrayList<>();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
String currentTimeStr = ""; String currentTimeStr = "";
ORDERSEQ = order.get("kd_order_id").toString(); ORDERSEQ = order.get("kd_order_id").toString();
currentTimeStr = simpleDateFormat.format(new Date()); currentTimeStr = simpleDateFormat.format(new Date());
Wrapper<OrderView> orderViewWrapper = new EntityWrapper<>(); Wrapper<OrderView> orderViewWrapper = new EntityWrapper<>();
...@@ -84,7 +83,6 @@ public class IntelligenceSendOrder { ...@@ -84,7 +83,6 @@ public class IntelligenceSendOrder {
if (orderViewMaps != null && orderViewMaps.size() > 0) { if (orderViewMaps != null && orderViewMaps.size() > 0) {
orderMap = orderViewMaps.get(0); orderMap = orderViewMaps.get(0);
} }
if (orderMap == null) { if (orderMap == null) {
log.info("错误记录:" + JSONObject.toJSONString(order)); log.info("错误记录:" + JSONObject.toJSONString(order));
log.info("订单号:" + ORDERSEQ + ",在order_view表中无记录,无法进行智能平台下单"); log.info("订单号:" + ORDERSEQ + ",在order_view表中无记录,无法进行智能平台下单");
...@@ -224,7 +222,8 @@ public class IntelligenceSendOrder { ...@@ -224,7 +222,8 @@ public class IntelligenceSendOrder {
log.info("重复订单"); log.info("重复订单");
} }
}catch (Exception e){ }catch (Exception e){
e.getMessage(); log.info("单宽下单失败");
e.printStackTrace();
} }
} }
...@@ -254,6 +253,7 @@ public class IntelligenceSendOrder { ...@@ -254,6 +253,7 @@ public class IntelligenceSendOrder {
} }
}catch( Exception e) { }catch( Exception e) {
log.info(e.toString()); log.info(e.toString());
e.printStackTrace();
} }
} }
...@@ -700,7 +700,7 @@ public class IntelligenceSendOrder { ...@@ -700,7 +700,7 @@ public class IntelligenceSendOrder {
log.error("查询单宽带(预付费、移动、融合、续约、增值)产品接口异常尝试20次失误。请检查接口"); log.error("查询单宽带(预付费、移动、融合、续约、增值)产品接口异常尝试20次失误。请检查接口");
} }
} catch (Exception e) { } catch (Exception e) {
System.out.println("单宽带下单接口异常"); log.info("单宽带下单接口异常");
e.printStackTrace(); e.printStackTrace();
} finally { } finally {
httpPost.releaseConnection(); httpPost.releaseConnection();
...@@ -765,7 +765,7 @@ public class IntelligenceSendOrder { ...@@ -765,7 +765,7 @@ public class IntelligenceSendOrder {
log.error("查询单宽带(预付费、移动、融合、续约、增值)产品接口异常尝试20次失误。请检查接口"); log.error("查询单宽带(预付费、移动、融合、续约、增值)产品接口异常尝试20次失误。请检查接口");
} }
} catch (Exception e) { } catch (Exception e) {
System.out.println("查询单宽带(预付费、移动、融合、续约、增值)产品接口异常"); log.info("查询单宽带(预付费、移动、融合、续约、增值)产品接口异常");
e.printStackTrace(); e.printStackTrace();
} finally { } finally {
httpPost.releaseConnection(); httpPost.releaseConnection();
...@@ -1825,7 +1825,7 @@ public class IntelligenceSendOrder { ...@@ -1825,7 +1825,7 @@ public class IntelligenceSendOrder {
log.info("宽叠移下单接口,返回信息:" + httpResult); log.info("宽叠移下单接口,返回信息:" + httpResult);
resultDataJson = net.sf.json.JSONObject.fromObject(httpResult); resultDataJson = net.sf.json.JSONObject.fromObject(httpResult);
} catch (Exception e) { } catch (Exception e) {
System.out.println("宽叠移下单接口异常"); log.info("宽叠移下单接口异常");
e.printStackTrace(); e.printStackTrace();
} finally { } finally {
httpPost.releaseConnection(); httpPost.releaseConnection();
......
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 to comment