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