From 21157ad2527bb657fe1a0b4e844507ec2aa4cc38 Mon Sep 17 00:00:00 2001 From: yuxue Date: Mon, 11 May 2020 14:05:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E6=96=B0=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yuxue/service/impl/PlateServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/yuxue/service/impl/PlateServiceImpl.java b/src/main/java/com/yuxue/service/impl/PlateServiceImpl.java index 168111b3..3afb57f8 100644 --- a/src/main/java/com/yuxue/service/impl/PlateServiceImpl.java +++ b/src/main/java/com/yuxue/service/impl/PlateServiceImpl.java @@ -88,14 +88,12 @@ public class PlateServiceImpl implements PlateService { plateFileMapper.insertSelective(e); } reRecognise = true; + } else { + e = list.get(0); } if(reRecognise) { doRecognise(f, e, 0); // 重新识别 - } - if(null == e) { - e = list.get(0); - } else { e = plateFileMapper.selectByPrimaryKey(e.getId()); // 重新识别之后,重新获取一下数据 }