feature:优化日志打印

zkh
路明慧 11 months ago
parent 9746e275a7
commit e819631612
  1. 12
      order-management-order/src/main/java/com/dxhy/order/consumer/modules/bespoke/controller/OrderHandleController.java
  2. 2
      order-management-order/src/main/java/com/dxhy/order/consumer/modules/bespoke/service/impl/OrderHandleServiceImpl.java
  3. 2
      order-management-order/src/main/java/com/dxhy/order/consumer/modules/bespoke/service/impl/SkOrderServiceImpl.java
  4. 2
      order-management-order/src/main/java/com/dxhy/order/consumer/modules/bespoke/service/impl/YyOrderServiceImpl.java

@ -69,7 +69,7 @@ public class OrderHandleController {
try {
return orderHandleService.readOrder(reqParam);
}catch (Exception e){
log.error("{}订单读入异常", LOGGER_MSG, e);
log.error("{}订单读入异常:{}", LOGGER_MSG, e);
DynamicContextHolder.push(ConfigureConstant.MAIN);
return R.error("订单读入异常,请联系运维人员");
}
@ -122,7 +122,7 @@ public class OrderHandleController {
return orderHandleService.queryList(reqParam);
}catch (Exception e){
log.error("{}查询读入订单异常", LOGGER_MSG, e);
log.error("{}查询读入订单异常:{}", LOGGER_MSG, e);
return R.error("查询列表异常请联系运维人员");
}
@ -157,7 +157,7 @@ public class OrderHandleController {
try {
return orderHandleService.delOrder(reqParam);
}catch (Exception e){
log.error("{}删除读入订单异常", LOGGER_MSG, e);
log.error("{}删除读入订单异常:{}", LOGGER_MSG, e);
return R.error("删除读入订单异常请联系运维人员");
}
@ -190,7 +190,7 @@ public class OrderHandleController {
try {
return orderHandleService.orderExtract(reqParam);
} catch (Exception e){
log.error("{}保存订单异常", LOGGER_MSG, e);
log.error("{}保存订单异常:{}", LOGGER_MSG, e);
return R.error("保存订单异常请联系运维人员");
}finally {
DynamicContextHolder.push(com.dxhy.management.common.constant.ConfigureConstant.MAIN);
@ -225,7 +225,7 @@ public class OrderHandleController {
log.error("发票复制订单异常", e);
return R.error(e.getMessage());
} catch (Exception e) {
log.error("发票复制订单异常", e);
log.error("发票复制订单异常:{}", e);
return R.error();
}
@ -251,7 +251,7 @@ public class OrderHandleController {
return R.ok().put(ConfigureConstant.MSG, "邮箱补发成功"+count+"条");
} catch (Exception e) {
log.error("发票复制订单异常", e);
log.error("邮箱补发:{}", e);
return R.error();
}

@ -409,7 +409,7 @@ public class OrderHandleServiceImpl implements OrderHandleService {
try {
r = orderService.backMsg(orderInvoiceInfo,orderOriginExtendInfos,fileModel,ddh);
}catch (Exception e){
log.error("推送失败", e);
log.error("推送失败:{}", e);
r = R.error("推送时发生异常");
}finally {
DynamicContextHolder.push(com.dxhy.management.common.constant.ConfigureConstant.MAIN);

@ -115,7 +115,7 @@ public class SkOrderServiceImpl implements OrderService {
}
}
}catch (Exception e) {
log.error("订单读取异常", e);
log.error("订单读取异常:{}", e);
return R.error("订单读取异常");
} finally {
DynamicContextHolder.push(ConfigureConstant.MAIN);

@ -120,7 +120,7 @@ public class YyOrderServiceImpl implements OrderService {
}
}
} catch (Exception e) {
log.error("订单读取异常", e);
log.error("订单读取异常:{}", e);
return R.error("订单读取异常");
} finally {
DynamicContextHolder.push(ConfigureConstant.MAIN);

Loading…
Cancel
Save