Commit ba9a8282 authored by hezhuozhi's avatar hezhuozhi

提交预警确认状态分页

parent 5bfdd904
...@@ -590,7 +590,9 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl ...@@ -590,7 +590,9 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
@RequestParam(value = "warningName", required = false) String warningName, @RequestParam(value = "warningName", required = false) String warningName,
@RequestParam(value = "stationId", required = false) String stationId, @RequestParam(value = "stationId", required = false) String stationId,
@RequestParam(value = "startDate", required = false) String startDate, @RequestParam(value = "startDate", required = false) String startDate,
@RequestParam(value = "endDate", required = false) String endDate) { @RequestParam(value = "endDate", required = false) String endDate,
@RequestParam(value = "disposotionState", required = false) String disposotionState
) {
String syzGatewayId=""; String syzGatewayId="";
if (StrUtil.isNotEmpty(stationId)) { if (StrUtil.isNotEmpty(stationId)) {
StationBasic stationBasic = stationBasicMapper.selectById(stationId); StationBasic stationBasic = stationBasicMapper.selectById(stationId);
...@@ -601,7 +603,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl ...@@ -601,7 +603,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
arae = "%" + arae + "%"; arae = "%" + arae + "%";
} }
Integer count = fanWaringRecordMapper.getEquipWarningInfoByPageCount(arae, station, stationType, warningName, Integer count = fanWaringRecordMapper.getEquipWarningInfoByPageCount(arae, station, stationType, warningName,
stationId, startDate, endDate,syzGatewayId); stationId, startDate, endDate,syzGatewayId,disposotionState);
// 前端存在分页bug 此处限制分页后筛选导致页面超出问题 // 前端存在分页bug 此处限制分页后筛选导致页面超出问题
if (count > 0 && current > (count / 10 + 1)) { if (count > 0 && current > (count / 10 + 1)) {
current = 1; current = 1;
...@@ -611,7 +613,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl ...@@ -611,7 +613,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
// stationType, (current - 1) * size, size, warningName, stationId, startDate, // stationType, (current - 1) * size, size, warningName, stationId, startDate,
// endDate); // endDate);
List<FanWarningRecord> idxBizFanWarningRecordIPage = fanWaringRecordMapper.getEquipWarningInfoByPage(arae, List<FanWarningRecord> idxBizFanWarningRecordIPage = fanWaringRecordMapper.getEquipWarningInfoByPage(arae,
station, stationType, (current - 1) * size, size, warningName, stationId, startDate, endDate,syzGatewayId); station, stationType, (current - 1) * size, size, warningName, stationId, startDate, endDate,syzGatewayId,disposotionState);
Page<FanWarningRecord> idxBizFanWarningRecordPage = new Page<>(current, size); Page<FanWarningRecord> idxBizFanWarningRecordPage = new Page<>(current, size);
idxBizFanWarningRecordPage.setRecords(idxBizFanWarningRecordIPage); idxBizFanWarningRecordPage.setRecords(idxBizFanWarningRecordIPage);
......
...@@ -41,9 +41,10 @@ public interface FanWaringRecordMapper extends BaseMapper<FanWarningRecord> { ...@@ -41,9 +41,10 @@ public interface FanWaringRecordMapper extends BaseMapper<FanWarningRecord> {
@Param("warningName") String warningName, @Param("warningName") String warningName,
@Param("stationId") String stationId, @Param("stationId") String stationId,
@Param("startDate") String startDate, @Param("startDate") String startDate,
@Param("endDate") String endDate,@Param("syzGatewayId") String syzGatewayId); @Param("endDate") String endDate,@Param("syzGatewayId") String syzGatewayId,
@Param("disposotionState")String disposotionState);
List<FanWarningRecord> getEquipWarningInfoByPage(String arae, String station, String stationType, Integer current, Integer size, String warningName, String stationId, String startDate, String endDate,@Param("syzGatewayId") String syzGatewayId); List<FanWarningRecord> getEquipWarningInfoByPage(String arae, String station, String stationType, Integer current, Integer size, String warningName, String stationId, String startDate, String endDate,@Param("syzGatewayId") String syzGatewayId,@Param("disposotionState")String disposotionState);
List<Map<String, Object>> getAllEquipAlarmInfoAnalysisByArea(String araeCode, String stationType); List<Map<String, Object>> getAllEquipAlarmInfoAnalysisByArea(String araeCode, String stationType);
......
...@@ -381,6 +381,9 @@ ...@@ -381,6 +381,9 @@
<if test="endDate != '' and endDate != null"> <if test="endDate != '' and endDate != null">
and concat(#{endDate}, ' 23:59:59') >= a.recdate and concat(#{endDate}, ' 23:59:59') >= a.recdate
</if> </if>
<if test="disposotionState != '' and disposotionState != null">
and a.disposotionstate = #{disposotionState}
</if>
</where> </where>
order by recDate desc order by recDate desc
limit #{current}, #{size} limit #{current}, #{size}
...@@ -446,7 +449,9 @@ ...@@ -446,7 +449,9 @@
<if test="endDate != '' and endDate != null"> <if test="endDate != '' and endDate != null">
and concat(#{endDate}, ' 23:59:59') >= a.recdate and concat(#{endDate}, ' 23:59:59') >= a.recdate
</if> </if>
<if test="disposotionState != '' and disposotionState != null">
and a.disposotionstate = #{disposotionState}
</if>
</where>) b </where>) b
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment