chenxiaofei пре 4 недеља
родитељ
комит
cfe8919f31

+ 6 - 3
iot-platform-common/src/main/java/com/platform/exception/IotException.java

@@ -46,13 +46,16 @@ public class IotException extends RuntimeException {
     }
 
     public IotException(int errorCodeEnum, String errorMsg) {
+        super(errorMsg);
         this.errorCode = String.valueOf(errorCodeEnum);
         this.errorMsg = errorMsg;
-
     }
 
-    public IotException( String errorMsg) {
+
+
+    public IotException(String errorMsg) {
+        super(errorMsg);
         this.errorCode = "60500";
         this.errorMsg = errorMsg;
     }
-}
+}

+ 1 - 1
iot-platform-manager/src/main/java/com/platform/external/service/WeighbridgePushService.java

@@ -75,7 +75,7 @@ public class WeighbridgePushService {
         if (Objects.isNull(response) || !response.isSuccess()){
             log.error("外部系统地磅数据推送失败,记录ID: {}, 车牌号: {}",
                     record.getId(), record.getLicensePlate());
-            throw new IotException("外部系统地磅数据推送失败");
+            throw new IotException("外部系统地磅数据推送失败,失败原因====>"+response.getMessage());
         }
     }