毕业设计 - 题目: 基于dataV的大屏可视化系统

关键技术

springboot+vue,dataV,前后端分离,卫星大屏可视化系统

计算机毕业生设计,课程设计需要帮助的可以联系我,**q-》2710549378**

系统运行环境

idea,maven,mysql5.7

代码展示

 @GetMapping("/last")
    public SatelliteChartBean getLast() {

        var lastLog = runningLogMapper.selectOne(
                Wrappers.lambdaQuery()
                        .select(RunningLogEntity::getVersion)
                        .orderByDesc(RunningLogEntity::getVersion)
                        .last("LIMIT 1")
        );
        if (lastLog == null) {
            return null;
        }

        SatelliteChartBean bean = new SatelliteChartBean();
        bean.setLine(
                new LineBean()
                        .setColor("#0066CC")
        );

        var satelliteList = satelliteMapper.selectList(
                Wrappers.lambdaQuery()
                        .in(
                                SatelliteEntity::getStatus,
                                Arrays.asList(StatusEnum.ACTIVE.code(), StatusEnum.UNSTABLE.code())
                        )
        );
        List pointsList = new ArrayList<>();
        for (SatelliteEntity satellite : satelliteList) {
            PointsBean points = new PointsBean();
            points.setName(satellite.getSatelliteName());
            points.setCoordinate(Arrays.asList(satellite.getLongitude(), satellite.getLatitude()));
            pointsList.add(points);
        }

        var stationList = stationMapper.selectList(
                Wrappers.lambdaQuery()
                        .in(
                                StationEntity::getStatus,
                                Arrays.asList(StatusEnum.ACTIVE.code(), StatusEnum.UNSTABLE.code())
                        )
        );
        for (StationEntity station : stationList) {
            PointsBean points = new PointsBean();
            points.setName(station.getStationName());
            points.setCoordinate(Arrays.asList(station.getLongitude(), station.getLatitude()));
            pointsList.add(points);
        }

        bean.setPoints(pointsList);

        var logList = runningLogMapper.selectList(
                Wrappers.lambdaQuery()
                        .eq(RunningLogEntity::getVersion, lastLog.getVersion())
                        .eq(RunningLogEntity::getSourceType, RunningLogTypeEnum.SATELLITE.code())
                        .eq(RunningLogEntity::getTargetType, RunningLogTypeEnum.STATION.code())
        );
        var linesList = new ArrayList();
        for (RunningLogEntity log : logList) {

            var source = satelliteMapper.selectById(log.getSourceId());
            var target = stationMapper.selectById(log.getTargetId());

            var lines = new LinesBean();
            lines.setSource(source.getSatelliteName());
            lines.setTarget(target.getStationName());
            linesList.add(lines);
        }
        bean.setLines(linesList);

        return bean;
    }

项目功能截图展示

毕业设计 - 题目: 基于dataV的大屏可视化系统_第1张图片

 毕业设计 - 题目: 基于dataV的大屏可视化系统_第2张图片

毕业设计 - 题目: 基于dataV的大屏可视化系统_第3张图片

毕业设计 - 题目: 基于dataV的大屏可视化系统_第4张图片

毕业设计 - 题目: 基于dataV的大屏可视化系统_第5张图片

你可能感兴趣的:(计算机毕设,计算机毕业设计,大屏可视化,springboot,vue,后端)