| | |
| | | private String motionStatus;//'leave',运动状态 enter#进入,leave#离开 |
| | | private String plateNo;//'A12345',车牌号 |
| | | private String vehicleDoorStatus;//'open',车门状态 open-开门,close-关门 |
| | | private String stockStatus;//'rear',车头车尾状态 front#车头,rear#车尾 |
| | | private String stockStatus;//'rear',车头车尾状态 front#车头,rear#车尾 |
| | | @JSONField(name="BackgroundImage") |
| | | @JsonProperty(value = "BackgroundImage") |
| | | private EventImageInfoRequest backgroundImage;//月台背景大图 |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "对不起,组织类型不正确,请按要求填写~"); |
| | | } |
| | | //查询名称不能重复 |
| | | /* if(companyMapper.selectCount(new QueryWrapper<Company>().lambda() |
| | | if(companyMapper.selectCount(new QueryWrapper<Company>().lambda() |
| | | .eq(Company::getName,company.getName()) |
| | | .eq(Company::getIsdeleted,Constants.ZERO)) >0){ |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "对不起,组织名称不能重复~"); |
| | | }*/ |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(user ==null){ |
| | | user = company.getLoginUserInfo(); |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "对不起,组织类型不正确,请按要求填写~"); |
| | | } |
| | | //查询名称不能重复 |
| | | /* if(companyMapper.selectCount(new QueryWrapper<Company>().lambda() |
| | | if(companyMapper.selectCount(new QueryWrapper<Company>().lambda() |
| | | .eq(Company::getName,company.getName()) |
| | | .ne(Company::getId,company.getId()) |
| | | .eq(Company::getIsdeleted,Constants.ZERO)) >0){ |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "对不起,组织名称不能重复~"); |
| | | }*/ |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(user == null){ |
| | | user = company.getLoginUserInfo(); |
| | |
| | | //各车道车辆状态 |
| | | EventPlatformCarsStatusInfoRequest status = data.getHPVehicleStatus(); |
| | | eventList.add(initPlatformEventModel(request,data,status));//封装事件(已月台通道为维度) |
| | | if(StringUtils.isBlank(status.getPlateNo())){ |
| | | continue;//如果车辆信息为空,不处理直接跳过 |
| | | } |
| | | PlatformDevice model = platformDeviceMapper.selectOne(new QueryWrapper<PlatformDevice>().lambda() |
| | | .eq(PlatformDevice::getDeviceId,request.getSrcIndex()) |
| | | .eq(PlatformDevice::getIsdeleted,Constants.ZERO) |
| | |
| | | if(model ==null){ |
| | | continue;//监控点未同步,跳过处理 |
| | | } |
| | | if(StringUtils.isBlank(status.getPlateNo())){ |
| | | continue;//如果车辆信息为空,不处理直接跳过 |
| | | } |
| | | //截掉第一个颜色汉字 |
| | | status.setPlateNo(status.getPlateNo().substring(1,status.getPlateNo().length())); |
| | | PlatformJob job = platformJobMapper.selectJoinOne(PlatformJob.class, new MPJLambdaWrapper<PlatformJob>() |
| | | .selectAll(PlatformJob.class) |
| | | .selectAs(Platform::getName,PlatformJob::getPlatformName) |