|
@@ -107,6 +107,13 @@ public class ParkingRecordServiceImpl extends ServiceImpl<ParkingRecordMapper, P
|
|
|
|
|
|
//传递的时间参数
|
|
//传递的时间参数
|
|
String dataStr = StringUtils.getAlarmInfoPlateTimeStr(alarmInfoPlate.getResult().getPlateResult().getTimeStamp().getTimeval());
|
|
String dataStr = StringUtils.getAlarmInfoPlateTimeStr(alarmInfoPlate.getResult().getPlateResult().getTimeStamp().getTimeval());
|
|
|
|
+ //比较时间与当前时间,如果相差30S则不处理
|
|
|
|
+ if (DateUtil.parse(dataStr).compareTo(DateUtil.offsetSecond(new Date(),-30)) <0){
|
|
|
|
+ throw new Exception(StrUtil.format("记录时间与创建时间相差超过30s,记录:{}",alarmInfoPlate));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
//图片小
|
|
//图片小
|
|
String imageFragmentFile = alarmInfoPlate.getResult().getPlateResult().getImageFragmentFile();
|
|
String imageFragmentFile = alarmInfoPlate.getResult().getPlateResult().getImageFragmentFile();
|
|
//图片大
|
|
//图片大
|