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) { } }