From 309dff172b5600cc858ec949cc5c82955ed9083b Mon Sep 17 00:00:00 2001 From: gaoben Date: Tue, 25 May 2021 10:06:42 +0800 Subject: [PATCH] =?UTF-8?q?v2.0.10=201.=E4=BF=AE=E5=A4=8D=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=81=9C=E8=BD=A6=E8=AE=B0=E5=BD=95=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E8=AE=B0=E5=BD=95=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/shapelight/modules/car/controller/CarOpenApi.java | 4 ++-- .../shapelight/modules/nettyapi/config/MyServerHandler.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shapelight-admin/src/main/java/net/shapelight/modules/car/controller/CarOpenApi.java b/shapelight-admin/src/main/java/net/shapelight/modules/car/controller/CarOpenApi.java index 37370da..46c1983 100644 --- a/shapelight-admin/src/main/java/net/shapelight/modules/car/controller/CarOpenApi.java +++ b/shapelight-admin/src/main/java/net/shapelight/modules/car/controller/CarOpenApi.java @@ -427,7 +427,7 @@ public class CarOpenApi { enter.setImage(fileName); //查重 List checkRecord = tenPackRecordEnterService.list(new QueryWrapper() - .eq("plate_number",enter.getParkName()) + .eq("plate_number",enter.getPlateNumber()) .eq("enter_time",enter.getEnterTime())); if(checkRecord.size()==0){ this.tenPackRecordEnterService.save(enter); @@ -455,7 +455,7 @@ public class CarOpenApi { exit.setImage(fileName); //查重 List checkRecord = tenPackRecordExitService.list(new QueryWrapper() - .eq("plate_number",exit.getParkName()) + .eq("plate_number",exit.getPlateNumber()) .eq("exit_time",exit.getExitTime())); if(checkRecord.size()==0){ this.tenPackRecordExitService.save(exit); diff --git a/shapelight-admin/src/main/java/net/shapelight/modules/nettyapi/config/MyServerHandler.java b/shapelight-admin/src/main/java/net/shapelight/modules/nettyapi/config/MyServerHandler.java index 1846047..3a9b469 100644 --- a/shapelight-admin/src/main/java/net/shapelight/modules/nettyapi/config/MyServerHandler.java +++ b/shapelight-admin/src/main/java/net/shapelight/modules/nettyapi/config/MyServerHandler.java @@ -99,9 +99,9 @@ public class MyServerHandler extends SimpleChannelInboundHandler { if (evt instanceof IdleStateEvent) { IdleStateEvent e = (IdleStateEvent) evt; if (e.state() == IdleState.READER_IDLE) {//没收到任何数据就关掉链接 + log.debug("无数据设备离线:"+clientMap.getUserIdByChannel(ctx.channel())); ctx.close(); clientMap.offline(ctx.channel()); - log.debug("无数据设备离线"); } else if (e.state() == IdleState.WRITER_IDLE) { } }