Jelajahi Sumber

20211028后端更新代码

mashengyi 3 tahun lalu
induk
melakukan
38265e22aa

+ 8 - 8
src/main/java/com/jkcredit/invoice/service/upService/impl/CommInterFaceImpl.java

@@ -22,11 +22,11 @@ public class CommInterFaceImpl implements CommInterFace{
             log.info("CommInterFaceImpl.companyQuery上游接口返回:{},请求参数:{}", response.toString(), companyQueryRequest.toString());
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error("CommInterFaceImpl.companyQuery:{}",e.getMessage());
+            log.error("CommInterFaceImpl.companyQuery:{}",e.getMessage()+ " ,请求参数:"+companyQueryRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error("CommInterFaceImpl.companyQuery:{}",apie.getMessage());
+            log.error("CommInterFaceImpl.companyQuery:{}",apie.getMessage()+ " ,请求参数:"+companyQueryRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -42,11 +42,11 @@ public class CommInterFaceImpl implements CommInterFace{
             log.info("CommInterFaceImpl.addCompany上游接口返回:{},请求参数:{}", response.toString(), companyAddRequest.toString());
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error("CommInterFaceImpl.addCompany:{}", e.getMessage());
+            log.error("CommInterFaceImpl.addCompany:{}", e.getMessage()+ " ,请求参数:"+companyAddRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error("CommInterFaceImpl.addCompany:{}", apie.getMessage());
+            log.error("CommInterFaceImpl.addCompany:{}", apie.getMessage()+ " ,请求参数:"+companyAddRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -64,10 +64,10 @@ public class CommInterFaceImpl implements CommInterFace{
             return new RespR<>(response);
         } catch (IOException e) {
             e.printStackTrace();
-            log.error("CommInterFaceImpl.b2bContractAdd:{}",e.getMessage());
+            log.error("CommInterFaceImpl.b2bContractAdd:{}",e.getMessage()+ " ,请求参数:"+contractAddRequest.toString());
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error("CommInterFaceImpl.b2bContractAdd:{}",apie.getMessage());
+            log.error("CommInterFaceImpl.b2bContractAdd:{}",apie.getMessage()+ " ,请求参数:"+contractAddRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -85,11 +85,11 @@ public class CommInterFaceImpl implements CommInterFace{
             return new RespR<>(response);
         } catch (IOException e) {
             e.printStackTrace();
-            log.error("CommInterFaceImpl.b2bContractQuery:{}",  e.getMessage());
+            log.error("CommInterFaceImpl.b2bContractQuery:{}",  e.getMessage()+ " ,请求参数:"+b2bContractQueryRequest.toString());
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
             apie.printStackTrace();
-            log.error("CommInterFaceImpl.b2bContractQuery:{}",  apie.getMessage());
+            log.error("CommInterFaceImpl.b2bContractQuery:{}",  apie.getMessage()+ " ,请求参数:"+b2bContractQueryRequest.toString());
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
     }

+ 18 - 18
src/main/java/com/jkcredit/invoice/service/upService/impl/NoCarInterfaceImpl.java

@@ -29,11 +29,11 @@ public class NoCarInterfaceImpl implements NoCarInterface {
             return new RespR<>(response);
         } catch (IOException e) {
             e.printStackTrace();
-            log.error(e.getMessage());
+            log.error(e.getMessage() + " ,请求参数:"+registerRequest.toString());
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
             apie.printStackTrace();
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+registerRequest.toString());
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
     }
@@ -49,11 +49,11 @@ public class NoCarInterfaceImpl implements NoCarInterface {
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+vehicleQueryRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+vehicleQueryRequest.toString());
             apie.printStackTrace();
 
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
@@ -70,11 +70,11 @@ public class NoCarInterfaceImpl implements NoCarInterface {
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+waybillStartRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+waybillStartRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -90,11 +90,11 @@ public class NoCarInterfaceImpl implements NoCarInterface {
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+waybillEndRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+waybillEndRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -112,11 +112,11 @@ public class NoCarInterfaceImpl implements NoCarInterface {
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+waybillHistoryStartRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+waybillHistoryStartRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -133,11 +133,11 @@ public class NoCarInterfaceImpl implements NoCarInterface {
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+waybillHistoryEndRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+waybillHistoryEndRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -154,11 +154,11 @@ public class NoCarInterfaceImpl implements NoCarInterface {
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+waybillNumFindInvoiceRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+waybillNumFindInvoiceRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -175,11 +175,11 @@ public class NoCarInterfaceImpl implements NoCarInterface {
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+waybillInvoiceRedQueryRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+waybillInvoiceRedQueryRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -196,11 +196,11 @@ public class NoCarInterfaceImpl implements NoCarInterface {
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+waybillCountQueryRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+waybillCountQueryRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }

+ 20 - 20
src/main/java/com/jkcredit/invoice/service/upService/impl/SelfCarInterfaceImpl.java

@@ -28,11 +28,11 @@ public class SelfCarInterfaceImpl  implements SelfCarInterface{
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+cardBindQueryListToBRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+cardBindQueryListToBRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -49,11 +49,11 @@ public class SelfCarInterfaceImpl  implements SelfCarInterface{
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+cardQueryCardToBRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+cardQueryCardToBRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -71,11 +71,11 @@ public class SelfCarInterfaceImpl  implements SelfCarInterface{
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+cardBindingToBRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+cardBindingToBRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -93,11 +93,11 @@ public class SelfCarInterfaceImpl  implements SelfCarInterface{
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+cardValidCodeToBRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+cardValidCodeToBRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -115,11 +115,11 @@ public class SelfCarInterfaceImpl  implements SelfCarInterface{
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+cardUnbindToBRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+cardUnbindToBRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -137,11 +137,11 @@ public class SelfCarInterfaceImpl  implements SelfCarInterface{
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+cardTradeRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请稍后再试");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+cardTradeRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -157,11 +157,11 @@ public class SelfCarInterfaceImpl  implements SelfCarInterface{
             log.info("SelfCarInterfaceImpl.b2BInvoiceApply上游接口返回:{},请求参数:{}", response.toString(), b2BInvoiceApplyRequest.toString());
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+b2BInvoiceApplyRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+b2BInvoiceApplyRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -179,11 +179,11 @@ public class SelfCarInterfaceImpl  implements SelfCarInterface{
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+b2BInvoiceQueryRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+b2BInvoiceQueryRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -200,11 +200,11 @@ public class SelfCarInterfaceImpl  implements SelfCarInterface{
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+b2BInvoiceQueryByApplyRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+b2BInvoiceQueryByApplyRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }
@@ -221,11 +221,11 @@ public class SelfCarInterfaceImpl  implements SelfCarInterface{
 
             return new RespR<>(response);
         } catch (IOException e) {
-            log.error(e.getMessage());
+            log.error(e.getMessage()+ " ,请求参数:"+b2bInvoicePackageRequest.toString());
             e.printStackTrace();
             return new RespR(false,"网络异常,请联系管理人员");
         }catch (ApiRequestException apie) {
-            log.error(apie.getMessage());
+            log.error(apie.getMessage()+ " ,请求参数:"+b2bInvoicePackageRequest.toString());
             apie.printStackTrace();
             return new RespR(false,"错误码:"+apie.getErrCode()+" 错误信息:"+apie.getMessage());
         }