Commit 05730e412b36e5fdefe4ab7bfa5a67da91a9e17d

Authored by tongzhonghao
1 parent 40cf652b

update

src/main/java/com/huaheng/pc/receipt/receiptHeader/service/ReceiptHeaderService.java
... ... @@ -658,7 +658,7 @@ public class ReceiptHeaderService extends ServiceImpl<ReceiptHeaderMapper, Recei
658 658 break;
659 659 }
660 660  
661   - String msg = "";
  661 + String msg = "接口地址错误或服务器连接不到或返回为空";
662 662 ApiLog log = null;
663 663 HttpHeaders headers = new HttpHeaders();
664 664 try {
... ... @@ -669,6 +669,7 @@ public class ReceiptHeaderService extends ServiceImpl<ReceiptHeaderMapper, Recei
669 669 throw new ServiceException("接口地址错误或服务器连接不到或返回为空");
670 670 }
671 671 ajaxResult = JSON.parseObject(result, AjaxResult.class);
  672 + msg = JSON.toJSONString(ajaxResult);
672 673 }catch (Exception e) {
673 674 e.printStackTrace();
674 675 ApiLogAspect.setApiLogException(log, e);
... ... @@ -712,7 +713,7 @@ public class ReceiptHeaderService extends ServiceImpl<ReceiptHeaderMapper, Recei
712 713 JsonParam = JSON.toJSONString(model);
713 714 break;
714 715 }
715   - String msg = "";
  716 + String msg = "接口地址错误或服务器连接不到或返回为空";
716 717 ApiLog log = null;
717 718 HttpHeaders headers = new HttpHeaders();
718 719 try {
... ... @@ -723,6 +724,7 @@ public class ReceiptHeaderService extends ServiceImpl<ReceiptHeaderMapper, Recei
723 724 return AjaxResult.error("接口地址错误或服务器连接不到或返回为空");
724 725 }
725 726 ajaxResult = JSON.parseObject(result, AjaxResult.class);
  727 + msg = JSON.toJSONString(ajaxResult);
726 728 }catch (Exception e) {
727 729 e.printStackTrace();
728 730 ApiLogAspect.setApiLogException(log, e);
... ...
src/main/java/com/huaheng/pc/shipment/shipmentHeader/service/ShipmentHeaderServiceImpl.java
... ... @@ -454,7 +454,7 @@ public class ShipmentHeaderServiceImpl extends ServiceImpl<ShipmentHeaderMapper,
454 454 String JsonParam = JSON.toJSONString(model);
455 455 String url = addressService.selectAddress(QuantityConstant.U8_SHIPMENT_BACK, warehouseCode);
456 456  
457   - String msg = "";
  457 + String msg = "接口地址错误或服务器连接不到或返回为空";
458 458 ApiLog log = null;
459 459 HttpHeaders headers = new HttpHeaders();
460 460 try {
... ... @@ -465,6 +465,7 @@ public class ShipmentHeaderServiceImpl extends ServiceImpl<ShipmentHeaderMapper,
465 465 throw new ServiceException("接口地址错误或服务器连接不到或返回为空");
466 466 }
467 467 ajaxResult = JSON.parseObject(result, AjaxResult.class);
  468 + msg = JSON.toJSONString(ajaxResult);
468 469 }catch (Exception e) {
469 470 e.printStackTrace();
470 471 ApiLogAspect.setApiLogException(log, e);
... ...