소스 검색

地磅取消车牌校验

donglang 3 주 전
부모
커밋
adeb6aeb14
1개의 변경된 파일14개의 추가작업 그리고 1개의 파일을 삭제
  1. 14 1
      iot-platform-manager/src/main/java/com/platform/api/controller/WeighbridgeV2Controller.java

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

@@ -95,7 +95,20 @@ public class WeighbridgeV2Controller {
 
         request.setLicensePlate(replac2);
         request.setUuid(req.getUuid());
-        return weighbridgeRecordManage.handleValidateLicensePlate(request);
+        log.info("车牌验证, 车牌:{}", request.getLicensePlate());
+        LicensePlateValidateResponse response = new LicensePlateValidateResponse();
+        log.info("车牌验证成功");
+        response.setStatus(Boolean.TRUE);
+        response.setCode(200);
+        response.setMessage("车牌验证成功");
+
+        response.setData(new LicensePlateValidateResponse.Data());
+        response.getData().setTimestamp(System.currentTimeMillis()/1000);
+        response.getData().setScreen_message("车牌验证成功");
+        response.getData().setVoice_message("车牌验证成功");
+        response.getData().setWarning(null);
+        return response;
+        //return weighbridgeRecordManage.handleValidateLicensePlate(request);
     }
 
     @Operation(summary = "地磅过磅数据上报", description = "接收地磅设备上报的过磅数据和图片")