diff --git a/ruoyi-admin/src/main/resources/templates/monitor/discern/discern.html b/ruoyi-admin/src/main/resources/templates/monitor/discern/discern.html index 2c2968b..e3dca53 100644 --- a/ruoyi-admin/src/main/resources/templates/monitor/discern/discern.html +++ b/ruoyi-admin/src/main/resources/templates/monitor/discern/discern.html @@ -14,10 +14,10 @@ 雷达位置:
  • - 识别类型: + 识别类型:
  • 标签号: diff --git a/ruoyi-admin/src/main/resources/templates/system/radarStatus/radarStatus.html b/ruoyi-admin/src/main/resources/templates/system/radarStatus/radarStatus.html index c3315e5..de9b4ce 100644 --- a/ruoyi-admin/src/main/resources/templates/system/radarStatus/radarStatus.html +++ b/ruoyi-admin/src/main/resources/templates/system/radarStatus/radarStatus.html @@ -20,7 +20,7 @@
    -
    +
    image
    %radarIp%
    @@ -97,7 +97,7 @@ $.table.init(options); }); - var socket = new WebSocket("ws://localhost/websocket"); + var socket = new WebSocket("ws://192.168.120.15/websocket"); socket.onopen = function(event) { console.log("WebSocket连接已打开"); @@ -116,14 +116,21 @@ var template = $('#profileTemplate').html() var view = '' $.each(data, function (i, row) { - view += template.replace('%userCode%', row.userCode) - .replace('%IMAGE%', "https://xjl559.oss-cn-shanghai.aliyuncs.com/2023/12/11/%E6%88%AA%E5%B1%8F2024-01-08%2013.57.36.png") + view += template + .replace('%IMAGE%', getImageUrl(row.radarIp)) .replace('%radarIp%', row.radarIp) .replace('%radarLocation%', row.radarLocation) }) return `
    ${view}
    ` } + function getImageUrl(radarIp) { + if (radarIp === '192.168.0.7') { + return "https://xjl559.oss-cn-shanghai.aliyuncs.com/2023/12/11/%E6%88%AA%E5%B1%8F2024-01-08%2013.57.36.png"; + } else if (radarIp === '192.168.0.8') { + return "https://xjl559.oss-cn-shanghai.aliyuncs.com/2023/12/11/%E6%88%AA%E5%B1%8F2024-01-09%2016.59.50.png"; + } + } \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/PrimaryRadarDataMapper.xml b/ruoyi-system/src/main/resources/mapper/system/PrimaryRadarDataMapper.xml index b28abf0..478b7e9 100644 --- a/ruoyi-system/src/main/resources/mapper/system/PrimaryRadarDataMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/PrimaryRadarDataMapper.xml @@ -96,6 +96,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" FROM sys_primary_radar_data ) subquery WHERE row_num = 1 + + AND tag_id like concat('%',#{tagId}, '%') + + + AND radar_location like concat('%',#{radarLocation}, '%') + + + AND ladle_number like concat('%',#{type}, '%') + + + AND DATE_FORMAT(update_time,'%Y-%m-%d') between DATE_FORMAT(#{createTime},'%Y-%m-%d') and DATE_FORMAT(#{updateTime},'%Y-%m-%d') +