diff --git a/src/main/java/com/zhgd/xmgl/modules/highformwork/controller/HighFormworkAlarmDataController.java b/src/main/java/com/zhgd/xmgl/modules/highformwork/controller/HighFormworkAlarmDataController.java index a09a50dfd..04c38c8f3 100644 --- a/src/main/java/com/zhgd/xmgl/modules/highformwork/controller/HighFormworkAlarmDataController.java +++ b/src/main/java/com/zhgd/xmgl/modules/highformwork/controller/HighFormworkAlarmDataController.java @@ -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; diff --git a/src/main/java/com/zhgd/xmgl/modules/highformwork/entity/HighFormworkAlarmData.java b/src/main/java/com/zhgd/xmgl/modules/highformwork/entity/HighFormworkAlarmData.java index d89120557..ed2f201ad 100644 --- a/src/main/java/com/zhgd/xmgl/modules/highformwork/entity/HighFormworkAlarmData.java +++ b/src/main/java/com/zhgd/xmgl/modules/highformwork/entity/HighFormworkAlarmData.java @@ -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; } diff --git a/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkAlarmDataMapper.xml b/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkAlarmDataMapper.xml index 3d9ec99ec..40a0834e7 100644 --- a/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkAlarmDataMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkAlarmDataMapper.xml @@ -9,6 +9,14 @@ and hfmp.project_sn = #{q.projectSn} + + and hfad.create_time >= #{param2.createTime_begin} + + + and hfad.create_time >= #{param2.createTime_end} + and hfad.create_time if(LENGTH(#{param2.createTime_end}) = 10, + CONCAT(DATE_FORMAT(#{param2.createTime_end}, '%Y-%m-%d'), ' 23:59:59'), #{param2.createTime_end}) + order by hfad.create_time desc diff --git a/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkMeasureCurrentDataMapper.xml b/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkMeasureCurrentDataMapper.xml index fff673d2b..73026b4f8 100644 --- a/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkMeasureCurrentDataMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkMeasureCurrentDataMapper.xml @@ -76,9 +76,9 @@ diff --git a/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkMeasurePointMapper.xml b/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkMeasurePointMapper.xml index 55594ae29..366fbb56a 100644 --- a/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkMeasurePointMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/highformwork/mapper/xml/HighFormworkMeasurePointMapper.xml @@ -68,9 +68,9 @@ diff --git a/src/main/java/com/zhgd/xmgl/modules/highslope/mapper/xml/HighSlopeCurrentDataMapper.xml b/src/main/java/com/zhgd/xmgl/modules/highslope/mapper/xml/HighSlopeCurrentDataMapper.xml index e737d2bae..d6f7d1995 100644 --- a/src/main/java/com/zhgd/xmgl/modules/highslope/mapper/xml/HighSlopeCurrentDataMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/highslope/mapper/xml/HighSlopeCurrentDataMapper.xml @@ -129,7 +129,7 @@ and decd.alarm_state = #{alarmState} - and hsetmt.id = #{highSlopeMonitorTypeId} + and dest.id = #{highSlopeMonitorTypeId} order by decd.receive_time desc