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 javax.servlet.http.HttpServletRequest;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;

View File

@ -73,4 +73,12 @@ public class HighFormworkAlarmData implements Serializable {
@ApiModelProperty(value = "测量点名称") @ApiModelProperty(value = "测量点名称")
@TableField(exist = false) @TableField(exist = false)
private java.lang.String measurePointName; private java.lang.String measurePointName;
@TableField(exist = false)
private java.lang.String createTime_begin;
@TableField(exist = false)
private java.lang.String createTime_end;
} }

View File

@ -9,6 +9,14 @@
<if test="q.projectSn != null and q.projectSn != ''"> <if test="q.projectSn != null and q.projectSn != ''">
and hfmp.project_sn = #{q.projectSn} and hfmp.project_sn = #{q.projectSn}
</if> </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> </where>
order by hfad.create_time desc order by hfad.create_time desc
</select> </select>

View File

@ -76,9 +76,9 @@
</select> </select>
<select id="countMonitorTime" resultType="java.lang.Long"> <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 from high_formwork_measure_current_data
where project_sn = #{projectSn} and collect_time is not null where project_sn = #{projectSn} and collect_time is not null
order by collect_time limit 1 limit 1
</select> </select>
</mapper> </mapper>

View File

@ -68,9 +68,9 @@
</select> </select>
<select id="countMonitorDynamic" resultType="com.zhgd.xmgl.modules.highformwork.entity.HighFormworkMeasurePoint"> <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 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} where hfmp.project_sn=#{projectSn}
group by hfmp.measure_point_number group by hfmp.measure_point_number
</select> </select>

View File

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