|
|
@@ -2,7 +2,6 @@ package com.platform.external.service;
|
|
|
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
|
import com.platform.api.request.CanLiftGateRequest;
|
|
|
-import com.platform.api.request.LicensePlateValidateRequest;
|
|
|
import com.platform.entity.WeighbridgeRecord;
|
|
|
import com.platform.exception.IotException;
|
|
|
import com.platform.external.client.CanLiftGateClient;
|
|
|
@@ -10,7 +9,7 @@ import com.platform.external.client.WeighbridgePushClient;
|
|
|
import com.platform.external.config.CanLiftGateProperties;
|
|
|
import com.platform.external.config.UnloadWeighbridgePushProperties;
|
|
|
import com.platform.external.config.WeighbridgePushProperties;
|
|
|
-import com.platform.external.request.CarInfoReq;
|
|
|
+import com.platform.external.request.WaybillOrderIsPassParam;
|
|
|
import com.platform.external.request.WaybillOrderProcessParam;
|
|
|
import com.platform.external.request.WaybillOrderWeighImageParam;
|
|
|
import com.platform.result.BaseResult;
|
|
|
@@ -21,7 +20,6 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
@@ -149,7 +147,10 @@ public class WeighbridgePushService {
|
|
|
}
|
|
|
try {
|
|
|
log.info("外部系统抬杆校验开始,入参: {}", JSON.toJSONString(request));
|
|
|
- BaseResult<Boolean> response = canLiftGateClient.queryCanLiftGate(request);
|
|
|
+ WaybillOrderIsPassParam param = new WaybillOrderIsPassParam();
|
|
|
+ param.setTruckNo(request.getTruckNo());
|
|
|
+ param.setWeighbridgeCode(StringUtils.isNotBlank(request.getWeighbridgeCode()) ? Long.valueOf(request.getWeighbridgeCode()) : null);
|
|
|
+ BaseResult<Boolean> response = canLiftGateClient.queryCanLiftGate(param);
|
|
|
log.info("外部系统抬杆校验完成,入参: {}, 响应: {}", JSON.toJSONString(request), JSON.toJSONString(response));
|
|
|
if (Objects.isNull(response) || !response.isSuccess()) {
|
|
|
log.warn("外部系统抬杆校验失败,入参: {}, 响应: {}", JSON.toJSONString(request), JSON.toJSONString(response));
|