change - 振动传感器维护页面

master
yinq 6 months ago
parent 140798bb22
commit 2ec8aa8a6d

@ -52,9 +52,9 @@
var removeFlag = [[${@permission.hasPermi('system:ArrayTemperatureData:remove')}]]; var removeFlag = [[${@permission.hasPermi('system:ArrayTemperatureData:remove')}]];
var prefix = ctx + "system/ArrayTemperatureData"; var prefix = ctx + "system/ArrayTemperatureData";
</script> </script>
<script> <script>
var monitorId = null;
$(() => { $(() => {
var panehHidden = false; var panehHidden = false;
if ($(this).width() < 769) { if ($(this).width() < 769) {
@ -117,9 +117,9 @@
// 返回格式化的CSS颜色字符串 // 返回格式化的CSS颜色字符串
return `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`; return `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`;
} }
const getData = () => { const getData = () => {
$.post(prefix + '/newDataStreak', (e) => { console.log(222,monitorId)
$.post(prefix + '/newDataStreak', {monitorId}, (e) => {
$('#temInfo').html(`<span style="color:#ff0000">最高温度:${e.rows[0].maxTemperature}℃</span> <span style="color:#0b05f7">最低温度:${e.rows[0].minTemperature}℃</span> <span style="color:#0066e4">平均温度:${e.rows[0].avgTemperature}℃</span>`) $('#temInfo').html(`<span style="color:#ff0000">最高温度:${e.rows[0].maxTemperature}℃</span> <span style="color:#0b05f7">最低温度:${e.rows[0].minTemperature}℃</span> <span style="color:#0066e4">平均温度:${e.rows[0].avgTemperature}℃</span>`)
$('#timeInfo').html(`<span style="color:#0b05f7">采集时间:${e.rows[0].collectTime}</span> `) $('#timeInfo').html(`<span style="color:#0b05f7">采集时间:${e.rows[0].collectTime}</span> `)
let colors = [] let colors = []
@ -203,9 +203,8 @@
$.tree.init(options); $.tree.init(options);
function zOnClick(event, treeId, treeNode) { function zOnClick(event, treeId, treeNode) {
$("#sensorId").val(treeNode.id); monitorId = treeNode.id;
/*alert(treeNode.id)*/ console.log(111,monitorId)
$.table.search();
} }
} }

@ -57,18 +57,18 @@ public class TArraytemperaturedata extends BaseEntity {
@Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date recodeTime; private Date recodeTime;
/**
* 1
*/
@Excel(name = "位置1")
private BigDecimal Site1;
/** /**
* *
*/ */
@Excel(name = "测控点编号") @Excel(name = "测控点编号")
private String monitorId; private String monitorId;
/**
* 1
*/
@Excel(name = "位置1")
private BigDecimal Site1;
/** /**
* 2 * 2
*/ */
@ -4671,6 +4671,15 @@ public class TArraytemperaturedata extends BaseEntity {
@Excel(name = "位置768") @Excel(name = "位置768")
private BigDecimal Site768; private BigDecimal Site768;
public String getMonitorId() {
return monitorId;
}
public void setMonitorId(String monitorId) {
this.monitorId = monitorId;
}
public Long getObjId() { public Long getObjId() {
return objId; return objId;
} }

@ -1569,7 +1569,7 @@
<where> <where>
<if test="probeAddress != null ">and probeAddress = #{probeAddress}</if> <if test="probeAddress != null ">and probeAddress = #{probeAddress}</if>
<if test="maxTemperature != null ">and maxTemperature = #{maxTemperature}</if> <if test="maxTemperature != null ">and maxTemperature = #{maxTemperature}</if>
<if test="monitorId != null ">and monitorId = #{monitorId}</if> <if test="monitorId != null monitorId != ''">and monitorId = #{monitorId}</if>
<if test="minTemperature != null ">and minTemperature = #{minTemperature}</if> <if test="minTemperature != null ">and minTemperature = #{minTemperature}</if>
<if test="avgTemperature != null ">and avgTemperature = #{avgTemperature}</if> <if test="avgTemperature != null ">and avgTemperature = #{avgTemperature}</if>
<if test="collectTime != null ">and collectTime = #{collectTime}</if> <if test="collectTime != null ">and collectTime = #{collectTime}</if>
@ -1586,7 +1586,8 @@
resultMap="TArraytemperaturedataResult"> resultMap="TArraytemperaturedataResult">
SELECT TOP 1 * SELECT TOP 1 *
FROM T_ArrayTemperatureData FROM T_ArrayTemperatureData
<if test="monitorId != null ">and monitorId = #{monitorId}</if> where 1=1
<if test="monitorId != null and monitorId != ''">and monitorId = #{monitorId}</if>
ORDER BY collectTime DESC ORDER BY collectTime DESC
</select> </select>

Loading…
Cancel
Save