luseweixiao 5 дней назад
Родитель
Сommit
714496abc2

+ 1 - 1
src/main/java/com/sl/ms/web/enterprise/controller/OrderController.java

@@ -82,7 +82,7 @@ public class OrderController {
     @Value("${role.notice.roleIds}")
     private List<String> noticeRoleIds;
 
-    private static boolean DEBUG = false;
+    private static boolean DEBUG = true;
     @Autowired
     private AuthFeign authFeign;
     @Autowired

+ 8 - 1
src/main/java/com/sl/ms/web/enterprise/service/impl/OrderServiceImpl.java

@@ -273,10 +273,17 @@ public class OrderServiceImpl implements OrderService {
         OrderDTO orderDTO;
         try {
             orderDTO = orderFeign.mailingSaveMultiple(mailingSaveMultipleDTO);
+        } catch (SLWebException e) {
+            log.error("【mailingSaveMultiple报错】", e);
+            e.printStackTrace();
+            return ApiResponse.error(SZColdChainConstant.CODE_SERVICE_INNER_ERROR, e.getMsg());
         } catch (SLException e) {
             log.error("【mailingSaveMultiple报错】", e);
             e.printStackTrace();
-            return ApiResponse.error(SZColdChainConstant.CODE_SERVICE_INNER_ERROR, "服务器错误");
+            return ApiResponse.error(SZColdChainConstant.CODE_SERVICE_INNER_ERROR, e.getMsg());
+        } catch (Exception e) {
+            e.printStackTrace();
+            return ApiResponse.error(SZColdChainConstant.CODE_SERVICE_INNER_ERROR, e.getMessage());
         }
 
         OrderResponse orderResponse = orderDTO2OrderResponse(orderDTO, orderRequest);