Просмотр исходного кода

抬杆查询接口新增地磅编号

donglang 1 неделя назад
Родитель
Сommit
27480d8075

+ 0 - 1
iot-platform-manager/src/main/java/com/platform/api/controller/WeighbridgeV2Controller.java

@@ -23,7 +23,6 @@ import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
 import java.math.BigDecimal;
-import java.util.List;
 
 
 /**

+ 1 - 1
iot-platform-manager/src/main/java/com/platform/external/request/WaybillOrderIsPassParam.java

@@ -28,6 +28,6 @@ public class WaybillOrderIsPassParam implements Serializable {
      * 地磅编号
      */
     @Schema(description = "地磅编号")
-    private Long weighbridgeCode;
+    private Long weighbridgeId;
 
 }

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

@@ -149,15 +149,15 @@ public class WeighbridgePushService {
             log.info("外部系统抬杆校验开始,入参: {}", JSON.toJSONString(request));
             WaybillOrderIsPassParam param = new WaybillOrderIsPassParam();
             param.setTruckNo(request.getTruckNo());
-            param.setWeighbridgeCode(StringUtils.isNotBlank(request.getWeighbridgeCode()) ? Long.valueOf(request.getWeighbridgeCode()) : null);
+            param.setWeighbridgeId(StringUtils.isNotBlank(request.getWeighbridgeCode()) ? Long.valueOf(request.getWeighbridgeCode()) : null);
             BaseResult<Boolean> response = canLiftGateClient.queryCanLiftGate(param);
-            log.info("外部系统抬杆校验完成,入参: {}, 响应: {}", JSON.toJSONString(request), JSON.toJSONString(response));
+            log.info("外部系统抬杆校验完成,入参: {}, 响应: {}", JSON.toJSONString(param), JSON.toJSONString(response));
             if (Objects.isNull(response) || !response.isSuccess()) {
-                log.warn("外部系统抬杆校验失败,入参: {}, 响应: {}",  JSON.toJSONString(request), JSON.toJSONString(response));
+                log.warn("外部系统抬杆校验失败,入参: {}, 响应: {}",  JSON.toJSONString(param), JSON.toJSONString(response));
                 return false;
             }
             boolean canLiftGate = response.getData();
-            log.info("外部系统抬杆校验完成,入参: {}, 是否允许抬杆: {}", JSON.toJSONString(request), canLiftGate);
+            log.info("外部系统抬杆校验完成,入参: {}, 是否允许抬杆: {}", JSON.toJSONString(param), canLiftGate);
             return canLiftGate;
         } catch (Exception e) {
             log.error("外部系统抬杆校验异常,入参: {}", JSON.toJSONString(request), e);