Sfoglia il codice sorgente

车牌验证接口

donglang 4 mesi fa
parent
commit
acf3e306e3

+ 7 - 6
iot-platform-manager/src/main/java/com/platform/manage/WeighbridgeRecordManage.java

@@ -3,6 +3,7 @@ package com.platform.manage;
 import com.platform.api.request.LicensePlateValidateRequest;
 import com.google.common.collect.Maps;
 import com.platform.api.request.WeighbridgePushRequest;
+import com.platform.entity.ValidateLicensePlate;
 import com.platform.entity.WeighbridgeRecord;
 import com.platform.enums.ErrorCodeEnum;
 import com.platform.exception.IotException;
@@ -165,22 +166,22 @@ public class WeighbridgeRecordManage {
         if (validateLicensePlate != null) {
             response.setStatus(Boolean.TRUE);
             response.setCode(200);
-            response.setMessage("上报成功,请放行");
+            response.setMessage("识别车牌成功,车辆请上磅");
 
             response.setData(new LicensePlateValidateResponse.Data());
             response.getData().setTimestamp(System.currentTimeMillis());
-            response.getData().setScreen_message("车辆请下磅");
-            response.getData().setVoice_message("车辆请下磅");
+            response.getData().setScreen_message("识别成功,车辆请上磅");
+            response.getData().setVoice_message("识别成功,车辆请上磅");
             response.getData().setWarning(null);
         } else {
             response.setStatus(Boolean.FALSE);
             response.setCode(400);
-            response.setMessage("上报异常,请稍后");
+            response.setMessage("识别车牌异常,请重新识别或联系管理员");
 
             response.setData(new LicensePlateValidateResponse.Data());
             response.getData().setTimestamp(System.currentTimeMillis());
-            response.getData().setScreen_message("数据上报异常,请联系管理员");
-            response.getData().setVoice_message("数据上报异常,请联系管理员");
+            response.getData().setScreen_message("识别车牌异常或车牌未录入");
+            response.getData().setVoice_message("识别车牌异常或车牌未录入");
             response.getData().setWarning(null);
         }
         return response;