bug修复

This commit is contained in:
guo 2024-02-22 16:38:02 +08:00
parent c311bf2a87
commit 472a9062e1
6 changed files with 31 additions and 14 deletions

View File

@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

View File

@ -63,14 +63,22 @@ public class HighFormworkAlarmData implements Serializable {
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
private java.util.Date createTime;
/**
* 项目SN
*/
@Excel(name = "项目SN", width = 15)
@ApiModelProperty(value = "项目SN")
private java.lang.String projectSn;
/**
* 项目SN
*/
@Excel(name = "项目SN", width = 15)
@ApiModelProperty(value = "项目SN")
private java.lang.String projectSn;
@ApiModelProperty(value = "测量点名称")
@TableField(exist = false)
private java.lang.String measurePointName;
@TableField(exist = false)
private java.lang.String createTime_begin;
@TableField(exist = false)
private java.lang.String createTime_end;
@ApiModelProperty(value = "测量点名称")
@TableField(exist = false)
private java.lang.String measurePointName;
}

View File

@ -9,6 +9,14 @@
<if test="q.projectSn != null and q.projectSn != ''">
and hfmp.project_sn = #{q.projectSn}
</if>
<if test="param2.createTime_begin != null and param2.createTime_begin != ''">
and hfad.create_time >= #{param2.createTime_begin}
</if>
<if test="param2.createTime_end != null and param2.createTime_end != ''">
and hfad.create_time >= #{param2.createTime_end}
and hfad.create_time <![CDATA[<=]]> if(LENGTH(#{param2.createTime_end}) = 10,
CONCAT(DATE_FORMAT(#{param2.createTime_end}, '%Y-%m-%d'), ' 23:59:59'), #{param2.createTime_end})
</if>
</where>
order by hfad.create_time desc
</select>

View File

@ -76,9 +76,9 @@
</select>
<select id="countMonitorTime" resultType="java.lang.Long">
select timestampdiff(second ,collect_time,now())
select ifnull(timestampdiff(second ,min(collect_time),max(collect_time)),0) monitorDurationTime
from high_formwork_measure_current_data
where project_sn = #{projectSn} and collect_time is not null
order by collect_time limit 1
limit 1
</select>
</mapper>

View File

@ -68,9 +68,9 @@
</select>
<select id="countMonitorDynamic" resultType="com.zhgd.xmgl.modules.highformwork.entity.HighFormworkMeasurePoint">
select hfmp.*,ifnull(timestampdiff(second ,min(hfad.create_time),max(hfad.create_time)),0) monitorDurationTime
select hfmp.*,ifnull(timestampdiff(second ,min(hfad.collect_time),max(hfad.collect_time)),0) monitorDurationTime
from high_formwork_measure_point hfmp
left join high_formwork_alarm_data hfad on hfmp.id = hfad.measure_point_id
left join high_formwork_measure_current_data hfad on hfmp.measure_point_number = hfad.measure_point_number
where hfmp.project_sn=#{projectSn}
group by hfmp.measure_point_number
</select>

View File

@ -129,7 +129,7 @@
and decd.alarm_state = #{alarmState}
</if>
<if test="highSlopeMonitorTypeId != null">
and hsetmt.id = #{highSlopeMonitorTypeId}
and dest.id = #{highSlopeMonitorTypeId}
</if>
</where>
order by decd.receive_time desc