parent
89eac4f794
commit
309dff172b
|
@ -427,7 +427,7 @@ public class CarOpenApi {
|
|||
enter.setImage(fileName);
|
||||
//查重
|
||||
List<TenPackRecordEnterEntity> checkRecord = tenPackRecordEnterService.list(new QueryWrapper<TenPackRecordEnterEntity>()
|
||||
.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<TenPackRecordExitEntity> checkRecord = tenPackRecordExitService.list(new QueryWrapper<TenPackRecordExitEntity>()
|
||||
.eq("plate_number",exit.getParkName())
|
||||
.eq("plate_number",exit.getPlateNumber())
|
||||
.eq("exit_time",exit.getExitTime()));
|
||||
if(checkRecord.size()==0){
|
||||
this.tenPackRecordExitService.save(exit);
|
||||
|
|
|
@ -99,9 +99,9 @@ public class MyServerHandler extends SimpleChannelInboundHandler<MyMessage> {
|
|||
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) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue