| | |
| | | //更新状态 (月台状态 0-无车 1-有车 2-超时停靠 3-错误停靠) |
| | | for(PlatformStatusInfoResponse d : allHkList){ |
| | | platformMapper.update(null,new UpdateWrapper<Platform>().lambda() |
| | | .set(Platform::getStatus,d.getStatus()) |
| | | .set(Platform::getPlatformStatus,d.getStatus()) |
| | | .set(Platform::getEditDate,date) |
| | | .eq(Platform::getHkId,d.getPlatformId())); |
| | | } |
| | |
| | | |
| | | private List<PlatformDevice> getCameraList(List<PlatformCameraInfoResponse> cameras, Platform model) { |
| | | List<PlatformDevice> list = new ArrayList<>(); |
| | | if(cameras!=null || cameras.size()>0){ |
| | | if(cameras!=null && cameras.size()>0){ |
| | | for(PlatformCameraInfoResponse param :cameras){ |
| | | PlatformDevice d = new PlatformDevice(); |
| | | d.setCreateDate(model.getCreateDate()); |