1.修复上传停车记录查询重复记录的bug
This commit is contained in:
gaoben 2021-05-25 10:06:42 +08:00
parent 89eac4f794
commit 309dff172b
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

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