正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -243,7 +243,7 @@ public class GatherInfoHandle implements GatherInfoService { | @@ -243,7 +243,7 @@ public class GatherInfoHandle implements GatherInfoService { | ||
243 | //2. 校验车辆是否备案 | 243 | //2. 校验车辆是否备案 |
244 | LandRoadVe ve = gatherInfoHandle.veService.selectByFrameNo(vaName); | 244 | LandRoadVe ve = gatherInfoHandle.veService.selectByFrameNo(vaName); |
245 | //若无备案信息或者黑名单,返回车辆未备案或者识别错误, | 245 | //若无备案信息或者黑名单,返回车辆未备案或者识别错误, |
246 | - if (ve == null && !veBlackListCheck(ve)) { | 246 | + if (ve == null || !veBlackListCheck(ve)) { |
247 | log.error(NORECORD+vaName); | 247 | log.error(NORECORD+vaName); |
248 | sendBw(info,false,NORECORD + vaName,null,listinfos); | 248 | sendBw(info,false,NORECORD + vaName,null,listinfos); |
249 | //CommandClient.Client(info, NORECORD + vaName); | 249 | //CommandClient.Client(info, NORECORD + vaName); |
@@ -260,7 +260,7 @@ public class GatherInfoHandle implements GatherInfoService { | @@ -260,7 +260,7 @@ public class GatherInfoHandle implements GatherInfoService { | ||
260 | * 3. 车辆黑名单校验 | 260 | * 3. 车辆黑名单校验 |
261 | */ | 261 | */ |
262 | private boolean veBlackListCheck(LandRoadVe ve){ | 262 | private boolean veBlackListCheck(LandRoadVe ve){ |
263 | - if(ve!=null && "Y".equals(ve.getVeState())){ | 263 | + if("Y".equals(ve.getVeState())){ |
264 | log.info(BLACKLIST+vaName); | 264 | log.info(BLACKLIST+vaName); |
265 | sendBw(info,false,BLACKLIST + vaName,null,listinfos); | 265 | sendBw(info,false,BLACKLIST + vaName,null,listinfos); |
266 | return false; | 266 | return false; |
-
请 注册 或 登录 后发表评论