| | |
| | | carrecord.setInOrOut(Constants.ZERO); |
| | | } |
| | | //车辆进入记录对应业务类型 |
| | | if(event.getCarType() ==null || event.getCarType().equals(Constants.RetentionCarType.other)){ |
| | | if(isCarInOrOutEvent(request) &&( event.getCarType() ==null || event.getCarType().equals(Constants.RetentionCarType.other))){ |
| | | //如果未识别到车型,不是固定车 也不是货运车辆,则检查是否是访客车 |
| | | visitsList = visitsMapper.selectList(new QueryWrapper<Visits>().lambda() |
| | | .eq(Visits::getCarNos,event.getPlateNos()) |
| | |
| | | } |
| | | } |
| | | } |
| | | if(carrecord.getInOrOut()!=null && event.getCarType() !=null && !event.getCarType().equals(Constants.RetentionCarType.fkCar)){ |
| | | if(isCarInOrOutEvent(request) && event.getCarType() !=null && !event.getCarType().equals(Constants.RetentionCarType.fkCar)){ |
| | | //录入非访客类型车辆进出记录 |
| | | dealNotFkCarMemberBiz(event,request,carrecord,retentionList,inoutDayCount,inoutRecordList); |
| | | } |
| | |
| | | return event; |
| | | } |
| | | |
| | | private boolean isCarInOrOutEvent(EventParkInfoRequest request) { |
| | | if(Constants.formatIntegerNum(request.getEventType()) == HKConstants.EventTypes.PARK_PASS_IN.getKey() || |
| | | Constants.formatIntegerNum(request.getEventType()) == HKConstants.EventTypes.PARK_PASS_OUT.getKey()){ |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | private void dealNotFkCarMemberBiz( CarEvent event ,EventParkInfoRequest request, InoutRecord carrecord,List<Retention> retentionList,InoutDayCount inoutDayCount,List<InoutRecord> inoutRecordList) { |
| | | //录入非访客类型车辆进出记录 |
| | | carrecord.setCarBizType(event.getCarType()==null?Constants.RetentionCarType.other:event.getCarType()); |