告警数据按设备存表

This commit is contained in:
2025-10-22 17:21:43 +08:00
parent b776f6ff76
commit 4a0075b606
17 changed files with 8175 additions and 150 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,795 @@
package com.xzzn.ems.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xzzn.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xzzn.common.annotation.Excel;
/**
* ZSLQ告警故障数据对象 ems_cooling_alarm_data
*
* @author xzzn
* @date 2025-10-22
*/
public class EmsCoolingAlarmData extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 记录唯一ID */
private Long id;
/** 数据采集时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "数据采集时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date dataTimestamp;
/** 站点ID */
@Excel(name = "站点ID")
private String siteId;
/** 设备唯一标识符 */
@Excel(name = "设备唯一标识符")
private String deviceId;
/** */
@Excel(name = "")
private Integer lsjyx;
/** */
@Excel(name = "")
private Integer pqdcfyx;
/** */
@Excel(name = "")
private Integer djrq2yx;
/** */
@Excel(name = "")
private Integer djrq1yx;
/** */
@Excel(name = "")
private Integer bqbyx;
/** */
@Excel(name = "")
private Integer bsbyx;
/** */
@Excel(name = "")
private Integer zxhbyx;
/** */
@Excel(name = "")
private Integer sltzgz;
/** */
@Excel(name = "")
private Integer slzhyj;
/** */
@Excel(name = "")
private Integer slxtyctzxh;
/** */
@Excel(name = "")
private Integer slxtycqdxh;
/** */
@Excel(name = "")
private Integer slxtyckz;
/** */
@Excel(name = "")
private Integer slxtbdkz;
/** */
@Excel(name = "")
private Integer slxtzdms;
/** */
@Excel(name = "")
private Integer slxtsdms;
/** */
@Excel(name = "")
private Integer hsylcdyj;
/** */
@Excel(name = "")
private Integer hsyldyj;
/** */
@Excel(name = "")
private Integer gsylcgyj;
/** */
@Excel(name = "")
private Integer gsylgyj;
/** */
@Excel(name = "")
private Integer gsylcdyj;
/** */
@Excel(name = "")
private Integer gsyldyj;
/** */
@Excel(name = "")
private Integer hcgywg;
/** */
@Excel(name = "")
private Integer hcgywcdtz;
/** */
@Excel(name = "")
private Integer hcgywd;
/** */
@Excel(name = "")
private Integer hcgylg;
/** */
@Excel(name = "")
private Integer hcgyld;
/** */
@Excel(name = "")
private Integer lysylgyj;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Integer lysyldyj;
/** */
@Excel(name = "")
private Integer hswdcgyj;
/** */
@Excel(name = "")
private Integer hswdgyj;
/** */
@Excel(name = "")
private Integer gswdcgtz;
/** */
@Excel(name = "")
private Integer gswdgyj;
/** */
@Excel(name = "")
private Integer gswddyj;
/** */
@Excel(name = "")
private Integer ddf2gz;
/** */
@Excel(name = "")
private Integer ddf1gz;
/** */
@Excel(name = "")
private Integer lyswdbsqyJ;
/** */
@Excel(name = "")
private Integer hsylbsqyJ;
/** */
@Excel(name = "")
private Integer gsylbsqyJ;
/** */
@Excel(name = "")
private Integer hswdbsqyJ;
/** */
@Excel(name = "")
private Integer gswdbsqgztz;
/** */
@Excel(name = "")
private Integer lsjgz;
/** */
@Excel(name = "")
private Integer djrq2gz;
/** */
@Excel(name = "")
private Integer djrq1gz;
/** */
@Excel(name = "")
private Integer bqbgz;
/** */
@Excel(name = "")
private Integer bsbgz;
/** */
@Excel(name = "")
private Integer xhbgz;
/** */
@Excel(name = "")
private Integer zdygz;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setDataTimestamp(Date dataTimestamp)
{
this.dataTimestamp = dataTimestamp;
}
public Date getDataTimestamp()
{
return dataTimestamp;
}
public void setSiteId(String siteId)
{
this.siteId = siteId;
}
public String getSiteId()
{
return siteId;
}
public void setDeviceId(String deviceId)
{
this.deviceId = deviceId;
}
public String getDeviceId()
{
return deviceId;
}
public void setLsjyx(Integer lsjyx)
{
this.lsjyx = lsjyx;
}
public Integer getLsjyx()
{
return lsjyx;
}
public void setPqdcfyx(Integer pqdcfyx)
{
this.pqdcfyx = pqdcfyx;
}
public Integer getPqdcfyx()
{
return pqdcfyx;
}
public void setDjrq2yx(Integer djrq2yx)
{
this.djrq2yx = djrq2yx;
}
public Integer getDjrq2yx()
{
return djrq2yx;
}
public void setDjrq1yx(Integer djrq1yx)
{
this.djrq1yx = djrq1yx;
}
public Integer getDjrq1yx()
{
return djrq1yx;
}
public void setBqbyx(Integer bqbyx)
{
this.bqbyx = bqbyx;
}
public Integer getBqbyx()
{
return bqbyx;
}
public void setBsbyx(Integer bsbyx)
{
this.bsbyx = bsbyx;
}
public Integer getBsbyx()
{
return bsbyx;
}
public void setZxhbyx(Integer zxhbyx)
{
this.zxhbyx = zxhbyx;
}
public Integer getZxhbyx()
{
return zxhbyx;
}
public void setSltzgz(Integer sltzgz)
{
this.sltzgz = sltzgz;
}
public Integer getSltzgz()
{
return sltzgz;
}
public void setSlzhyj(Integer slzhyj)
{
this.slzhyj = slzhyj;
}
public Integer getSlzhyj()
{
return slzhyj;
}
public void setSlxtyctzxh(Integer slxtyctzxh)
{
this.slxtyctzxh = slxtyctzxh;
}
public Integer getSlxtyctzxh()
{
return slxtyctzxh;
}
public void setSlxtycqdxh(Integer slxtycqdxh)
{
this.slxtycqdxh = slxtycqdxh;
}
public Integer getSlxtycqdxh()
{
return slxtycqdxh;
}
public void setSlxtyckz(Integer slxtyckz)
{
this.slxtyckz = slxtyckz;
}
public Integer getSlxtyckz()
{
return slxtyckz;
}
public void setSlxtbdkz(Integer slxtbdkz)
{
this.slxtbdkz = slxtbdkz;
}
public Integer getSlxtbdkz()
{
return slxtbdkz;
}
public void setSlxtzdms(Integer slxtzdms)
{
this.slxtzdms = slxtzdms;
}
public Integer getSlxtzdms()
{
return slxtzdms;
}
public void setSlxtsdms(Integer slxtsdms)
{
this.slxtsdms = slxtsdms;
}
public Integer getSlxtsdms()
{
return slxtsdms;
}
public void setHsylcdyj(Integer hsylcdyj)
{
this.hsylcdyj = hsylcdyj;
}
public Integer getHsylcdyj()
{
return hsylcdyj;
}
public void setHsyldyj(Integer hsyldyj)
{
this.hsyldyj = hsyldyj;
}
public Integer getHsyldyj()
{
return hsyldyj;
}
public void setGsylcgyj(Integer gsylcgyj)
{
this.gsylcgyj = gsylcgyj;
}
public Integer getGsylcgyj()
{
return gsylcgyj;
}
public void setGsylgyj(Integer gsylgyj)
{
this.gsylgyj = gsylgyj;
}
public Integer getGsylgyj()
{
return gsylgyj;
}
public void setGsylcdyj(Integer gsylcdyj)
{
this.gsylcdyj = gsylcdyj;
}
public Integer getGsylcdyj()
{
return gsylcdyj;
}
public void setGsyldyj(Integer gsyldyj)
{
this.gsyldyj = gsyldyj;
}
public Integer getGsyldyj()
{
return gsyldyj;
}
public void setHcgywg(Integer hcgywg)
{
this.hcgywg = hcgywg;
}
public Integer getHcgywg()
{
return hcgywg;
}
public void setHcgywcdtz(Integer hcgywcdtz)
{
this.hcgywcdtz = hcgywcdtz;
}
public Integer getHcgywcdtz()
{
return hcgywcdtz;
}
public void setHcgywd(Integer hcgywd)
{
this.hcgywd = hcgywd;
}
public Integer getHcgywd()
{
return hcgywd;
}
public void setHcgylg(Integer hcgylg)
{
this.hcgylg = hcgylg;
}
public Integer getHcgylg()
{
return hcgylg;
}
public void setHcgyld(Integer hcgyld)
{
this.hcgyld = hcgyld;
}
public Integer getHcgyld()
{
return hcgyld;
}
public void setLysylgyj(Integer lysylgyj)
{
this.lysylgyj = lysylgyj;
}
public Integer getLysylgyj()
{
return lysylgyj;
}
public void setLysyldyj(Integer lysyldyj)
{
this.lysyldyj = lysyldyj;
}
public Integer getLysyldyj()
{
return lysyldyj;
}
public void setHswdcgyj(Integer hswdcgyj)
{
this.hswdcgyj = hswdcgyj;
}
public Integer getHswdcgyj()
{
return hswdcgyj;
}
public void setHswdgyj(Integer hswdgyj)
{
this.hswdgyj = hswdgyj;
}
public Integer getHswdgyj()
{
return hswdgyj;
}
public void setGswdcgtz(Integer gswdcgtz)
{
this.gswdcgtz = gswdcgtz;
}
public Integer getGswdcgtz()
{
return gswdcgtz;
}
public void setGswdgyj(Integer gswdgyj)
{
this.gswdgyj = gswdgyj;
}
public Integer getGswdgyj()
{
return gswdgyj;
}
public void setGswddyj(Integer gswddyj)
{
this.gswddyj = gswddyj;
}
public Integer getGswddyj()
{
return gswddyj;
}
public void setDdf2gz(Integer ddf2gz)
{
this.ddf2gz = ddf2gz;
}
public Integer getDdf2gz()
{
return ddf2gz;
}
public void setDdf1gz(Integer ddf1gz)
{
this.ddf1gz = ddf1gz;
}
public Integer getDdf1gz()
{
return ddf1gz;
}
public void setLyswdbsqyJ(Integer lyswdbsqyJ)
{
this.lyswdbsqyJ = lyswdbsqyJ;
}
public Integer getLyswdbsqyJ()
{
return lyswdbsqyJ;
}
public void setHsylbsqyJ(Integer hsylbsqyJ)
{
this.hsylbsqyJ = hsylbsqyJ;
}
public Integer getHsylbsqyJ()
{
return hsylbsqyJ;
}
public void setGsylbsqyJ(Integer gsylbsqyJ)
{
this.gsylbsqyJ = gsylbsqyJ;
}
public Integer getGsylbsqyJ()
{
return gsylbsqyJ;
}
public void setHswdbsqyJ(Integer hswdbsqyJ)
{
this.hswdbsqyJ = hswdbsqyJ;
}
public Integer getHswdbsqyJ()
{
return hswdbsqyJ;
}
public void setGswdbsqgztz(Integer gswdbsqgztz)
{
this.gswdbsqgztz = gswdbsqgztz;
}
public Integer getGswdbsqgztz()
{
return gswdbsqgztz;
}
public void setLsjgz(Integer lsjgz)
{
this.lsjgz = lsjgz;
}
public Integer getLsjgz()
{
return lsjgz;
}
public void setDjrq2gz(Integer djrq2gz)
{
this.djrq2gz = djrq2gz;
}
public Integer getDjrq2gz()
{
return djrq2gz;
}
public void setDjrq1gz(Integer djrq1gz)
{
this.djrq1gz = djrq1gz;
}
public Integer getDjrq1gz()
{
return djrq1gz;
}
public void setBqbgz(Integer bqbgz)
{
this.bqbgz = bqbgz;
}
public Integer getBqbgz()
{
return bqbgz;
}
public void setBsbgz(Integer bsbgz)
{
this.bsbgz = bsbgz;
}
public Integer getBsbgz()
{
return bsbgz;
}
public void setXhbgz(Integer xhbgz)
{
this.xhbgz = xhbgz;
}
public Integer getXhbgz()
{
return xhbgz;
}
public void setZdygz(Integer zdygz)
{
this.zdygz = zdygz;
}
public Integer getZdygz()
{
return zdygz;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("dataTimestamp", getDataTimestamp())
.append("siteId", getSiteId())
.append("deviceId", getDeviceId())
.append("lsjyx", getLsjyx())
.append("pqdcfyx", getPqdcfyx())
.append("djrq2yx", getDjrq2yx())
.append("djrq1yx", getDjrq1yx())
.append("bqbyx", getBqbyx())
.append("bsbyx", getBsbyx())
.append("zxhbyx", getZxhbyx())
.append("sltzgz", getSltzgz())
.append("slzhyj", getSlzhyj())
.append("slxtyctzxh", getSlxtyctzxh())
.append("slxtycqdxh", getSlxtycqdxh())
.append("slxtyckz", getSlxtyckz())
.append("slxtbdkz", getSlxtbdkz())
.append("slxtzdms", getSlxtzdms())
.append("slxtsdms", getSlxtsdms())
.append("hsylcdyj", getHsylcdyj())
.append("hsyldyj", getHsyldyj())
.append("gsylcgyj", getGsylcgyj())
.append("gsylgyj", getGsylgyj())
.append("gsylcdyj", getGsylcdyj())
.append("gsyldyj", getGsyldyj())
.append("hcgywg", getHcgywg())
.append("hcgywcdtz", getHcgywcdtz())
.append("hcgywd", getHcgywd())
.append("hcgylg", getHcgylg())
.append("hcgyld", getHcgyld())
.append("lysylgyj", getLysylgyj())
.append("lysyldyj", getLysyldyj())
.append("hswdcgyj", getHswdcgyj())
.append("hswdgyj", getHswdgyj())
.append("gswdcgtz", getGswdcgtz())
.append("gswdgyj", getGswdgyj())
.append("gswddyj", getGswddyj())
.append("ddf2gz", getDdf2gz())
.append("ddf1gz", getDdf1gz())
.append("lyswdbsqyJ", getLyswdbsqyJ())
.append("hsylbsqyJ", getHsylbsqyJ())
.append("gsylbsqyJ", getGsylbsqyJ())
.append("hswdbsqyJ", getHswdbsqyJ())
.append("gswdbsqgztz", getGswdbsqgztz())
.append("lsjgz", getLsjgz())
.append("djrq2gz", getDjrq2gz())
.append("djrq1gz", getDjrq1gz())
.append("bqbgz", getBqbgz())
.append("bsbgz", getBsbgz())
.append("xhbgz", getXhbgz())
.append("zdygz", getZdygz())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,61 @@
package com.xzzn.ems.mapper;
import java.util.List;
import com.xzzn.ems.domain.EmsClusterAlarmData;
/**
* bmsc告警数据Mapper接口
*
* @author xzzn
* @date 2025-10-22
*/
public interface EmsClusterAlarmDataMapper
{
/**
* 查询bmsc告警数据
*
* @param id bmsc告警数据主键
* @return bmsc告警数据
*/
public EmsClusterAlarmData selectEmsClusterAlarmDataById(Long id);
/**
* 查询bmsc告警数据列表
*
* @param emsClusterAlarmData bmsc告警数据
* @return bmsc告警数据集合
*/
public List<EmsClusterAlarmData> selectEmsClusterAlarmDataList(EmsClusterAlarmData emsClusterAlarmData);
/**
* 新增bmsc告警数据
*
* @param emsClusterAlarmData bmsc告警数据
* @return 结果
*/
public int insertEmsClusterAlarmData(EmsClusterAlarmData emsClusterAlarmData);
/**
* 修改bmsc告警数据
*
* @param emsClusterAlarmData bmsc告警数据
* @return 结果
*/
public int updateEmsClusterAlarmData(EmsClusterAlarmData emsClusterAlarmData);
/**
* 删除bmsc告警数据
*
* @param id bmsc告警数据主键
* @return 结果
*/
public int deleteEmsClusterAlarmDataById(Long id);
/**
* 批量删除bmsc告警数据
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmsClusterAlarmDataByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.xzzn.ems.mapper;
import java.util.List;
import com.xzzn.ems.domain.EmsCoolingAlarmData;
/**
* ZSLQ告警故障数据Mapper接口
*
* @author xzzn
* @date 2025-10-22
*/
public interface EmsCoolingAlarmDataMapper
{
/**
* 查询ZSLQ告警故障数据
*
* @param id ZSLQ告警故障数据主键
* @return ZSLQ告警故障数据
*/
public EmsCoolingAlarmData selectEmsCoolingAlarmDataById(Long id);
/**
* 查询ZSLQ告警故障数据列表
*
* @param emsCoolingAlarmData ZSLQ告警故障数据
* @return ZSLQ告警故障数据集合
*/
public List<EmsCoolingAlarmData> selectEmsCoolingAlarmDataList(EmsCoolingAlarmData emsCoolingAlarmData);
/**
* 新增ZSLQ告警故障数据
*
* @param emsCoolingAlarmData ZSLQ告警故障数据
* @return 结果
*/
public int insertEmsCoolingAlarmData(EmsCoolingAlarmData emsCoolingAlarmData);
/**
* 修改ZSLQ告警故障数据
*
* @param emsCoolingAlarmData ZSLQ告警故障数据
* @return 结果
*/
public int updateEmsCoolingAlarmData(EmsCoolingAlarmData emsCoolingAlarmData);
/**
* 删除ZSLQ告警故障数据
*
* @param id ZSLQ告警故障数据主键
* @return 结果
*/
public int deleteEmsCoolingAlarmDataById(Long id);
/**
* 批量删除ZSLQ告警故障数据
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmsCoolingAlarmDataByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.xzzn.ems.mapper;
import java.util.List;
import com.xzzn.ems.domain.EmsPcsAlarmData;
/**
* pcs设备告警故障数据Mapper接口
*
* @author xzzn
* @date 2025-10-22
*/
public interface EmsPcsAlarmDataMapper
{
/**
* 查询pcs设备告警故障数据
*
* @param id pcs设备告警故障数据主键
* @return pcs设备告警故障数据
*/
public EmsPcsAlarmData selectEmsPcsAlarmDataById(Long id);
/**
* 查询pcs设备告警故障数据列表
*
* @param emsPcsAlarmData pcs设备告警故障数据
* @return pcs设备告警故障数据集合
*/
public List<EmsPcsAlarmData> selectEmsPcsAlarmDataList(EmsPcsAlarmData emsPcsAlarmData);
/**
* 新增pcs设备告警故障数据
*
* @param emsPcsAlarmData pcs设备告警故障数据
* @return 结果
*/
public int insertEmsPcsAlarmData(EmsPcsAlarmData emsPcsAlarmData);
/**
* 修改pcs设备告警故障数据
*
* @param emsPcsAlarmData pcs设备告警故障数据
* @return 结果
*/
public int updateEmsPcsAlarmData(EmsPcsAlarmData emsPcsAlarmData);
/**
* 删除pcs设备告警故障数据
*
* @param id pcs设备告警故障数据主键
* @return 结果
*/
public int deleteEmsPcsAlarmDataById(Long id);
/**
* 批量删除pcs设备告警故障数据
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmsPcsAlarmDataByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.xzzn.ems.mapper;
import java.util.List;
import com.xzzn.ems.domain.EmsStackAlarmData;
/**
* bmsd告警数据Mapper接口
*
* @author xzzn
* @date 2025-10-22
*/
public interface EmsStackAlarmDataMapper
{
/**
* 查询bmsd告警数据
*
* @param id bmsd告警数据主键
* @return bmsd告警数据
*/
public EmsStackAlarmData selectEmsStackAlarmDataById(Long id);
/**
* 查询bmsd告警数据列表
*
* @param emsStackAlarmData bmsd告警数据
* @return bmsd告警数据集合
*/
public List<EmsStackAlarmData> selectEmsStackAlarmDataList(EmsStackAlarmData emsStackAlarmData);
/**
* 新增bmsd告警数据
*
* @param emsStackAlarmData bmsd告警数据
* @return 结果
*/
public int insertEmsStackAlarmData(EmsStackAlarmData emsStackAlarmData);
/**
* 修改bmsd告警数据
*
* @param emsStackAlarmData bmsd告警数据
* @return 结果
*/
public int updateEmsStackAlarmData(EmsStackAlarmData emsStackAlarmData);
/**
* 删除bmsd告警数据
*
* @param id bmsd告警数据主键
* @return 结果
*/
public int deleteEmsStackAlarmDataById(Long id);
/**
* 批量删除bmsd告警数据
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmsStackAlarmDataByIds(Long[] ids);
}

View File

@ -0,0 +1,6 @@
package com.xzzn.ems.service;
public interface IFXXAlarmDataProcessService {
public void handleFxAlarmData(String message);
}

View File

@ -3,6 +3,4 @@ package com.xzzn.ems.service;
public interface IFXXDataProcessService {
public void handleFxData(String message);
public void handleFxAlarmData(String message);
}

View File

@ -0,0 +1,634 @@
package com.xzzn.ems.service.impl;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.TypeReference;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.xzzn.common.constant.RedisKeyConstants;
import com.xzzn.common.core.redis.RedisCache;
import com.xzzn.common.enums.*;
import com.xzzn.common.utils.DateUtils;
import com.xzzn.common.utils.MapUtils;
import com.xzzn.common.utils.StringUtils;
import com.xzzn.ems.domain.*;
import com.xzzn.ems.mapper.EmsClusterAlarmDataMapper;
import com.xzzn.ems.mapper.EmsCoolingAlarmDataMapper;
import com.xzzn.ems.mapper.EmsPcsAlarmDataMapper;
import com.xzzn.ems.mapper.EmsStackAlarmDataMapper;
import com.xzzn.ems.service.IEmsAlarmRecordsService;
import com.xzzn.ems.service.IFXXAlarmDataProcessService;
import com.xzzn.ems.utils.AbstractBatteryDataProcessor;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.stream.Collectors;
@Service
public class FXXAlarmDataProcessServiceImpl extends AbstractBatteryDataProcessor implements IFXXAlarmDataProcessService {
private static final Log log = LogFactory.getLog(FXXAlarmDataProcessServiceImpl.class);
private static final String SITE_ID = "021_FXX_01";
@Autowired
private RedisCache redisCache;
@Autowired
private IEmsAlarmRecordsService iEmsAlarmRecordsService;
@Autowired
private EmsCoolingAlarmDataMapper emsCoolingAlarmDataMapper;
@Autowired
private EmsStackAlarmDataMapper emsStackAlarmDataMapper;
@Autowired
private EmsClusterAlarmDataMapper emsClusterAlarmDataMapper;
@Autowired
private EmsPcsAlarmDataMapper emsPcsAlarmDataMapper;
// 构造方法(调用父类构造)
public FXXAlarmDataProcessServiceImpl(ObjectMapper objectMapper) {
super(objectMapper);
}
@Override
public void handleFxAlarmData(String message) {
JSONArray arraylist = JSONArray.parseArray(message);
// 获取redis缓存-告警信息
Map<String, EmsAlarmMatchData> alarmMatchInfo= redisCache.getCacheObject(RedisKeyConstants.ALARM_MATCH_INFO);
for (int i = 0; i < arraylist.size(); i++) {
JSONObject obj = JSONObject.parseObject(arraylist.get(i).toString());
String deviceId = obj.get("Device").toString();
String jsonData = obj.get("Data").toString();
Long timestamp = Long.valueOf(obj.get("timestamp").toString());
Date dataUpdateTime = DateUtils.convertUpdateTime(timestamp);
log.info("deviceId:" + deviceId);
String deviceCategory = "";
if (deviceId.contains("ZSLQ")) {
coolingDataProcess(deviceId, jsonData, dataUpdateTime);
} else if (deviceId.contains("BMSD")) {
deviceCategory = DeviceCategory.STACK.getCode();
stackDataProcess(deviceId, jsonData, dataUpdateTime);
} else if (deviceId.contains("BMSC")) {
deviceCategory = DeviceCategory.CLUSTER.getCode();
clusterDataProcess(deviceId, jsonData, dataUpdateTime);
} else if (deviceId.contains("PCS")) {
deviceCategory = DeviceCategory.PCS.getCode();
pcsDataProcess(deviceId, jsonData, dataUpdateTime);
}
if (StringUtils.isEmpty(deviceCategory)) {
// 处理告警信息
alarmDataProcess(deviceId, jsonData, alarmMatchInfo, deviceCategory);
}
}
}
private void pcsDataProcess(String deviceId, String jsonData, Date dataUpdateTime) {
//中水冷却
Map<String, Object> obj = JSON.parseObject(jsonData, new TypeReference<Map<String, Object>>() {
});
EmsPcsAlarmData pcsAlarmData = new EmsPcsAlarmData();
// 更新时间
pcsAlarmData.setDataTimestamp(dataUpdateTime);
// 告警字段
pcsAlarmData.setYljzyc(MapUtils.getInteger(obj, "YLJZYC"));
pcsAlarmData.setZlkgSmyc(MapUtils.getInteger(obj, "ZLKGSMYC"));
pcsAlarmData.setJlkgSmyc(MapUtils.getInteger(obj, "JLKGSMYC"));
pcsAlarmData.setZlfjsmyc(MapUtils.getInteger(obj, "ZLFJSMYC"));
pcsAlarmData.setJlfjsmyc(MapUtils.getInteger(obj, "JLFJSMYC"));
pcsAlarmData.setGjz2(MapUtils.getInteger(obj, "GJZ2"));
pcsAlarmData.setGzz2(MapUtils.getInteger(obj, "GZZ2"));
pcsAlarmData.setSrqgwgj(MapUtils.getInteger(obj, "SRQGWGJ"));
pcsAlarmData.setDgfjyc(MapUtils.getInteger(obj, "DGFJYC"));
pcsAlarmData.setBmsgj(MapUtils.getInteger(obj, "BMSGJ"));
pcsAlarmData.setBmsdj(MapUtils.getInteger(obj, "BMSDJ"));
pcsAlarmData.setBmsjf(MapUtils.getInteger(obj, "BMSJF"));
pcsAlarmData.setBmsjc(MapUtils.getInteger(obj, "BMSJC"));
pcsAlarmData.setBmsgjdyc(MapUtils.getInteger(obj, "BMSGJDYC"));
pcsAlarmData.setBmstxyc(MapUtils.getInteger(obj, "BMSTXYC"));
pcsAlarmData.setBmsxtgz(MapUtils.getInteger(obj, "BMSXTGZ"));
pcsAlarmData.setZldhmktxyc(MapUtils.getInteger(obj, "ZLDHMKTXYC"));
pcsAlarmData.setGzgJ(MapUtils.getInteger(obj, "GZGJ"));
pcsAlarmData.setDcdybfhcdtj(MapUtils.getInteger(obj, "DCDYBFHCDTJ"));
pcsAlarmData.setDcfj(MapUtils.getInteger(obj, "DCFJ"));
pcsAlarmData.setWbfjyc(MapUtils.getInteger(obj, "WBFJYC"));
pcsAlarmData.setDcdygj(MapUtils.getInteger(obj, "DCDYGJ"));
pcsAlarmData.setDczzqy(MapUtils.getInteger(obj, "DCZZQY"));
pcsAlarmData.setZlbxsyc(MapUtils.getInteger(obj, "ZLBXSYC"));
pcsAlarmData.setNbfjyc(MapUtils.getInteger(obj, "NBFJYC"));
pcsAlarmData.setDlbh(MapUtils.getInteger(obj, "DLBH"));
pcsAlarmData.setGzbh(MapUtils.getInteger(obj, "GZBH"));
pcsAlarmData.setScdybfhlwtj(MapUtils.getInteger(obj, "SCDYBFHLWTJ"));
pcsAlarmData.setScdyyc(MapUtils.getInteger(obj, "SCDYYC"));
pcsAlarmData.setZlgl(MapUtils.getInteger(obj, "ZLGL"));
pcsAlarmData.setDcqzqy(MapUtils.getInteger(obj, "DCQZQY"));
pcsAlarmData.setDcgy(MapUtils.getInteger(obj, "DCGY"));
pcsAlarmData.setGlmkgwgJ(MapUtils.getInteger(obj, "GLMKGWGJ"));
pcsAlarmData.setDwgqpdjgj(MapUtils.getInteger(obj, "DWGQPDJGJ"));
pcsAlarmData.setKkhrqyc(MapUtils.getInteger(obj, "KKHRQYC"));
pcsAlarmData.setBmsjt(MapUtils.getInteger(obj, "BMSJT"));
pcsAlarmData.setBwjdvc(MapUtils.getInteger(obj, "BWJDYC"));
pcsAlarmData.setJljdvc(MapUtils.getInteger(obj, "JLJDYC"));
pcsAlarmData.setFjjdvc(MapUtils.getInteger(obj, "FJJDYC"));
pcsAlarmData.setZjjdvc(MapUtils.getInteger(obj, "ZJJDYC"));
pcsAlarmData.setDgwdkgwc(MapUtils.getInteger(obj, "DGWDKGYC"));
pcsAlarmData.setFybyqwdkgwc(MapUtils.getInteger(obj, "FYBYQWDKGYC"));
pcsAlarmData.setWbwdkgwc(MapUtils.getInteger(obj, "WBWDKGYC"));
pcsAlarmData.setSrqwdkgwc(MapUtils.getInteger(obj, "SRQWDKGYC"));
pcsAlarmData.setZlfjyc(MapUtils.getInteger(obj, "ZLFJYC"));
pcsAlarmData.setGdycyyx(MapUtils.getInteger(obj, "GDYCYYX"));
pcsAlarmData.setDdycyyx(MapUtils.getInteger(obj, "DDYCYYX"));
pcsAlarmData.setDwdybphgj(MapUtils.getInteger(obj, "DWDYBPHGJ"));
pcsAlarmData.setXtcsbpp(MapUtils.getInteger(obj, "XTCSBPP"));
pcsAlarmData.setZlblmsszcw(MapUtils.getInteger(obj, "ZLBLMSSZCW"));
pcsAlarmData.setGjz(MapUtils.getInteger(obj, "GJZ"));
pcsAlarmData.setGzz(MapUtils.getInteger(obj, "GZZ"));
pcsAlarmData.setYctxyc(MapUtils.getInteger(obj, "YCTXYC"));
pcsAlarmData.setHmi485txyc(MapUtils.getInteger(obj, "HMI485TXYC"));
pcsAlarmData.setJxszcw(MapUtils.getInteger(obj, "JXSZCW"));
pcsAlarmData.setHmictxyc(MapUtils.getInteger(obj, "HMICTXYC"));
pcsAlarmData.setBjtxyc(MapUtils.getInteger(obj, "BJTXYC"));
pcsAlarmData.setYwgj(MapUtils.getInteger(obj, "YWGJ"));
pcsAlarmData.setZlzjcqyc(MapUtils.getInteger(obj, "ZLZJCQYC"));
pcsAlarmData.setLxgl(MapUtils.getInteger(obj, "LXGL"));
pcsAlarmData.setZldhyc(MapUtils.getInteger(obj, "ZLDHYC"));
pcsAlarmData.setTbctxvc(MapUtils.getInteger(obj, "TBCTXYC"));
pcsAlarmData.setBjtxxyc(MapUtils.getInteger(obj, "BJTXXYC"));
pcsAlarmData.setXxgxctxvc(MapUtils.getInteger(obj, "XXGXCTXYC"));
pcsAlarmData.setIdct(MapUtils.getInteger(obj, "IDCT"));
pcsAlarmData.setQdyc(MapUtils.getInteger(obj, "QDYC"));
pcsAlarmData.setNbyjgl(MapUtils.getInteger(obj, "NBYJGL"));
pcsAlarmData.setZndbtxyc(MapUtils.getInteger(obj, "ZNDBTXYC"));
pcsAlarmData.setZlflqyc(MapUtils.getInteger(obj, "ZLFLQYC"));
pcsAlarmData.setSxyc(MapUtils.getInteger(obj, "SXYC"));
pcsAlarmData.setMjgj(MapUtils.getInteger(obj, "MJGJ"));
pcsAlarmData.setLpjzyc(MapUtils.getInteger(obj, "LPJZYC"));
pcsAlarmData.setMxdlgl(MapUtils.getInteger(obj, "MXDLGL"));
pcsAlarmData.setMxdbyfhkjtj(MapUtils.getInteger(obj, "MXDYBFHKJTJ"));
pcsAlarmData.setWbjt(MapUtils.getInteger(obj, "WBJT"));
pcsAlarmData.setNbjt(MapUtils.getInteger(obj, "NBJT"));
pcsAlarmData.setJlflqyc(MapUtils.getInteger(obj, "JLFLQYC"));
pcsAlarmData.setRjhjyc(MapUtils.getInteger(obj, "RJHJYC"));
pcsAlarmData.setJlrqdyc(MapUtils.getInteger(obj, "JLRQDYC"));
pcsAlarmData.setJngw(MapUtils.getInteger(obj, "JNGW"));
pcsAlarmData.setNbyc(MapUtils.getInteger(obj, "NBYC"));
pcsAlarmData.setWdkgwc(MapUtils.getInteger(obj, "WDKGYC"));
pcsAlarmData.setJlkgwc(MapUtils.getInteger(obj, "JLKGYC"));
pcsAlarmData.setJlfjyc(MapUtils.getInteger(obj, "JLFJYC"));
pcsAlarmData.setZlkgwc(MapUtils.getInteger(obj, "ZLKGYC"));
pcsAlarmData.setZlrqdyc(MapUtils.getInteger(obj, "ZLRQDYC"));
pcsAlarmData.setNbrjgl(MapUtils.getInteger(obj, "NBRJGL"));
pcsAlarmData.setDwxxyc(MapUtils.getInteger(obj, "DWXXYC"));
pcsAlarmData.setGlmkgw(MapUtils.getInteger(obj, "GLMKGW"));
pcsAlarmData.setDwqpyc(MapUtils.getInteger(obj, "DWQPYC"));
pcsAlarmData.setDwgpyc(MapUtils.getInteger(obj, "DWGPYC"));
pcsAlarmData.setDwqyyc(MapUtils.getInteger(obj, "DWQYYC"));
pcsAlarmData.setDwgyyc(MapUtils.getInteger(obj, "DWGYYC"));
pcsAlarmData.setZlgv(MapUtils.getInteger(obj, "ZLGY"));
pcsAlarmData.setJlllyc(MapUtils.getInteger(obj, "JLLDLYC"));
pcsAlarmData.setJyzkyc(MapUtils.getInteger(obj, "JYZKYC"));
pcsAlarmData.setGzbz(MapUtils.getInteger(obj, "GZBZ"));
pcsAlarmData.setCreateBy("system");
pcsAlarmData.setCreateTime(DateUtils.getNowDate());
pcsAlarmData.setUpdateBy("system");
pcsAlarmData.setUpdateTime(DateUtils.getNowDate());
pcsAlarmData.setSiteId(SITE_ID);
pcsAlarmData.setDeviceId(deviceId);
emsPcsAlarmDataMapper.insertEmsPcsAlarmData(pcsAlarmData);
}
private void stackDataProcess(String deviceId, String jsonData, Date dataUpdateTime) {
// bmsd
Map<String, Object> obj = JSON.parseObject(jsonData, new TypeReference<Map<String, Object>>() {
});
EmsStackAlarmData stackAlarmData = new EmsStackAlarmData();
// 更新时间
stackAlarmData.setDataTimestamp(dataUpdateTime);
// 告警字段
stackAlarmData.setKttxsl(MapUtils.getInteger(obj, "KTTXSL"));
stackAlarmData.setDidodi12(MapUtils.getInteger(obj, "DIDODI12"));
stackAlarmData.setDidodi11(MapUtils.getInteger(obj, "DIDODI11"));
stackAlarmData.setDidodi10(MapUtils.getInteger(obj, "DIDODI10"));
stackAlarmData.setDidodi9(MapUtils.getInteger(obj, "DIDODI9"));
stackAlarmData.setDidodi8(MapUtils.getInteger(obj, "DIDODI8"));
stackAlarmData.setDidodi7(MapUtils.getInteger(obj, "DIDODI7"));
stackAlarmData.setDidodi6(MapUtils.getInteger(obj, "DIDODI6"));
stackAlarmData.setDidodi5(MapUtils.getInteger(obj, "DIDODI5"));
stackAlarmData.setDidodi4(MapUtils.getInteger(obj, "DIDODI4"));
stackAlarmData.setDidodi3(MapUtils.getInteger(obj, "DIDODI3"));
stackAlarmData.setDidodi2(MapUtils.getInteger(obj, "DIDODI2"));
stackAlarmData.setDidodi1(MapUtils.getInteger(obj, "DIDODI1"));
stackAlarmData.setDidodi0(MapUtils.getInteger(obj, "DIDODI0"));
stackAlarmData.setWdcjsl(MapUtils.getInteger(obj, "WDCJSL"));
stackAlarmData.setDycjsl(MapUtils.getInteger(obj, "DYCJSL"));
stackAlarmData.setDnmkdyqyyzgjhz(MapUtils.getInteger(obj, "DNMKDYQYYZGJHZ"));
stackAlarmData.setDnmkdyqyzdgjhz(MapUtils.getInteger(obj, "DNMKDYQYZDGJHZ"));
stackAlarmData.setDnmkdyqyqwgjhz(MapUtils.getInteger(obj, "DNMKDYQYQWGJHZ"));
stackAlarmData.setDnmkdygyyzgjhz(MapUtils.getInteger(obj, "DNMKDYGYYZGJHZ"));
stackAlarmData.setDnmkdygyzdgjhz(MapUtils.getInteger(obj, "DNMKDYGYZDGJHZ"));
stackAlarmData.setDnmkdygyqwgjhz(MapUtils.getInteger(obj, "DNMKDYGYQWGJHZ"));
stackAlarmData.setDngdzgwzzdgjhz(MapUtils.getInteger(obj, "DNGDZGWZZDGJHZ"));
stackAlarmData.setDngdzgwzdgjhz(MapUtils.getInteger(obj, "DNGDZGWZDGJHZ"));
stackAlarmData.setDngdzgwqwgjhz(MapUtils.getInteger(obj, "DNGDZGWQWGJHZ"));
stackAlarmData.setYl8(MapUtils.getInteger(obj, "YL8"));
stackAlarmData.setYl7(MapUtils.getInteger(obj, "YL7"));
stackAlarmData.setYl6(MapUtils.getInteger(obj, "YL6"));
stackAlarmData.setYl5(MapUtils.getInteger(obj, "YL5"));
stackAlarmData.setYl4(MapUtils.getInteger(obj, "YL4"));
stackAlarmData.setYl3(MapUtils.getInteger(obj, "YL3"));
stackAlarmData.setYl2(MapUtils.getInteger(obj, "YL2"));
stackAlarmData.setYl1(MapUtils.getInteger(obj, "YL1"));
stackAlarmData.setSrin3(MapUtils.getInteger(obj, "SRIN3"));
stackAlarmData.setSrin2(MapUtils.getInteger(obj, "SRIN2"));
stackAlarmData.setSrin1(MapUtils.getInteger(obj, "SRIN1"));
stackAlarmData.setSrin0(MapUtils.getInteger(obj, "SRIN0"));
stackAlarmData.setBmsxtgzhz(MapUtils.getInteger(obj, "BMSXTGZHZ"));
stackAlarmData.setBmsxtgjhz(MapUtils.getInteger(obj, "BMSXTGJHZ"));
stackAlarmData.setFdjz(MapUtils.getInteger(obj, "FDJZ"));
stackAlarmData.setCdjz(MapUtils.getInteger(obj, "CDJZ"));
stackAlarmData.setDnjcqbhyc(MapUtils.getInteger(obj, "DNJCQBHYC"));
stackAlarmData.setDnjcqdkyc(MapUtils.getInteger(obj, "DNJCQDKYC"));
stackAlarmData.setDngzdyyc(MapUtils.getInteger(obj, "DNGZDYYC"));
stackAlarmData.setDngckslgjhz(MapUtils.getInteger(obj, "DNGCKSLGJHZ"));
stackAlarmData.setDngzkslhz(MapUtils.getInteger(obj, "DNGZKSLHZ"));
stackAlarmData.setDtsohgyzgjhz(MapUtils.getInteger(obj, "DTSOHGYZGJHZ"));
stackAlarmData.setDtsohgzdgjhz(MapUtils.getInteger(obj, "DTSOHGZDGJHZ"));
stackAlarmData.setDtsohgqwgjhz(MapUtils.getInteger(obj, "DTSOHGQWGJHZ"));
stackAlarmData.setDtsohdyzgjhz(MapUtils.getInteger(obj, "DTSOHDYZGJHZ"));
stackAlarmData.setDtsohdzdgjhz(MapUtils.getInteger(obj, "DTSOHDZDGJHZ"));
stackAlarmData.setDtsohdqwgjhz(MapUtils.getInteger(obj, "DTSOHDQWGJHZ"));
stackAlarmData.setDtsocgyzgjhz(MapUtils.getInteger(obj, "DTSOCGYZGJHZ"));
stackAlarmData.setDtsocgzdgjhz(MapUtils.getInteger(obj, "DTSOCGZDGJHZ"));
stackAlarmData.setDtsocgqwgjhz(MapUtils.getInteger(obj, "DTSOCGQWGJHZ"));
stackAlarmData.setDtsocdyzgjhz(MapUtils.getInteger(obj, "DTSOCDYZGJHZ"));
stackAlarmData.setDtsocdzdgjhz(MapUtils.getInteger(obj, "DTSOCDZDGJHZ"));
stackAlarmData.setDtsocdqwgjhz(MapUtils.getInteger(obj, "DTSOCDQWGJHZ"));
stackAlarmData.setDngdtwcyzgjhz(MapUtils.getInteger(obj, "DNGDTWCYZGJHZ"));
stackAlarmData.setDngdtwczdgjhz(MapUtils.getInteger(obj, "DNGDTWCZDGJHZ"));
stackAlarmData.setDngdtwcqwgjhz(MapUtils.getInteger(obj, "DNGDTWCQWGJHZ"));
stackAlarmData.setDngdtgwyzgjhz(MapUtils.getInteger(obj, "DNGDTGWYZGJHZ"));
stackAlarmData.setDngdtgwzdgjhz(MapUtils.getInteger(obj, "DNGDTGWZDGJHZ"));
stackAlarmData.setDngdtgwqwgjhz(MapUtils.getInteger(obj, "DNGDTGWQWGJHZ"));
stackAlarmData.setDngdtqwyzgjhz(MapUtils.getInteger(obj, "DNGDTQWYZGJHZ"));
stackAlarmData.setDngdtqwzdgjhz(MapUtils.getInteger(obj, "DNGDTQWZDGJHZ"));
stackAlarmData.setDngdtqwqwgjhz(MapUtils.getInteger(obj, "DNGDTQWQWGJHZ"));
stackAlarmData.setDngdtycyzgjhz(MapUtils.getInteger(obj, "DNGDTYCYZGJHZ"));
stackAlarmData.setDngdtyczdgjhz(MapUtils.getInteger(obj, "DNGDTYCZDGJHZ"));
stackAlarmData.setDngdtycqwgjhz(MapUtils.getInteger(obj, "DNGDTYCQWGJHZ"));
stackAlarmData.setDngdtqyyzgjhz(MapUtils.getInteger(obj, "DNGDTQYYZGJHZ"));
stackAlarmData.setDngdtqyzdgjhz(MapUtils.getInteger(obj, "DNGDTQYZDGJHZ"));
stackAlarmData.setDngdtqyqwgjhz(MapUtils.getInteger(obj, "DNGDTQYQWGJHZ"));
stackAlarmData.setDngdtgyyzgjhz(MapUtils.getInteger(obj, "DNGDTGYYZGJHZ"));
stackAlarmData.setDngdtgyzdgjhz(MapUtils.getInteger(obj, "DNGDTGYZDGJHZ"));
stackAlarmData.setDngdtgyqwgjhz(MapUtils.getInteger(obj, "DNGDTGYQWGJHZ"));
stackAlarmData.setDngzmkgwdzzdgjhz(MapUtils.getInteger(obj, "DNGZMKGWDZZDGJHZ"));
stackAlarmData.setDngzmkgwdzdgjhz(MapUtils.getInteger(obj, "DNGZMKGWDZDGJHZ"));
stackAlarmData.setDngzmkgwdqdgjhz(MapUtils.getInteger(obj, "DNGZMKGWDQDGJHZ"));
stackAlarmData.setDngzmkqwdzzdgjhz(MapUtils.getInteger(obj, "DNGZMKQWDZZDGJHZ"));
stackAlarmData.setDngzmkqwdzdgjhz(MapUtils.getInteger(obj, "DNGZMKQWDZDGJHZ"));
stackAlarmData.setDngzmkqwdqdgjhz(MapUtils.getInteger(obj, "DNGZMKQWDQDGJHZ"));
stackAlarmData.setDngzjydzdzzdgjhz(MapUtils.getInteger(obj, "DNGZJYDZDZZDGJHZ"));
stackAlarmData.setDngzjydzdzdgjhz(MapUtils.getInteger(obj, "DNGZJYDZDZDGJHZ"));
stackAlarmData.setDngzjydzdqdgjhz(MapUtils.getInteger(obj, "DNGZJYDZDQDGJHZ"));
stackAlarmData.setDngzdglzzdgjhz(MapUtils.getInteger(obj, "DNGZDGLZZDGJHZ"));
stackAlarmData.setDngzdglzdgjhz(MapUtils.getInteger(obj, "DNGZDGLZDGJHZ"));
stackAlarmData.setDngzdglqdgjhz(MapUtils.getInteger(obj, "DNGZDGLQDGJHZ"));
stackAlarmData.setDngzddygyzzdgjhz(MapUtils.getInteger(obj, "DNGZDDYGYZZDGJHZ"));
stackAlarmData.setDngzddygyzdgjhz(MapUtils.getInteger(obj, "DNGZDDYGYZDGJHZ"));
stackAlarmData.setDngzddygyqdgjhz(MapUtils.getInteger(obj, "DNGZDDYGYQDGJHZ"));
stackAlarmData.setDngzddyqyzzdgjhz(MapUtils.getInteger(obj, "DNGZDDYQYZZDGJHZ"));
stackAlarmData.setDngzddyqyzdgjhz(MapUtils.getInteger(obj, "DNGZDDYQYZDGJHZ"));
stackAlarmData.setDngzddyqyqdgjhz(MapUtils.getInteger(obj, "DNGZDDYQYQDGJHZ"));
stackAlarmData.setJfzt(MapUtils.getInteger(obj, "JFZT"));
stackAlarmData.setJczt(MapUtils.getInteger(obj, "JCZT"));
stackAlarmData.setBmsgzzt(MapUtils.getInteger(obj, "BMSGZZT"));
stackAlarmData.setCreateBy("system");
stackAlarmData.setCreateTime(DateUtils.getNowDate());
stackAlarmData.setUpdateBy("system");
stackAlarmData.setUpdateTime(DateUtils.getNowDate());
stackAlarmData.setSiteId(SITE_ID);
stackAlarmData.setDeviceId(deviceId);
emsStackAlarmDataMapper.insertEmsStackAlarmData(stackAlarmData);
}
private void clusterDataProcess(String deviceId, String jsonData, Date dataUpdateTime) {
// bmsc
Map<String, Object> obj = JSON.parseObject(jsonData, new TypeReference<Map<String, Object>>() {
});
EmsClusterAlarmData clusterAlarmData = new EmsClusterAlarmData();
// 更新时间
clusterAlarmData.setDataTimestamp(dataUpdateTime);
// 告警字段
clusterAlarmData.setC1wdcjgz(MapUtils.getInteger(obj, "C1WDCJGZ"));
clusterAlarmData.setC1dycjgz(MapUtils.getInteger(obj, "C1DYCJGZ"));
clusterAlarmData.setC1mkdygdzzdgj(MapUtils.getInteger(obj, "C1MKDYGDZZDGJ"));
clusterAlarmData.setC1mkdygdzdgj(MapUtils.getInteger(obj, "C1MKDYGDZDGJ"));
clusterAlarmData.setC1mkdygdqdgj(MapUtils.getInteger(obj, "C1MKDYGDQDGJ"));
clusterAlarmData.setC1mkdyggzzdgj(MapUtils.getInteger(obj, "C1MKDYGGZZDGJ"));
clusterAlarmData.setC1mkdyggzdgj(MapUtils.getInteger(obj, "C1MKDYGGZDGJ"));
clusterAlarmData.setC1mkdyggqdgj(MapUtils.getInteger(obj, "C1MKDYGGQDGJ"));
clusterAlarmData.setC1dzwdggzzdgj(MapUtils.getInteger(obj, "C1DZWDGGZZDGJ"));
clusterAlarmData.setC1dzwdggzdgj(MapUtils.getInteger(obj, "C1DZWDGGZDGJ"));
clusterAlarmData.setC1dzwdggqdgj(MapUtils.getInteger(obj, "C1DZWDGGQDGJ"));
clusterAlarmData.setC1ck40txsl(MapUtils.getInteger(obj, "C1CK40TXSL"));
clusterAlarmData.setC1ck39txsl(MapUtils.getInteger(obj, "C1CK39TXSL"));
clusterAlarmData.setC1ck38txsl(MapUtils.getInteger(obj, "C1CK38TXSL"));
clusterAlarmData.setC1ck37txsl(MapUtils.getInteger(obj, "C1CK37TXSL"));
clusterAlarmData.setC1ck36txsl(MapUtils.getInteger(obj, "C1CK36TXSL"));
clusterAlarmData.setC1ck35txsl(MapUtils.getInteger(obj, "C1CK35TXSL"));
clusterAlarmData.setC1ck34txsl(MapUtils.getInteger(obj, "C1CK34TXSL"));
clusterAlarmData.setC1ck33txsl(MapUtils.getInteger(obj, "C1CK33TXSL"));
clusterAlarmData.setC1ck32txsl(MapUtils.getInteger(obj, "C1CK32TXSL"));
clusterAlarmData.setC1ck31txsl(MapUtils.getInteger(obj, "C1CK31TXSL"));
clusterAlarmData.setC1ck30txsl(MapUtils.getInteger(obj, "C1CK30TXSL"));
clusterAlarmData.setC1ck29txsl(MapUtils.getInteger(obj, "C1CK29TXSL"));
clusterAlarmData.setC1ck28txsl(MapUtils.getInteger(obj, "C1CK28TXSL"));
clusterAlarmData.setC1ck27txsl(MapUtils.getInteger(obj, "C1CK27TXSL"));
clusterAlarmData.setC1ck26txsl(MapUtils.getInteger(obj, "C1CK26TXSL"));
clusterAlarmData.setC1ck25txsl(MapUtils.getInteger(obj, "C1CK25TXSL"));
clusterAlarmData.setC1ck24txsl(MapUtils.getInteger(obj, "C1CK24TXSL"));
clusterAlarmData.setC1ck23txsl(MapUtils.getInteger(obj, "C1CK23TXSL"));
clusterAlarmData.setC1ck22txsl(MapUtils.getInteger(obj, "C1CK22TXSL"));
clusterAlarmData.setC1ck21txsl(MapUtils.getInteger(obj, "C1CK21TXSL"));
clusterAlarmData.setC1ck20txsl(MapUtils.getInteger(obj, "C1CK20TXSL"));
clusterAlarmData.setC1ck19txsl(MapUtils.getInteger(obj, "C1CK19TXSL"));
clusterAlarmData.setC1ck18txsl(MapUtils.getInteger(obj, "C1CK18TXSL"));
clusterAlarmData.setC1ck17txsl(MapUtils.getInteger(obj, "C1CK17TXSL"));
clusterAlarmData.setC1ck16txsl(MapUtils.getInteger(obj, "C1CK16TXSL"));
clusterAlarmData.setC1ck15txsl(MapUtils.getInteger(obj, "C1CK15TXSL"));
clusterAlarmData.setC1ck14txsl(MapUtils.getInteger(obj, "C1CK14TXSL"));
clusterAlarmData.setC1ck13txsl(MapUtils.getInteger(obj, "C1CK13TXSL"));
clusterAlarmData.setC1ck12txsl(MapUtils.getInteger(obj, "C1CK12TXSL"));
clusterAlarmData.setC1ck11txsl(MapUtils.getInteger(obj, "C1CK11TXSL"));
clusterAlarmData.setC1ck10txsl(MapUtils.getInteger(obj, "C1CK10TXSL"));
clusterAlarmData.setC1ck9txsl(MapUtils.getInteger(obj, "C1CK9TXSL"));
clusterAlarmData.setC1ck8txsl(MapUtils.getInteger(obj, "C1CK8TXSL"));
clusterAlarmData.setC1ck7txsl(MapUtils.getInteger(obj, "C1CK7TXSL"));
clusterAlarmData.setC1ck6txsl(MapUtils.getInteger(obj, "C1CK6TXSL"));
clusterAlarmData.setC1ck5txsl(MapUtils.getInteger(obj, "C1CK5TXSL"));
clusterAlarmData.setC1ck4txsl(MapUtils.getInteger(obj, "C1CK4TXSL"));
clusterAlarmData.setC1ck3txsl(MapUtils.getInteger(obj, "C1CK3TXSL"));
clusterAlarmData.setC1ck2txsl(MapUtils.getInteger(obj, "C1CK2TXSL"));
clusterAlarmData.setC1ck1txsl(MapUtils.getInteger(obj, "C1CK1TXSL"));
clusterAlarmData.setC1dtwczzdgj(MapUtils.getInteger(obj, "C1DTWCZZDGJ"));
clusterAlarmData.setC1dtwczdgj(MapUtils.getInteger(obj, "C1DTWCZDGJ"));
clusterAlarmData.setC1dtwcqdgj(MapUtils.getInteger(obj, "C1DTWCQDGJ"));
clusterAlarmData.setC1dtyczzdgj(MapUtils.getInteger(obj, "C1DTYCZZDGJ"));
clusterAlarmData.setC1dtyczdgj(MapUtils.getInteger(obj, "C1DTYCZDGJ"));
clusterAlarmData.setC1dtycqdgj(MapUtils.getInteger(obj, "C1DTYCQDGJ"));
clusterAlarmData.setC1sohdzzdgj(MapUtils.getInteger(obj, "C1SOHDZZDGJ"));
clusterAlarmData.setC1sohdzdgj(MapUtils.getInteger(obj, "C1SOHDZDGJ"));
clusterAlarmData.setC1sohdqdgj(MapUtils.getInteger(obj, "C1SOHDQDGJ"));
clusterAlarmData.setC1socgzzdgj(MapUtils.getInteger(obj, "C1SOCGZZDGJ"));
clusterAlarmData.setC1socgzdgj(MapUtils.getInteger(obj, "C1SOCGZDGJ"));
clusterAlarmData.setC1socdzzdgj(MapUtils.getInteger(obj, "C1SOCDZZDGJ"));
clusterAlarmData.setC1socdzdgj(MapUtils.getInteger(obj, "C1SOCDZDGJ"));
clusterAlarmData.setC1socdqdgj(MapUtils.getInteger(obj, "C1SOCDQDGJ"));
clusterAlarmData.setC1dtgwzzdgj(MapUtils.getInteger(obj, "C1DTGWZZDGJ"));
clusterAlarmData.setC1dtgwzdgj(MapUtils.getInteger(obj, "C1DTGWZDGJ"));
clusterAlarmData.setC1dtgwqdgj(MapUtils.getInteger(obj, "C1DTGWQDGJ"));
clusterAlarmData.setC1dtqwzzdgj(MapUtils.getInteger(obj, "C1DTQWZZDGJ"));
clusterAlarmData.setC1dtqwzdgj(MapUtils.getInteger(obj, "C1DTQWZDGJ"));
clusterAlarmData.setC1dtqwqdgj(MapUtils.getInteger(obj, "C1DTQWQDGJ"));
clusterAlarmData.setC1dtgyzzdgj(MapUtils.getInteger(obj, "C1DTGYZZDGJ"));
clusterAlarmData.setC1dtgyzdgj(MapUtils.getInteger(obj, "C1DTGYZDGJ"));
clusterAlarmData.setC1dtgyqdgj(MapUtils.getInteger(obj, "C1DTGYQDGJ"));
clusterAlarmData.setC1dtqyzzdgj(MapUtils.getInteger(obj, "C1DTQYZZDGJ"));
clusterAlarmData.setC1dtqyzdgj(MapUtils.getInteger(obj, "C1DTQYZDGJ"));
clusterAlarmData.setC1dtqyqdgj(MapUtils.getInteger(obj, "C1DTQYQDGJ"));
clusterAlarmData.setC1ddlzzdgj(MapUtils.getInteger(obj, "C1DDLZZDGJ"));
clusterAlarmData.setC1ddlzdgj(MapUtils.getInteger(obj, "C1DDLZDGJ"));
clusterAlarmData.setC1ddlqdgj(MapUtils.getInteger(obj, "C1DDLQDGJ"));
clusterAlarmData.setC1ddygyzzdgj(MapUtils.getInteger(obj, "C1DDYGYZZDGJ"));
clusterAlarmData.setC1ddygyzdgj(MapUtils.getInteger(obj, "C1DDYGYZDGJ"));
clusterAlarmData.setC1ddygyqdgj(MapUtils.getInteger(obj, "C1DDYGYQDGJ"));
clusterAlarmData.setC1ddyqyzzdgj(MapUtils.getInteger(obj, "C1DDYQYZZDGJ"));
clusterAlarmData.setC1ddyqyzdgj(MapUtils.getInteger(obj, "C1DDYQYZDGJ"));
clusterAlarmData.setC1ddyqyqdgj(MapUtils.getInteger(obj, "C1DDYQYQDGJ"));
clusterAlarmData.setC1zktxsl(MapUtils.getInteger(obj, "C1ZKTXSL"));
clusterAlarmData.setC1socgqdgj(MapUtils.getInteger(obj, "C1SOCGQDGJ"));
clusterAlarmData.setCreateBy("system");
clusterAlarmData.setCreateTime(DateUtils.getNowDate());
clusterAlarmData.setUpdateBy("system");
clusterAlarmData.setUpdateTime(DateUtils.getNowDate());
clusterAlarmData.setSiteId(SITE_ID);
clusterAlarmData.setDeviceId(deviceId);
emsClusterAlarmDataMapper.insertEmsClusterAlarmData(clusterAlarmData);
}
private void coolingDataProcess(String deviceId, String jsonData, Date dataUpdateTime) {
//中水冷却
Map<String, Object> obj = JSON.parseObject(jsonData, new TypeReference<Map<String, Object>>() {
});
EmsCoolingAlarmData coolingAlarmData = new EmsCoolingAlarmData();
// 更新时间
coolingAlarmData.setDataTimestamp(dataUpdateTime);
// 告警字段
// 从Map中获取值并转为Integer适配tinyint字段
coolingAlarmData.setLsjyx(MapUtils.getInteger(obj, "LSJYX"));
coolingAlarmData.setPqdcfyx(MapUtils.getInteger(obj, "PQDCFYX"));
coolingAlarmData.setDjrq2yx(MapUtils.getInteger(obj, "DJRQ2YX"));
coolingAlarmData.setDjrq1yx(MapUtils.getInteger(obj, "DJRQ1YX"));
coolingAlarmData.setBqbyx(MapUtils.getInteger(obj, "BQBYX"));
coolingAlarmData.setBsbyx(MapUtils.getInteger(obj, "BSBYX"));
coolingAlarmData.setZxhbyx(MapUtils.getInteger(obj, "ZXHBYX")); // 此处不再报错
coolingAlarmData.setSltzgz(MapUtils.getInteger(obj, "SLTZGZ"));
coolingAlarmData.setSlzhyj(MapUtils.getInteger(obj, "SLZHYJ"));
coolingAlarmData.setSlxtyctzxh(MapUtils.getInteger(obj, "SLXTYCTZXH"));
coolingAlarmData.setSlxtycqdxh(MapUtils.getInteger(obj, "SLXTYCQDXH"));
coolingAlarmData.setSlxtyckz(MapUtils.getInteger(obj, "SLXTYCKZ"));
coolingAlarmData.setSlxtbdkz(MapUtils.getInteger(obj, "SLXTBDKZ"));
coolingAlarmData.setSlxtzdms(MapUtils.getInteger(obj, "SLXTZDMS"));
coolingAlarmData.setSlxtsdms(MapUtils.getInteger(obj, "SLXTSDMS"));
coolingAlarmData.setHsylcdyj(MapUtils.getInteger(obj, "HSYLCDYJ"));
coolingAlarmData.setHsyldyj(MapUtils.getInteger(obj, "HSYLDYJ"));
coolingAlarmData.setGsylcgyj(MapUtils.getInteger(obj, "GSYLCGYJ"));
coolingAlarmData.setGsylgyj(MapUtils.getInteger(obj, "GSYLGYJ"));
coolingAlarmData.setGsylcdyj(MapUtils.getInteger(obj, "GSYLCDYJ"));
coolingAlarmData.setGsyldyj(MapUtils.getInteger(obj, "GSYLDYJ"));
coolingAlarmData.setHcgywg(MapUtils.getInteger(obj, "HCGYWG"));
coolingAlarmData.setHcgywcdtz(MapUtils.getInteger(obj, "HCGYWCDTZ"));
coolingAlarmData.setHcgywd(MapUtils.getInteger(obj, "HCGYWD"));
coolingAlarmData.setHcgylg(MapUtils.getInteger(obj, "HCGYLG"));
coolingAlarmData.setHcgyld(MapUtils.getInteger(obj, "HCGYLD"));
coolingAlarmData.setLysylgyj(MapUtils.getInteger(obj, "LYSYLGYJ"));
coolingAlarmData.setLysyldyj(MapUtils.getInteger(obj, "LYSYLDYJ"));
coolingAlarmData.setHswdcgyj(MapUtils.getInteger(obj, "HSWDCGYJ"));
coolingAlarmData.setHswdgyj(MapUtils.getInteger(obj, "HSWDGYJ"));
coolingAlarmData.setGswdcgtz(MapUtils.getInteger(obj, "GSWDCGTZ"));
coolingAlarmData.setGswdgyj(MapUtils.getInteger(obj, "GSWDGYJ"));
coolingAlarmData.setGswddyj(MapUtils.getInteger(obj, "GSWDDYJ"));
coolingAlarmData.setDdf2gz(MapUtils.getInteger(obj, "DDF2GZ"));
coolingAlarmData.setDdf1gz(MapUtils.getInteger(obj, "DDF1GZ"));
coolingAlarmData.setLyswdbsqyJ(MapUtils.getInteger(obj, "LYSWDBSQYJ"));
coolingAlarmData.setHsylbsqyJ(MapUtils.getInteger(obj, "HSYLBSQYJ"));
coolingAlarmData.setGsylbsqyJ(MapUtils.getInteger(obj, "GSYLBSQYJ"));
coolingAlarmData.setHswdbsqyJ(MapUtils.getInteger(obj, "HSWDBSQYJ"));
coolingAlarmData.setGswdbsqgztz(MapUtils.getInteger(obj, "GSWDBSQGZTZ"));
coolingAlarmData.setLsjgz(MapUtils.getInteger(obj, "LSJGZ"));
coolingAlarmData.setDjrq2gz(MapUtils.getInteger(obj, "DJRQ2GZ"));
coolingAlarmData.setDjrq1gz(MapUtils.getInteger(obj, "DJRQ1GZ"));
coolingAlarmData.setBqbgz(MapUtils.getInteger(obj, "BQBGZ"));
coolingAlarmData.setBsbgz(MapUtils.getInteger(obj, "BSBGZ"));
coolingAlarmData.setXhbgz(MapUtils.getInteger(obj, "XHBGZ"));
coolingAlarmData.setZdygz(MapUtils.getInteger(obj, "ZDYGZ"));
coolingAlarmData.setCreateBy("system");
coolingAlarmData.setCreateTime(DateUtils.getNowDate());
coolingAlarmData.setUpdateBy("system");
coolingAlarmData.setUpdateTime(DateUtils.getNowDate());
coolingAlarmData.setSiteId(SITE_ID);
coolingAlarmData.setDeviceId(deviceId);
emsCoolingAlarmDataMapper.insertEmsCoolingAlarmData(coolingAlarmData);
}
@Override
public void processBatch(List<EmsBatteryData> batchData) {
super.processBatch(batchData);
}
private void alarmDataProcess(String deviceId, String jsonData,
Map<String, EmsAlarmMatchData> alarmInfoData, String category) {
Map<String, Object> obj = JSON.parseObject(jsonData, new TypeReference<Map<String, Object>>() {
});
String redisKey = RedisKeyConstants.LATEST_ALARM_RECORD + "_" + SITE_ID +"_" + deviceId;
// 获取redis里面的当前有效告警遍历添加到已存在告警key里面
Map<String, Object> currentAlarm = redisCache.getCacheMap(redisKey);
final Set<String> currentAlarmKeys = new HashSet<>();
if (currentAlarm != null && !currentAlarm.isEmpty()) {
currentAlarm.keySet().stream()
.filter(Objects::nonNull)
.map(Object::toString)
.forEach(currentAlarmKeys::add);
}
// 结合同步数据,筛选簇需要更新的告警信息
List<String> needUpdateKeys = obj.entrySet().stream()
.filter(entry -> {
Object valueObj = entry.getValue();
if (valueObj == null) {
return false;
}
int value = Integer.parseInt(valueObj.toString());
return value == 0 && currentAlarmKeys.contains(entry.getKey());
})
.map(Map.Entry::getKey)
.collect(Collectors.toList());
// 批量查询数据库-需要更新的数据
Map<String, EmsAlarmRecords> needUpdateMap = new HashMap<>();
if (!needUpdateKeys.isEmpty()) {
List<EmsAlarmRecords> records = iEmsAlarmRecordsService.getAllUnfinishedRecords(needUpdateKeys,SITE_ID, deviceId);
// 转为Map便于快速获取
needUpdateMap = records.stream()
.collect(Collectors.toMap(
EmsAlarmRecords::getAlarmPoint,
record -> record
));
}
List<EmsAlarmRecords> saveOrUpdateList = new ArrayList<>();
List<EmsAlarmRecords> newAddRecordList = new ArrayList<>();
List<String> toRemoveFromRedis = new ArrayList<>();
// 遍历数据map
for (Map.Entry<String, Object> entry : obj.entrySet()) {
String key = entry.getKey();
Integer value = (Integer) entry.getValue();
Boolean isCurrentAlarm = currentAlarmKeys.contains(key);
// 值为 1且不在当前告警里面 - 新增告警
if (value == 1 && !isCurrentAlarm) {
String matchRedisKey = category + "_" + key;
Object cacheObj = alarmInfoData.get(matchRedisKey);
if (cacheObj == null) {
// 处理空数据逻辑
return;
}
EmsAlarmMatchData matchInfo = JSON.toJavaObject(cacheObj, EmsAlarmMatchData.class);
EmsAlarmRecords emsAlarmRecord = convertAlarmRecord(deviceId,matchInfo);
saveOrUpdateList.add(emsAlarmRecord);
newAddRecordList.add(emsAlarmRecord);
} else if (value == 0 && isCurrentAlarm) {// 值为 0且在当前告警里面 - 更新告警已处理
EmsAlarmRecords existingAlarm = needUpdateMap.get(key);
if (existingAlarm != null) {
existingAlarm.setStatus(AlarmStatus.DONE.getCode());
existingAlarm.setUpdateTime(new Date());
existingAlarm.setAlarmEndTime(new Date());
saveOrUpdateList.add(existingAlarm);
toRemoveFromRedis.add(key);
}
}
}
// 批量处理插入和更新操作
if (saveOrUpdateList != null && saveOrUpdateList.size() > 0) {
iEmsAlarmRecordsService.batchProcessAlarmRecords(saveOrUpdateList);
}
// 已处理的从redis里面删除
if (!toRemoveFromRedis.isEmpty()) {
redisCache.deleteAllCacheMapValue(RedisKeyConstants.LATEST_ALARM_RECORD + SITE_ID,toRemoveFromRedis.toArray());
}
// 批量添加新增的告警到Redis
Map<String, EmsAlarmRecords> newAlarms = newAddRecordList.stream()
.filter(a -> !AlarmStatus.DONE.getCode().equals(a.getStatus()))
.collect(Collectors.toMap(EmsAlarmRecords::getAlarmPoint, a -> a));
if (!newAlarms.isEmpty()) {
// 本次新增的放入redis
redisCache.setAllCacheMapValue(redisKey, newAlarms);
}
}
private EmsAlarmRecords convertAlarmRecord(String deviceId, EmsAlarmMatchData matchInfo) {
EmsAlarmRecords emsAlarmRecords = new EmsAlarmRecords();
emsAlarmRecords.setSiteId(SITE_ID);
emsAlarmRecords.setDeviceId(deviceId);
emsAlarmRecords.setDeviceType(DeviceType.TCP.toString());
emsAlarmRecords.setAlarmLevel(AlarmLevelStatus.GENERAL.getCode());
emsAlarmRecords.setStatus(AlarmStatus.WAITING.getCode());
emsAlarmRecords.setAlarmStartTime(DateUtils.getNowDate());
emsAlarmRecords.setCreateTime(DateUtils.getNowDate());
emsAlarmRecords.setCreateBy("system");
emsAlarmRecords.setUpdateTime(DateUtils.getNowDate());
emsAlarmRecords.setUpdateBy("system");
if (matchInfo != null) {
emsAlarmRecords.setAlarmPoint(matchInfo.getPoint());
emsAlarmRecords.setAlarmContent(matchInfo.getAlarmDescription());
}
return emsAlarmRecords;
}
// 空数据不处理
private boolean checkJsonDataEmpty(String jsonData) {
boolean flag = false;
try {
if (StringUtils.isEmpty(jsonData)) {
flag = true;
}
JsonNode jsonNode = objectMapper.readTree(jsonData);
// 判断是否为空对象({}
if (jsonNode.isObject() && jsonNode.isEmpty()) {
flag = true ;
}
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
return flag;
}
}

View File

@ -947,17 +947,6 @@ public class FXXDataProcessServiceImpl extends AbstractBatteryDataProcessor impl
&& dataTimeStr.compareTo(endTime) < 0;
}
private String concateCurrentDayTime(String startTime) {
DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern("HH:mm");
LocalTime time = LocalTime.parse(startTime, timeFormatter);
LocalDate today = LocalDate.now();
LocalDateTime targetDateTime = LocalDateTime.of(today, time);
DateTimeFormatter resultFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss");
return targetDateTime.format(resultFormatter);
}
private EmsDailyEnergyData initEnergyData() {
// 先获取数据库当天数据,存在则更新时间,不存在则初始化
EmsDailyEnergyData energyData = emsDailyEnergyDataMapper.getDataByDate(SITE_ID,DateUtils.getDate());
@ -1026,142 +1015,8 @@ public class FXXDataProcessServiceImpl extends AbstractBatteryDataProcessor impl
}
@Override
public void handleFxAlarmData(String message) {
JSONArray arraylist = JSONArray.parseArray(message);
// 获取redis缓存-告警信息
Map<String, EmsAlarmMatchData> alarmMatchInfo= redisCache.getCacheObject(RedisKeyConstants.ALARM_MATCH_INFO);
for (int i = 0; i < arraylist.size(); i++) {
JSONObject obj = JSONObject.parseObject(arraylist.get(i).toString());
String deviceId = obj.get("Device").toString();
String jsonData = obj.get("Data").toString();
log.info("deviceId:" + deviceId);
if (deviceId.contains("BMSD")) {
alarmDataProcess(deviceId, jsonData, alarmMatchInfo, DeviceCategory.STACK.getCode());
} else if (deviceId.contains("BMSC")) {
alarmDataProcess(deviceId, jsonData, alarmMatchInfo, DeviceCategory.CLUSTER.getCode());
} else if (deviceId.contains("PCS")) {
alarmDataProcess(deviceId, jsonData, alarmMatchInfo, DeviceCategory.PCS.getCode());
}
}
}
private void alarmDataProcess(String deviceId, String jsonData,
Map<String, EmsAlarmMatchData> alarmInfoData, String category) {
Map<String, Object> obj = JSON.parseObject(jsonData, new TypeReference<Map<String, Object>>() {
});
String redisKey = RedisKeyConstants.LATEST_ALARM_RECORD + "_" + SITE_ID +"_" + deviceId;
// 获取redis里面的当前有效告警遍历添加到已存在告警key里面
Map<String, Object> currentAlarm = redisCache.getCacheMap(redisKey);
final Set<String> currentAlarmKeys = new HashSet<>();
if (currentAlarm != null && !currentAlarm.isEmpty()) {
currentAlarm.keySet().stream()
.filter(Objects::nonNull)
.map(Object::toString)
.forEach(currentAlarmKeys::add);
}
// 结合同步数据,筛选簇需要更新的告警信息
List<String> needUpdateKeys = obj.entrySet().stream()
.filter(entry -> {
Object valueObj = entry.getValue();
if (valueObj == null) {
return false;
}
int value = Integer.parseInt(valueObj.toString());
return value == 0 && currentAlarmKeys.contains(entry.getKey());
})
.map(Map.Entry::getKey)
.collect(Collectors.toList());
// 批量查询数据库-需要更新的数据
Map<String, EmsAlarmRecords> needUpdateMap = new HashMap<>();
if (!needUpdateKeys.isEmpty()) {
List<EmsAlarmRecords> records = iEmsAlarmRecordsService.getAllUnfinishedRecords(needUpdateKeys,SITE_ID, deviceId);
// 转为Map便于快速获取
needUpdateMap = records.stream()
.collect(Collectors.toMap(
EmsAlarmRecords::getAlarmPoint,
record -> record
));
}
List<EmsAlarmRecords> saveOrUpdateList = new ArrayList<>();
List<EmsAlarmRecords> newAddRecordList = new ArrayList<>();
List<String> toRemoveFromRedis = new ArrayList<>();
// 遍历数据map
for (Map.Entry<String, Object> entry : obj.entrySet()) {
String key = entry.getKey();
Integer value = (Integer) entry.getValue();
Boolean isCurrentAlarm = currentAlarmKeys.contains(key);
// 值为 1且不在当前告警里面 - 新增告警
if (value == 1 && !isCurrentAlarm) {
String matchRedisKey = category + "_" + key;
Object cacheObj = alarmInfoData.get(matchRedisKey);
if (cacheObj == null) {
// 处理空数据逻辑
return;
}
EmsAlarmMatchData matchInfo = JSON.toJavaObject(cacheObj, EmsAlarmMatchData.class);
EmsAlarmRecords emsAlarmRecord = convertAlarmRecord(deviceId,matchInfo);
saveOrUpdateList.add(emsAlarmRecord);
newAddRecordList.add(emsAlarmRecord);
} else if (value == 0 && isCurrentAlarm) {// 值为 0且在当前告警里面 - 更新告警已处理
EmsAlarmRecords existingAlarm = needUpdateMap.get(key);
if (existingAlarm != null) {
existingAlarm.setStatus(AlarmStatus.DONE.getCode());
existingAlarm.setUpdateTime(new Date());
existingAlarm.setAlarmEndTime(new Date());
saveOrUpdateList.add(existingAlarm);
toRemoveFromRedis.add(key);
}
}
}
// 批量处理插入和更新操作
if (saveOrUpdateList != null && saveOrUpdateList.size() > 0) {
iEmsAlarmRecordsService.batchProcessAlarmRecords(saveOrUpdateList);
}
// 已处理的从redis里面删除
if (!toRemoveFromRedis.isEmpty()) {
redisCache.deleteAllCacheMapValue(RedisKeyConstants.LATEST_ALARM_RECORD + SITE_ID,toRemoveFromRedis.toArray());
}
// 批量添加新增的告警到Redis
Map<String, EmsAlarmRecords> newAlarms = newAddRecordList.stream()
.filter(a -> !AlarmStatus.DONE.getCode().equals(a.getStatus()))
.collect(Collectors.toMap(EmsAlarmRecords::getAlarmPoint, a -> a));
if (!newAlarms.isEmpty()) {
// 本次新增的放入redis
redisCache.setAllCacheMapValue(redisKey, newAlarms);
}
}
private EmsAlarmRecords convertAlarmRecord(String deviceId, EmsAlarmMatchData matchInfo) {
EmsAlarmRecords emsAlarmRecords = new EmsAlarmRecords();
emsAlarmRecords.setSiteId(SITE_ID);
emsAlarmRecords.setDeviceId(deviceId);
emsAlarmRecords.setDeviceType(DeviceType.TCP.toString());
emsAlarmRecords.setAlarmLevel(AlarmLevelStatus.GENERAL.getCode());
emsAlarmRecords.setStatus(AlarmStatus.WAITING.getCode());
emsAlarmRecords.setAlarmStartTime(DateUtils.getNowDate());
emsAlarmRecords.setCreateTime(DateUtils.getNowDate());
emsAlarmRecords.setCreateBy("system");
emsAlarmRecords.setUpdateTime(DateUtils.getNowDate());
emsAlarmRecords.setUpdateBy("system");
if (matchInfo != null) {
emsAlarmRecords.setAlarmPoint(matchInfo.getPoint());
emsAlarmRecords.setAlarmContent(matchInfo.getAlarmDescription());
}
return emsAlarmRecords;
public void processBatch(List<EmsBatteryData> batchData) {
super.processBatch(batchData);
}
// 空数据不处理

View File

@ -0,0 +1,526 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xzzn.ems.mapper.EmsClusterAlarmDataMapper">
<resultMap type="EmsClusterAlarmData" id="EmsClusterAlarmDataResult">
<result property="id" column="id" />
<result property="dataTimestamp" column="data_timestamp" />
<result property="siteId" column="site_id" />
<result property="deviceId" column="device_id" />
<result property="c1zktxsl" column="c1zktxsl" />
<result property="c1ddyqyqdgj" column="c1ddyqyqdgj" />
<result property="c1ddyqyzdgj" column="c1ddyqyzdgj" />
<result property="c1ddyqyzzdgj" column="c1ddyqyzzdgj" />
<result property="c1ddygyqdgj" column="c1ddygyqdgj" />
<result property="c1ddygyzdgj" column="c1ddygyzdgj" />
<result property="c1ddygyzzdgj" column="c1ddygyzzdgj" />
<result property="c1ddlqdgj" column="c1ddlqdgj" />
<result property="c1ddlzdgj" column="c1ddlzdgj" />
<result property="c1ddlzzdgj" column="c1ddlzzdgj" />
<result property="c1dtqyqdgj" column="c1dtqyqdgj" />
<result property="c1dtqyzdgj" column="c1dtqyzdgj" />
<result property="c1dtqyzzdgj" column="c1dtqyzzdgj" />
<result property="c1dtgyqdgj" column="c1dtgyqdgj" />
<result property="c1dtgyzdgj" column="c1dtgyzdgj" />
<result property="c1dtgyzzdgj" column="c1dtgyzzdgj" />
<result property="c1dtqwqdgj" column="c1dtqwqdgj" />
<result property="c1dtqwzdgj" column="c1dtqwzdgj" />
<result property="c1dtqwzzdgj" column="c1dtqwzzdgj" />
<result property="c1dtgwqdgj" column="c1dtgwqdgj" />
<result property="c1dtgwzdgj" column="c1dtgwzdgj" />
<result property="c1dtgwzzdgj" column="c1dtgwzzdgj" />
<result property="c1socdqdgj" column="c1socdqdgj" />
<result property="c1socdzdgj" column="c1socdzdgj" />
<result property="c1socdzzdgj" column="c1socdzzdgj" />
<result property="c1socgqdgj" column="c1socgqdgj" />
<result property="c1socgzdgj" column="c1socgzdgj" />
<result property="c1socgzzdgj" column="c1socgzzdgj" />
<result property="c1sohdqdgj" column="c1sohdqdgj" />
<result property="c1sohdzdgj" column="c1sohdzdgj" />
<result property="c1sohdzzdgj" column="c1sohdzzdgj" />
<result property="c1dtycqdgj" column="c1dtycqdgj" />
<result property="c1dtyczdgj" column="c1dtyczdgj" />
<result property="c1dtyczzdgj" column="c1dtyczzdgj" />
<result property="c1dtwcqdgj" column="c1dtwcqdgj" />
<result property="c1dtwczdgj" column="c1dtwczdgj" />
<result property="c1dtwczzdgj" column="c1dtwczzdgj" />
<result property="c1ck1txsl" column="c1ck1txsl" />
<result property="c1ck2txsl" column="c1ck2txsl" />
<result property="c1ck3txsl" column="c1ck3txsl" />
<result property="c1ck4txsl" column="c1ck4txsl" />
<result property="c1ck5txsl" column="c1ck5txsl" />
<result property="c1ck6txsl" column="c1ck6txsl" />
<result property="c1ck7txsl" column="c1ck7txsl" />
<result property="c1ck8txsl" column="c1ck8txsl" />
<result property="c1ck9txsl" column="c1ck9txsl" />
<result property="c1ck10txsl" column="c1ck10txsl" />
<result property="c1ck11txsl" column="c1ck11txsl" />
<result property="c1ck12txsl" column="c1ck12txsl" />
<result property="c1ck13txsl" column="c1ck13txsl" />
<result property="c1ck14txsl" column="c1ck14txsl" />
<result property="c1ck15txsl" column="c1ck15txsl" />
<result property="c1ck16txsl" column="c1ck16txsl" />
<result property="c1ck17txsl" column="c1ck17txsl" />
<result property="c1ck18txsl" column="c1ck18txsl" />
<result property="c1ck19txsl" column="c1ck19txsl" />
<result property="c1ck20txsl" column="c1ck20txsl" />
<result property="c1ck21txsl" column="c1ck21txsl" />
<result property="c1ck22txsl" column="c1ck22txsl" />
<result property="c1ck23txsl" column="c1ck23txsl" />
<result property="c1ck24txsl" column="c1ck24txsl" />
<result property="c1ck25txsl" column="c1ck25txsl" />
<result property="c1ck26txsl" column="c1ck26txsl" />
<result property="c1ck27txsl" column="c1ck27txsl" />
<result property="c1ck28txsl" column="c1ck28txsl" />
<result property="c1ck29txsl" column="c1ck29txsl" />
<result property="c1ck30txsl" column="c1ck30txsl" />
<result property="c1ck31txsl" column="c1ck31txsl" />
<result property="c1ck32txsl" column="c1ck32txsl" />
<result property="c1ck33txsl" column="c1ck33txsl" />
<result property="c1ck34txsl" column="c1ck34txsl" />
<result property="c1ck35txsl" column="c1ck35txsl" />
<result property="c1ck36txsl" column="c1ck36txsl" />
<result property="c1ck37txsl" column="c1ck37txsl" />
<result property="c1ck38txsl" column="c1ck38txsl" />
<result property="c1ck39txsl" column="c1ck39txsl" />
<result property="c1ck40txsl" column="c1ck40txsl" />
<result property="c1dzwdggqdgj" column="c1dzwdggqdgj" />
<result property="c1dzwdggzdgj" column="c1dzwdggzdgj" />
<result property="c1dzwdggzzdgj" column="c1dzwdggzzdgj" />
<result property="c1mkdyggqdgj" column="c1mkdyggqdgj" />
<result property="c1mkdyggzdgj" column="c1mkdyggzdgj" />
<result property="c1mkdyggzzdgj" column="c1mkdyggzzdgj" />
<result property="c1mkdygdqdgj" column="c1mkdygdqdgj" />
<result property="c1mkdygdzdgj" column="c1mkdygdzdgj" />
<result property="c1mkdygdzzdgj" column="c1mkdygdzzdgj" />
<result property="c1dycjgz" column="c1dycjgz" />
<result property="c1wdcjgz" column="c1wdcjgz" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectEmsClusterAlarmDataVo">
select id, data_timestamp, site_id, device_id, c1zktxsl, c1ddyqyqdgj, c1ddyqyzdgj, c1ddyqyzzdgj, c1ddygyqdgj, c1ddygyzdgj, c1ddygyzzdgj, c1ddlqdgj, c1ddlzdgj, c1ddlzzdgj, c1dtqyqdgj, c1dtqyzdgj, c1dtqyzzdgj, c1dtgyqdgj, c1dtgyzdgj, c1dtgyzzdgj, c1dtqwqdgj, c1dtqwzdgj, c1dtqwzzdgj, c1dtgwqdgj, c1dtgwzdgj, c1dtgwzzdgj, c1socdqdgj, c1socdzdgj, c1socdzzdgj, c1socgqdgj, c1socgzdgj, c1socgzzdgj, c1sohdqdgj, c1sohdzdgj, c1sohdzzdgj, c1dtycqdgj, c1dtyczdgj, c1dtyczzdgj, c1dtwcqdgj, c1dtwczdgj, c1dtwczzdgj, c1ck1txsl, c1ck2txsl, c1ck3txsl, c1ck4txsl, c1ck5txsl, c1ck6txsl, c1ck7txsl, c1ck8txsl, c1ck9txsl, c1ck10txsl, c1ck11txsl, c1ck12txsl, c1ck13txsl, c1ck14txsl, c1ck15txsl, c1ck16txsl, c1ck17txsl, c1ck18txsl, c1ck19txsl, c1ck20txsl, c1ck21txsl, c1ck22txsl, c1ck23txsl, c1ck24txsl, c1ck25txsl, c1ck26txsl, c1ck27txsl, c1ck28txsl, c1ck29txsl, c1ck30txsl, c1ck31txsl, c1ck32txsl, c1ck33txsl, c1ck34txsl, c1ck35txsl, c1ck36txsl, c1ck37txsl, c1ck38txsl, c1ck39txsl, c1ck40txsl, c1dzwdggqdgj, c1dzwdggzdgj, c1dzwdggzzdgj, c1mkdyggqdgj, c1mkdyggzdgj, c1mkdyggzzdgj, c1mkdygdqdgj, c1mkdygdzdgj, c1mkdygdzzdgj, c1dycjgz, c1wdcjgz, create_by, create_time, update_by, update_time, remark from ems_cluster_alarm_data
</sql>
<select id="selectEmsClusterAlarmDataList" parameterType="EmsClusterAlarmData" resultMap="EmsClusterAlarmDataResult">
<include refid="selectEmsClusterAlarmDataVo"/>
<where>
<if test="dataTimestamp != null "> and data_timestamp = #{dataTimestamp}</if>
<if test="siteId != null and siteId != ''"> and site_id = #{siteId}</if>
<if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
<if test="c1zktxsl != null "> and c1zktxsl = #{c1zktxsl}</if>
<if test="c1ddyqyqdgj != null "> and c1ddyqyqdgj = #{c1ddyqyqdgj}</if>
<if test="c1ddyqyzdgj != null "> and c1ddyqyzdgj = #{c1ddyqyzdgj}</if>
<if test="c1ddyqyzzdgj != null "> and c1ddyqyzzdgj = #{c1ddyqyzzdgj}</if>
<if test="c1ddygyqdgj != null "> and c1ddygyqdgj = #{c1ddygyqdgj}</if>
<if test="c1ddygyzdgj != null "> and c1ddygyzdgj = #{c1ddygyzdgj}</if>
<if test="c1ddygyzzdgj != null "> and c1ddygyzzdgj = #{c1ddygyzzdgj}</if>
<if test="c1ddlqdgj != null "> and c1ddlqdgj = #{c1ddlqdgj}</if>
<if test="c1ddlzdgj != null "> and c1ddlzdgj = #{c1ddlzdgj}</if>
<if test="c1ddlzzdgj != null "> and c1ddlzzdgj = #{c1ddlzzdgj}</if>
<if test="c1dtqyqdgj != null "> and c1dtqyqdgj = #{c1dtqyqdgj}</if>
<if test="c1dtqyzdgj != null "> and c1dtqyzdgj = #{c1dtqyzdgj}</if>
<if test="c1dtqyzzdgj != null "> and c1dtqyzzdgj = #{c1dtqyzzdgj}</if>
<if test="c1dtgyqdgj != null "> and c1dtgyqdgj = #{c1dtgyqdgj}</if>
<if test="c1dtgyzdgj != null "> and c1dtgyzdgj = #{c1dtgyzdgj}</if>
<if test="c1dtgyzzdgj != null "> and c1dtgyzzdgj = #{c1dtgyzzdgj}</if>
<if test="c1dtqwqdgj != null "> and c1dtqwqdgj = #{c1dtqwqdgj}</if>
<if test="c1dtqwzdgj != null "> and c1dtqwzdgj = #{c1dtqwzdgj}</if>
<if test="c1dtqwzzdgj != null "> and c1dtqwzzdgj = #{c1dtqwzzdgj}</if>
<if test="c1dtgwqdgj != null "> and c1dtgwqdgj = #{c1dtgwqdgj}</if>
<if test="c1dtgwzdgj != null "> and c1dtgwzdgj = #{c1dtgwzdgj}</if>
<if test="c1dtgwzzdgj != null "> and c1dtgwzzdgj = #{c1dtgwzzdgj}</if>
<if test="c1socdqdgj != null "> and c1socdqdgj = #{c1socdqdgj}</if>
<if test="c1socdzdgj != null "> and c1socdzdgj = #{c1socdzdgj}</if>
<if test="c1socdzzdgj != null "> and c1socdzzdgj = #{c1socdzzdgj}</if>
<if test="c1socgqdgj != null "> and c1socgqdgj = #{c1socgqdgj}</if>
<if test="c1socgzdgj != null "> and c1socgzdgj = #{c1socgzdgj}</if>
<if test="c1socgzzdgj != null "> and c1socgzzdgj = #{c1socgzzdgj}</if>
<if test="c1sohdqdgj != null "> and c1sohdqdgj = #{c1sohdqdgj}</if>
<if test="c1sohdzdgj != null "> and c1sohdzdgj = #{c1sohdzdgj}</if>
<if test="c1sohdzzdgj != null "> and c1sohdzzdgj = #{c1sohdzzdgj}</if>
<if test="c1dtycqdgj != null "> and c1dtycqdgj = #{c1dtycqdgj}</if>
<if test="c1dtyczdgj != null "> and c1dtyczdgj = #{c1dtyczdgj}</if>
<if test="c1dtyczzdgj != null "> and c1dtyczzdgj = #{c1dtyczzdgj}</if>
<if test="c1dtwcqdgj != null "> and c1dtwcqdgj = #{c1dtwcqdgj}</if>
<if test="c1dtwczdgj != null "> and c1dtwczdgj = #{c1dtwczdgj}</if>
<if test="c1dtwczzdgj != null "> and c1dtwczzdgj = #{c1dtwczzdgj}</if>
<if test="c1ck1txsl != null "> and c1ck1txsl = #{c1ck1txsl}</if>
<if test="c1ck2txsl != null "> and c1ck2txsl = #{c1ck2txsl}</if>
<if test="c1ck3txsl != null "> and c1ck3txsl = #{c1ck3txsl}</if>
<if test="c1ck4txsl != null "> and c1ck4txsl = #{c1ck4txsl}</if>
<if test="c1ck5txsl != null "> and c1ck5txsl = #{c1ck5txsl}</if>
<if test="c1ck6txsl != null "> and c1ck6txsl = #{c1ck6txsl}</if>
<if test="c1ck7txsl != null "> and c1ck7txsl = #{c1ck7txsl}</if>
<if test="c1ck8txsl != null "> and c1ck8txsl = #{c1ck8txsl}</if>
<if test="c1ck9txsl != null "> and c1ck9txsl = #{c1ck9txsl}</if>
<if test="c1ck10txsl != null "> and c1ck10txsl = #{c1ck10txsl}</if>
<if test="c1ck11txsl != null "> and c1ck11txsl = #{c1ck11txsl}</if>
<if test="c1ck12txsl != null "> and c1ck12txsl = #{c1ck12txsl}</if>
<if test="c1ck13txsl != null "> and c1ck13txsl = #{c1ck13txsl}</if>
<if test="c1ck14txsl != null "> and c1ck14txsl = #{c1ck14txsl}</if>
<if test="c1ck15txsl != null "> and c1ck15txsl = #{c1ck15txsl}</if>
<if test="c1ck16txsl != null "> and c1ck16txsl = #{c1ck16txsl}</if>
<if test="c1ck17txsl != null "> and c1ck17txsl = #{c1ck17txsl}</if>
<if test="c1ck18txsl != null "> and c1ck18txsl = #{c1ck18txsl}</if>
<if test="c1ck19txsl != null "> and c1ck19txsl = #{c1ck19txsl}</if>
<if test="c1ck20txsl != null "> and c1ck20txsl = #{c1ck20txsl}</if>
<if test="c1ck21txsl != null "> and c1ck21txsl = #{c1ck21txsl}</if>
<if test="c1ck22txsl != null "> and c1ck22txsl = #{c1ck22txsl}</if>
<if test="c1ck23txsl != null "> and c1ck23txsl = #{c1ck23txsl}</if>
<if test="c1ck24txsl != null "> and c1ck24txsl = #{c1ck24txsl}</if>
<if test="c1ck25txsl != null "> and c1ck25txsl = #{c1ck25txsl}</if>
<if test="c1ck26txsl != null "> and c1ck26txsl = #{c1ck26txsl}</if>
<if test="c1ck27txsl != null "> and c1ck27txsl = #{c1ck27txsl}</if>
<if test="c1ck28txsl != null "> and c1ck28txsl = #{c1ck28txsl}</if>
<if test="c1ck29txsl != null "> and c1ck29txsl = #{c1ck29txsl}</if>
<if test="c1ck30txsl != null "> and c1ck30txsl = #{c1ck30txsl}</if>
<if test="c1ck31txsl != null "> and c1ck31txsl = #{c1ck31txsl}</if>
<if test="c1ck32txsl != null "> and c1ck32txsl = #{c1ck32txsl}</if>
<if test="c1ck33txsl != null "> and c1ck33txsl = #{c1ck33txsl}</if>
<if test="c1ck34txsl != null "> and c1ck34txsl = #{c1ck34txsl}</if>
<if test="c1ck35txsl != null "> and c1ck35txsl = #{c1ck35txsl}</if>
<if test="c1ck36txsl != null "> and c1ck36txsl = #{c1ck36txsl}</if>
<if test="c1ck37txsl != null "> and c1ck37txsl = #{c1ck37txsl}</if>
<if test="c1ck38txsl != null "> and c1ck38txsl = #{c1ck38txsl}</if>
<if test="c1ck39txsl != null "> and c1ck39txsl = #{c1ck39txsl}</if>
<if test="c1ck40txsl != null "> and c1ck40txsl = #{c1ck40txsl}</if>
<if test="c1dzwdggqdgj != null "> and c1dzwdggqdgj = #{c1dzwdggqdgj}</if>
<if test="c1dzwdggzdgj != null "> and c1dzwdggzdgj = #{c1dzwdggzdgj}</if>
<if test="c1dzwdggzzdgj != null "> and c1dzwdggzzdgj = #{c1dzwdggzzdgj}</if>
<if test="c1mkdyggqdgj != null "> and c1mkdyggqdgj = #{c1mkdyggqdgj}</if>
<if test="c1mkdyggzdgj != null "> and c1mkdyggzdgj = #{c1mkdyggzdgj}</if>
<if test="c1mkdyggzzdgj != null "> and c1mkdyggzzdgj = #{c1mkdyggzzdgj}</if>
<if test="c1mkdygdqdgj != null "> and c1mkdygdqdgj = #{c1mkdygdqdgj}</if>
<if test="c1mkdygdzdgj != null "> and c1mkdygdzdgj = #{c1mkdygdzdgj}</if>
<if test="c1mkdygdzzdgj != null "> and c1mkdygdzzdgj = #{c1mkdygdzzdgj}</if>
<if test="c1dycjgz != null "> and c1dycjgz = #{c1dycjgz}</if>
<if test="c1wdcjgz != null "> and c1wdcjgz = #{c1wdcjgz}</if>
</where>
</select>
<select id="selectEmsClusterAlarmDataById" parameterType="Long" resultMap="EmsClusterAlarmDataResult">
<include refid="selectEmsClusterAlarmDataVo"/>
where id = #{id}
</select>
<insert id="insertEmsClusterAlarmData" parameterType="EmsClusterAlarmData" useGeneratedKeys="true" keyProperty="id">
insert into ems_cluster_alarm_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="dataTimestamp != null">data_timestamp,</if>
<if test="siteId != null and siteId != ''">site_id,</if>
<if test="deviceId != null and deviceId != ''">device_id,</if>
<if test="c1zktxsl != null">c1zktxsl,</if>
<if test="c1ddyqyqdgj != null">c1ddyqyqdgj,</if>
<if test="c1ddyqyzdgj != null">c1ddyqyzdgj,</if>
<if test="c1ddyqyzzdgj != null">c1ddyqyzzdgj,</if>
<if test="c1ddygyqdgj != null">c1ddygyqdgj,</if>
<if test="c1ddygyzdgj != null">c1ddygyzdgj,</if>
<if test="c1ddygyzzdgj != null">c1ddygyzzdgj,</if>
<if test="c1ddlqdgj != null">c1ddlqdgj,</if>
<if test="c1ddlzdgj != null">c1ddlzdgj,</if>
<if test="c1ddlzzdgj != null">c1ddlzzdgj,</if>
<if test="c1dtqyqdgj != null">c1dtqyqdgj,</if>
<if test="c1dtqyzdgj != null">c1dtqyzdgj,</if>
<if test="c1dtqyzzdgj != null">c1dtqyzzdgj,</if>
<if test="c1dtgyqdgj != null">c1dtgyqdgj,</if>
<if test="c1dtgyzdgj != null">c1dtgyzdgj,</if>
<if test="c1dtgyzzdgj != null">c1dtgyzzdgj,</if>
<if test="c1dtqwqdgj != null">c1dtqwqdgj,</if>
<if test="c1dtqwzdgj != null">c1dtqwzdgj,</if>
<if test="c1dtqwzzdgj != null">c1dtqwzzdgj,</if>
<if test="c1dtgwqdgj != null">c1dtgwqdgj,</if>
<if test="c1dtgwzdgj != null">c1dtgwzdgj,</if>
<if test="c1dtgwzzdgj != null">c1dtgwzzdgj,</if>
<if test="c1socdqdgj != null">c1socdqdgj,</if>
<if test="c1socdzdgj != null">c1socdzdgj,</if>
<if test="c1socdzzdgj != null">c1socdzzdgj,</if>
<if test="c1socgqdgj != null">c1socgqdgj,</if>
<if test="c1socgzdgj != null">c1socgzdgj,</if>
<if test="c1socgzzdgj != null">c1socgzzdgj,</if>
<if test="c1sohdqdgj != null">c1sohdqdgj,</if>
<if test="c1sohdzdgj != null">c1sohdzdgj,</if>
<if test="c1sohdzzdgj != null">c1sohdzzdgj,</if>
<if test="c1dtycqdgj != null">c1dtycqdgj,</if>
<if test="c1dtyczdgj != null">c1dtyczdgj,</if>
<if test="c1dtyczzdgj != null">c1dtyczzdgj,</if>
<if test="c1dtwcqdgj != null">c1dtwcqdgj,</if>
<if test="c1dtwczdgj != null">c1dtwczdgj,</if>
<if test="c1dtwczzdgj != null">c1dtwczzdgj,</if>
<if test="c1ck1txsl != null">c1ck1txsl,</if>
<if test="c1ck2txsl != null">c1ck2txsl,</if>
<if test="c1ck3txsl != null">c1ck3txsl,</if>
<if test="c1ck4txsl != null">c1ck4txsl,</if>
<if test="c1ck5txsl != null">c1ck5txsl,</if>
<if test="c1ck6txsl != null">c1ck6txsl,</if>
<if test="c1ck7txsl != null">c1ck7txsl,</if>
<if test="c1ck8txsl != null">c1ck8txsl,</if>
<if test="c1ck9txsl != null">c1ck9txsl,</if>
<if test="c1ck10txsl != null">c1ck10txsl,</if>
<if test="c1ck11txsl != null">c1ck11txsl,</if>
<if test="c1ck12txsl != null">c1ck12txsl,</if>
<if test="c1ck13txsl != null">c1ck13txsl,</if>
<if test="c1ck14txsl != null">c1ck14txsl,</if>
<if test="c1ck15txsl != null">c1ck15txsl,</if>
<if test="c1ck16txsl != null">c1ck16txsl,</if>
<if test="c1ck17txsl != null">c1ck17txsl,</if>
<if test="c1ck18txsl != null">c1ck18txsl,</if>
<if test="c1ck19txsl != null">c1ck19txsl,</if>
<if test="c1ck20txsl != null">c1ck20txsl,</if>
<if test="c1ck21txsl != null">c1ck21txsl,</if>
<if test="c1ck22txsl != null">c1ck22txsl,</if>
<if test="c1ck23txsl != null">c1ck23txsl,</if>
<if test="c1ck24txsl != null">c1ck24txsl,</if>
<if test="c1ck25txsl != null">c1ck25txsl,</if>
<if test="c1ck26txsl != null">c1ck26txsl,</if>
<if test="c1ck27txsl != null">c1ck27txsl,</if>
<if test="c1ck28txsl != null">c1ck28txsl,</if>
<if test="c1ck29txsl != null">c1ck29txsl,</if>
<if test="c1ck30txsl != null">c1ck30txsl,</if>
<if test="c1ck31txsl != null">c1ck31txsl,</if>
<if test="c1ck32txsl != null">c1ck32txsl,</if>
<if test="c1ck33txsl != null">c1ck33txsl,</if>
<if test="c1ck34txsl != null">c1ck34txsl,</if>
<if test="c1ck35txsl != null">c1ck35txsl,</if>
<if test="c1ck36txsl != null">c1ck36txsl,</if>
<if test="c1ck37txsl != null">c1ck37txsl,</if>
<if test="c1ck38txsl != null">c1ck38txsl,</if>
<if test="c1ck39txsl != null">c1ck39txsl,</if>
<if test="c1ck40txsl != null">c1ck40txsl,</if>
<if test="c1dzwdggqdgj != null">c1dzwdggqdgj,</if>
<if test="c1dzwdggzdgj != null">c1dzwdggzdgj,</if>
<if test="c1dzwdggzzdgj != null">c1dzwdggzzdgj,</if>
<if test="c1mkdyggqdgj != null">c1mkdyggqdgj,</if>
<if test="c1mkdyggzdgj != null">c1mkdyggzdgj,</if>
<if test="c1mkdyggzzdgj != null">c1mkdyggzzdgj,</if>
<if test="c1mkdygdqdgj != null">c1mkdygdqdgj,</if>
<if test="c1mkdygdzdgj != null">c1mkdygdzdgj,</if>
<if test="c1mkdygdzzdgj != null">c1mkdygdzzdgj,</if>
<if test="c1dycjgz != null">c1dycjgz,</if>
<if test="c1wdcjgz != null">c1wdcjgz,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="dataTimestamp != null">#{dataTimestamp},</if>
<if test="siteId != null and siteId != ''">#{siteId},</if>
<if test="deviceId != null and deviceId != ''">#{deviceId},</if>
<if test="c1zktxsl != null">#{c1zktxsl},</if>
<if test="c1ddyqyqdgj != null">#{c1ddyqyqdgj},</if>
<if test="c1ddyqyzdgj != null">#{c1ddyqyzdgj},</if>
<if test="c1ddyqyzzdgj != null">#{c1ddyqyzzdgj},</if>
<if test="c1ddygyqdgj != null">#{c1ddygyqdgj},</if>
<if test="c1ddygyzdgj != null">#{c1ddygyzdgj},</if>
<if test="c1ddygyzzdgj != null">#{c1ddygyzzdgj},</if>
<if test="c1ddlqdgj != null">#{c1ddlqdgj},</if>
<if test="c1ddlzdgj != null">#{c1ddlzdgj},</if>
<if test="c1ddlzzdgj != null">#{c1ddlzzdgj},</if>
<if test="c1dtqyqdgj != null">#{c1dtqyqdgj},</if>
<if test="c1dtqyzdgj != null">#{c1dtqyzdgj},</if>
<if test="c1dtqyzzdgj != null">#{c1dtqyzzdgj},</if>
<if test="c1dtgyqdgj != null">#{c1dtgyqdgj},</if>
<if test="c1dtgyzdgj != null">#{c1dtgyzdgj},</if>
<if test="c1dtgyzzdgj != null">#{c1dtgyzzdgj},</if>
<if test="c1dtqwqdgj != null">#{c1dtqwqdgj},</if>
<if test="c1dtqwzdgj != null">#{c1dtqwzdgj},</if>
<if test="c1dtqwzzdgj != null">#{c1dtqwzzdgj},</if>
<if test="c1dtgwqdgj != null">#{c1dtgwqdgj},</if>
<if test="c1dtgwzdgj != null">#{c1dtgwzdgj},</if>
<if test="c1dtgwzzdgj != null">#{c1dtgwzzdgj},</if>
<if test="c1socdqdgj != null">#{c1socdqdgj},</if>
<if test="c1socdzdgj != null">#{c1socdzdgj},</if>
<if test="c1socdzzdgj != null">#{c1socdzzdgj},</if>
<if test="c1socgqdgj != null">#{c1socgqdgj},</if>
<if test="c1socgzdgj != null">#{c1socgzdgj},</if>
<if test="c1socgzzdgj != null">#{c1socgzzdgj},</if>
<if test="c1sohdqdgj != null">#{c1sohdqdgj},</if>
<if test="c1sohdzdgj != null">#{c1sohdzdgj},</if>
<if test="c1sohdzzdgj != null">#{c1sohdzzdgj},</if>
<if test="c1dtycqdgj != null">#{c1dtycqdgj},</if>
<if test="c1dtyczdgj != null">#{c1dtyczdgj},</if>
<if test="c1dtyczzdgj != null">#{c1dtyczzdgj},</if>
<if test="c1dtwcqdgj != null">#{c1dtwcqdgj},</if>
<if test="c1dtwczdgj != null">#{c1dtwczdgj},</if>
<if test="c1dtwczzdgj != null">#{c1dtwczzdgj},</if>
<if test="c1ck1txsl != null">#{c1ck1txsl},</if>
<if test="c1ck2txsl != null">#{c1ck2txsl},</if>
<if test="c1ck3txsl != null">#{c1ck3txsl},</if>
<if test="c1ck4txsl != null">#{c1ck4txsl},</if>
<if test="c1ck5txsl != null">#{c1ck5txsl},</if>
<if test="c1ck6txsl != null">#{c1ck6txsl},</if>
<if test="c1ck7txsl != null">#{c1ck7txsl},</if>
<if test="c1ck8txsl != null">#{c1ck8txsl},</if>
<if test="c1ck9txsl != null">#{c1ck9txsl},</if>
<if test="c1ck10txsl != null">#{c1ck10txsl},</if>
<if test="c1ck11txsl != null">#{c1ck11txsl},</if>
<if test="c1ck12txsl != null">#{c1ck12txsl},</if>
<if test="c1ck13txsl != null">#{c1ck13txsl},</if>
<if test="c1ck14txsl != null">#{c1ck14txsl},</if>
<if test="c1ck15txsl != null">#{c1ck15txsl},</if>
<if test="c1ck16txsl != null">#{c1ck16txsl},</if>
<if test="c1ck17txsl != null">#{c1ck17txsl},</if>
<if test="c1ck18txsl != null">#{c1ck18txsl},</if>
<if test="c1ck19txsl != null">#{c1ck19txsl},</if>
<if test="c1ck20txsl != null">#{c1ck20txsl},</if>
<if test="c1ck21txsl != null">#{c1ck21txsl},</if>
<if test="c1ck22txsl != null">#{c1ck22txsl},</if>
<if test="c1ck23txsl != null">#{c1ck23txsl},</if>
<if test="c1ck24txsl != null">#{c1ck24txsl},</if>
<if test="c1ck25txsl != null">#{c1ck25txsl},</if>
<if test="c1ck26txsl != null">#{c1ck26txsl},</if>
<if test="c1ck27txsl != null">#{c1ck27txsl},</if>
<if test="c1ck28txsl != null">#{c1ck28txsl},</if>
<if test="c1ck29txsl != null">#{c1ck29txsl},</if>
<if test="c1ck30txsl != null">#{c1ck30txsl},</if>
<if test="c1ck31txsl != null">#{c1ck31txsl},</if>
<if test="c1ck32txsl != null">#{c1ck32txsl},</if>
<if test="c1ck33txsl != null">#{c1ck33txsl},</if>
<if test="c1ck34txsl != null">#{c1ck34txsl},</if>
<if test="c1ck35txsl != null">#{c1ck35txsl},</if>
<if test="c1ck36txsl != null">#{c1ck36txsl},</if>
<if test="c1ck37txsl != null">#{c1ck37txsl},</if>
<if test="c1ck38txsl != null">#{c1ck38txsl},</if>
<if test="c1ck39txsl != null">#{c1ck39txsl},</if>
<if test="c1ck40txsl != null">#{c1ck40txsl},</if>
<if test="c1dzwdggqdgj != null">#{c1dzwdggqdgj},</if>
<if test="c1dzwdggzdgj != null">#{c1dzwdggzdgj},</if>
<if test="c1dzwdggzzdgj != null">#{c1dzwdggzzdgj},</if>
<if test="c1mkdyggqdgj != null">#{c1mkdyggqdgj},</if>
<if test="c1mkdyggzdgj != null">#{c1mkdyggzdgj},</if>
<if test="c1mkdyggzzdgj != null">#{c1mkdyggzzdgj},</if>
<if test="c1mkdygdqdgj != null">#{c1mkdygdqdgj},</if>
<if test="c1mkdygdzdgj != null">#{c1mkdygdzdgj},</if>
<if test="c1mkdygdzzdgj != null">#{c1mkdygdzzdgj},</if>
<if test="c1dycjgz != null">#{c1dycjgz},</if>
<if test="c1wdcjgz != null">#{c1wdcjgz},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateEmsClusterAlarmData" parameterType="EmsClusterAlarmData">
update ems_cluster_alarm_data
<trim prefix="SET" suffixOverrides=",">
<if test="dataTimestamp != null">data_timestamp = #{dataTimestamp},</if>
<if test="siteId != null and siteId != ''">site_id = #{siteId},</if>
<if test="deviceId != null and deviceId != ''">device_id = #{deviceId},</if>
<if test="c1zktxsl != null">c1zktxsl = #{c1zktxsl},</if>
<if test="c1ddyqyqdgj != null">c1ddyqyqdgj = #{c1ddyqyqdgj},</if>
<if test="c1ddyqyzdgj != null">c1ddyqyzdgj = #{c1ddyqyzdgj},</if>
<if test="c1ddyqyzzdgj != null">c1ddyqyzzdgj = #{c1ddyqyzzdgj},</if>
<if test="c1ddygyqdgj != null">c1ddygyqdgj = #{c1ddygyqdgj},</if>
<if test="c1ddygyzdgj != null">c1ddygyzdgj = #{c1ddygyzdgj},</if>
<if test="c1ddygyzzdgj != null">c1ddygyzzdgj = #{c1ddygyzzdgj},</if>
<if test="c1ddlqdgj != null">c1ddlqdgj = #{c1ddlqdgj},</if>
<if test="c1ddlzdgj != null">c1ddlzdgj = #{c1ddlzdgj},</if>
<if test="c1ddlzzdgj != null">c1ddlzzdgj = #{c1ddlzzdgj},</if>
<if test="c1dtqyqdgj != null">c1dtqyqdgj = #{c1dtqyqdgj},</if>
<if test="c1dtqyzdgj != null">c1dtqyzdgj = #{c1dtqyzdgj},</if>
<if test="c1dtqyzzdgj != null">c1dtqyzzdgj = #{c1dtqyzzdgj},</if>
<if test="c1dtgyqdgj != null">c1dtgyqdgj = #{c1dtgyqdgj},</if>
<if test="c1dtgyzdgj != null">c1dtgyzdgj = #{c1dtgyzdgj},</if>
<if test="c1dtgyzzdgj != null">c1dtgyzzdgj = #{c1dtgyzzdgj},</if>
<if test="c1dtqwqdgj != null">c1dtqwqdgj = #{c1dtqwqdgj},</if>
<if test="c1dtqwzdgj != null">c1dtqwzdgj = #{c1dtqwzdgj},</if>
<if test="c1dtqwzzdgj != null">c1dtqwzzdgj = #{c1dtqwzzdgj},</if>
<if test="c1dtgwqdgj != null">c1dtgwqdgj = #{c1dtgwqdgj},</if>
<if test="c1dtgwzdgj != null">c1dtgwzdgj = #{c1dtgwzdgj},</if>
<if test="c1dtgwzzdgj != null">c1dtgwzzdgj = #{c1dtgwzzdgj},</if>
<if test="c1socdqdgj != null">c1socdqdgj = #{c1socdqdgj},</if>
<if test="c1socdzdgj != null">c1socdzdgj = #{c1socdzdgj},</if>
<if test="c1socdzzdgj != null">c1socdzzdgj = #{c1socdzzdgj},</if>
<if test="c1socgqdgj != null">c1socgqdgj = #{c1socgqdgj},</if>
<if test="c1socgzdgj != null">c1socgzdgj = #{c1socgzdgj},</if>
<if test="c1socgzzdgj != null">c1socgzzdgj = #{c1socgzzdgj},</if>
<if test="c1sohdqdgj != null">c1sohdqdgj = #{c1sohdqdgj},</if>
<if test="c1sohdzdgj != null">c1sohdzdgj = #{c1sohdzdgj},</if>
<if test="c1sohdzzdgj != null">c1sohdzzdgj = #{c1sohdzzdgj},</if>
<if test="c1dtycqdgj != null">c1dtycqdgj = #{c1dtycqdgj},</if>
<if test="c1dtyczdgj != null">c1dtyczdgj = #{c1dtyczdgj},</if>
<if test="c1dtyczzdgj != null">c1dtyczzdgj = #{c1dtyczzdgj},</if>
<if test="c1dtwcqdgj != null">c1dtwcqdgj = #{c1dtwcqdgj},</if>
<if test="c1dtwczdgj != null">c1dtwczdgj = #{c1dtwczdgj},</if>
<if test="c1dtwczzdgj != null">c1dtwczzdgj = #{c1dtwczzdgj},</if>
<if test="c1ck1txsl != null">c1ck1txsl = #{c1ck1txsl},</if>
<if test="c1ck2txsl != null">c1ck2txsl = #{c1ck2txsl},</if>
<if test="c1ck3txsl != null">c1ck3txsl = #{c1ck3txsl},</if>
<if test="c1ck4txsl != null">c1ck4txsl = #{c1ck4txsl},</if>
<if test="c1ck5txsl != null">c1ck5txsl = #{c1ck5txsl},</if>
<if test="c1ck6txsl != null">c1ck6txsl = #{c1ck6txsl},</if>
<if test="c1ck7txsl != null">c1ck7txsl = #{c1ck7txsl},</if>
<if test="c1ck8txsl != null">c1ck8txsl = #{c1ck8txsl},</if>
<if test="c1ck9txsl != null">c1ck9txsl = #{c1ck9txsl},</if>
<if test="c1ck10txsl != null">c1ck10txsl = #{c1ck10txsl},</if>
<if test="c1ck11txsl != null">c1ck11txsl = #{c1ck11txsl},</if>
<if test="c1ck12txsl != null">c1ck12txsl = #{c1ck12txsl},</if>
<if test="c1ck13txsl != null">c1ck13txsl = #{c1ck13txsl},</if>
<if test="c1ck14txsl != null">c1ck14txsl = #{c1ck14txsl},</if>
<if test="c1ck15txsl != null">c1ck15txsl = #{c1ck15txsl},</if>
<if test="c1ck16txsl != null">c1ck16txsl = #{c1ck16txsl},</if>
<if test="c1ck17txsl != null">c1ck17txsl = #{c1ck17txsl},</if>
<if test="c1ck18txsl != null">c1ck18txsl = #{c1ck18txsl},</if>
<if test="c1ck19txsl != null">c1ck19txsl = #{c1ck19txsl},</if>
<if test="c1ck20txsl != null">c1ck20txsl = #{c1ck20txsl},</if>
<if test="c1ck21txsl != null">c1ck21txsl = #{c1ck21txsl},</if>
<if test="c1ck22txsl != null">c1ck22txsl = #{c1ck22txsl},</if>
<if test="c1ck23txsl != null">c1ck23txsl = #{c1ck23txsl},</if>
<if test="c1ck24txsl != null">c1ck24txsl = #{c1ck24txsl},</if>
<if test="c1ck25txsl != null">c1ck25txsl = #{c1ck25txsl},</if>
<if test="c1ck26txsl != null">c1ck26txsl = #{c1ck26txsl},</if>
<if test="c1ck27txsl != null">c1ck27txsl = #{c1ck27txsl},</if>
<if test="c1ck28txsl != null">c1ck28txsl = #{c1ck28txsl},</if>
<if test="c1ck29txsl != null">c1ck29txsl = #{c1ck29txsl},</if>
<if test="c1ck30txsl != null">c1ck30txsl = #{c1ck30txsl},</if>
<if test="c1ck31txsl != null">c1ck31txsl = #{c1ck31txsl},</if>
<if test="c1ck32txsl != null">c1ck32txsl = #{c1ck32txsl},</if>
<if test="c1ck33txsl != null">c1ck33txsl = #{c1ck33txsl},</if>
<if test="c1ck34txsl != null">c1ck34txsl = #{c1ck34txsl},</if>
<if test="c1ck35txsl != null">c1ck35txsl = #{c1ck35txsl},</if>
<if test="c1ck36txsl != null">c1ck36txsl = #{c1ck36txsl},</if>
<if test="c1ck37txsl != null">c1ck37txsl = #{c1ck37txsl},</if>
<if test="c1ck38txsl != null">c1ck38txsl = #{c1ck38txsl},</if>
<if test="c1ck39txsl != null">c1ck39txsl = #{c1ck39txsl},</if>
<if test="c1ck40txsl != null">c1ck40txsl = #{c1ck40txsl},</if>
<if test="c1dzwdggqdgj != null">c1dzwdggqdgj = #{c1dzwdggqdgj},</if>
<if test="c1dzwdggzdgj != null">c1dzwdggzdgj = #{c1dzwdggzdgj},</if>
<if test="c1dzwdggzzdgj != null">c1dzwdggzzdgj = #{c1dzwdggzzdgj},</if>
<if test="c1mkdyggqdgj != null">c1mkdyggqdgj = #{c1mkdyggqdgj},</if>
<if test="c1mkdyggzdgj != null">c1mkdyggzdgj = #{c1mkdyggzdgj},</if>
<if test="c1mkdyggzzdgj != null">c1mkdyggzzdgj = #{c1mkdyggzzdgj},</if>
<if test="c1mkdygdqdgj != null">c1mkdygdqdgj = #{c1mkdygdqdgj},</if>
<if test="c1mkdygdzdgj != null">c1mkdygdzdgj = #{c1mkdygdzdgj},</if>
<if test="c1mkdygdzzdgj != null">c1mkdygdzzdgj = #{c1mkdygdzzdgj},</if>
<if test="c1dycjgz != null">c1dycjgz = #{c1dycjgz},</if>
<if test="c1wdcjgz != null">c1wdcjgz = #{c1wdcjgz},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEmsClusterAlarmDataById" parameterType="Long">
delete from ems_cluster_alarm_data where id = #{id}
</delete>
<delete id="deleteEmsClusterAlarmDataByIds" parameterType="String">
delete from ems_cluster_alarm_data where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,321 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xzzn.ems.mapper.EmsCoolingAlarmDataMapper">
<resultMap type="EmsCoolingAlarmData" id="EmsCoolingAlarmDataResult">
<result property="id" column="id" />
<result property="dataTimestamp" column="data_timestamp" />
<result property="siteId" column="site_id" />
<result property="deviceId" column="device_id" />
<result property="lsjyx" column="lsjyx" />
<result property="pqdcfyx" column="pqdcfyx" />
<result property="djrq2yx" column="djrq2yx" />
<result property="djrq1yx" column="djrq1yx" />
<result property="bqbyx" column="bqbyx" />
<result property="bsbyx" column="bsbyx" />
<result property="zxhbyx" column="zxhbyx" />
<result property="sltzgz" column="sltzgz" />
<result property="slzhyj" column="slzhyj" />
<result property="slxtyctzxh" column="slxtyctzxh" />
<result property="slxtycqdxh" column="slxtycqdxh" />
<result property="slxtyckz" column="slxtyckz" />
<result property="slxtbdkz" column="slxtbdkz" />
<result property="slxtzdms" column="slxtzdms" />
<result property="slxtsdms" column="slxtsdms" />
<result property="hsylcdyj" column="hsylcdyj" />
<result property="hsyldyj" column="hsyldyj" />
<result property="gsylcgyj" column="gsylcgyj" />
<result property="gsylgyj" column="gsylgyj" />
<result property="gsylcdyj" column="gsylcdyj" />
<result property="gsyldyj" column="gsyldyj" />
<result property="hcgywg" column="hcgywg" />
<result property="hcgywcdtz" column="hcgywcdtz" />
<result property="hcgywd" column="hcgywd" />
<result property="hcgylg" column="hcgylg" />
<result property="hcgyld" column="hcgyld" />
<result property="lysylgyj" column="lysylgyj" />
<result property="lysyldyj" column="lysyldyj" />
<result property="hswdcgyj" column="hswdcgyj" />
<result property="hswdgyj" column="hswdgyj" />
<result property="gswdcgtz" column="gswdcgtz" />
<result property="gswdgyj" column="gswdgyj" />
<result property="gswddyj" column="gswddyj" />
<result property="ddf2gz" column="ddf2gz" />
<result property="ddf1gz" column="ddf1gz" />
<result property="lyswdbsqyJ" column="lyswdbsqyJ" />
<result property="hsylbsqyJ" column="hsylbsqyJ" />
<result property="gsylbsqyJ" column="gsylbsqyJ" />
<result property="hswdbsqyJ" column="hswdbsqyJ" />
<result property="gswdbsqgztz" column="gswdbsqgztz" />
<result property="lsjgz" column="lsjgz" />
<result property="djrq2gz" column="djrq2gz" />
<result property="djrq1gz" column="djrq1gz" />
<result property="bqbgz" column="bqbgz" />
<result property="bsbgz" column="bsbgz" />
<result property="xhbgz" column="xhbgz" />
<result property="zdygz" column="zdygz" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectEmsCoolingAlarmDataVo">
select id, data_timestamp, site_id, device_id, lsjyx, pqdcfyx, djrq2yx, djrq1yx, bqbyx, bsbyx, zxhbyx, sltzgz, slzhyj, slxtyctzxh, slxtycqdxh, slxtyckz, slxtbdkz, slxtzdms, slxtsdms, hsylcdyj, hsyldyj, gsylcgyj, gsylgyj, gsylcdyj, gsyldyj, hcgywg, hcgywcdtz, hcgywd, hcgylg, hcgyld, lysylgyj, lysyldyj, hswdcgyj, hswdgyj, gswdcgtz, gswdgyj, gswddyj, ddf2gz, ddf1gz, lyswdbsqyJ, hsylbsqyJ, gsylbsqyJ, hswdbsqyJ, gswdbsqgztz, lsjgz, djrq2gz, djrq1gz, bqbgz, bsbgz, xhbgz, zdygz, create_by, create_time, update_by, update_time, remark from ems_cooling_alarm_data
</sql>
<select id="selectEmsCoolingAlarmDataList" parameterType="EmsCoolingAlarmData" resultMap="EmsCoolingAlarmDataResult">
<include refid="selectEmsCoolingAlarmDataVo"/>
<where>
<if test="dataTimestamp != null "> and data_timestamp = #{dataTimestamp}</if>
<if test="siteId != null and siteId != ''"> and site_id = #{siteId}</if>
<if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
<if test="lsjyx != null "> and lsjyx = #{lsjyx}</if>
<if test="pqdcfyx != null "> and pqdcfyx = #{pqdcfyx}</if>
<if test="djrq2yx != null "> and djrq2yx = #{djrq2yx}</if>
<if test="djrq1yx != null "> and djrq1yx = #{djrq1yx}</if>
<if test="bqbyx != null "> and bqbyx = #{bqbyx}</if>
<if test="bsbyx != null "> and bsbyx = #{bsbyx}</if>
<if test="zxhbyx != null "> and zxhbyx = #{zxhbyx}</if>
<if test="sltzgz != null "> and sltzgz = #{sltzgz}</if>
<if test="slzhyj != null "> and slzhyj = #{slzhyj}</if>
<if test="slxtyctzxh != null "> and slxtyctzxh = #{slxtyctzxh}</if>
<if test="slxtycqdxh != null "> and slxtycqdxh = #{slxtycqdxh}</if>
<if test="slxtyckz != null "> and slxtyckz = #{slxtyckz}</if>
<if test="slxtbdkz != null "> and slxtbdkz = #{slxtbdkz}</if>
<if test="slxtzdms != null "> and slxtzdms = #{slxtzdms}</if>
<if test="slxtsdms != null "> and slxtsdms = #{slxtsdms}</if>
<if test="hsylcdyj != null "> and hsylcdyj = #{hsylcdyj}</if>
<if test="hsyldyj != null "> and hsyldyj = #{hsyldyj}</if>
<if test="gsylcgyj != null "> and gsylcgyj = #{gsylcgyj}</if>
<if test="gsylgyj != null "> and gsylgyj = #{gsylgyj}</if>
<if test="gsylcdyj != null "> and gsylcdyj = #{gsylcdyj}</if>
<if test="gsyldyj != null "> and gsyldyj = #{gsyldyj}</if>
<if test="hcgywg != null "> and hcgywg = #{hcgywg}</if>
<if test="hcgywcdtz != null "> and hcgywcdtz = #{hcgywcdtz}</if>
<if test="hcgywd != null "> and hcgywd = #{hcgywd}</if>
<if test="hcgylg != null "> and hcgylg = #{hcgylg}</if>
<if test="hcgyld != null "> and hcgyld = #{hcgyld}</if>
<if test="lysylgyj != null "> and lysylgyj = #{lysylgyj}</if>
<if test="lysyldyj != null "> and lysyldyj = #{lysyldyj}</if>
<if test="hswdcgyj != null "> and hswdcgyj = #{hswdcgyj}</if>
<if test="hswdgyj != null "> and hswdgyj = #{hswdgyj}</if>
<if test="gswdcgtz != null "> and gswdcgtz = #{gswdcgtz}</if>
<if test="gswdgyj != null "> and gswdgyj = #{gswdgyj}</if>
<if test="gswddyj != null "> and gswddyj = #{gswddyj}</if>
<if test="ddf2gz != null "> and ddf2gz = #{ddf2gz}</if>
<if test="ddf1gz != null "> and ddf1gz = #{ddf1gz}</if>
<if test="lyswdbsqyJ != null "> and lyswdbsqyJ = #{lyswdbsqyJ}</if>
<if test="hsylbsqyJ != null "> and hsylbsqyJ = #{hsylbsqyJ}</if>
<if test="gsylbsqyJ != null "> and gsylbsqyJ = #{gsylbsqyJ}</if>
<if test="hswdbsqyJ != null "> and hswdbsqyJ = #{hswdbsqyJ}</if>
<if test="gswdbsqgztz != null "> and gswdbsqgztz = #{gswdbsqgztz}</if>
<if test="lsjgz != null "> and lsjgz = #{lsjgz}</if>
<if test="djrq2gz != null "> and djrq2gz = #{djrq2gz}</if>
<if test="djrq1gz != null "> and djrq1gz = #{djrq1gz}</if>
<if test="bqbgz != null "> and bqbgz = #{bqbgz}</if>
<if test="bsbgz != null "> and bsbgz = #{bsbgz}</if>
<if test="xhbgz != null "> and xhbgz = #{xhbgz}</if>
<if test="zdygz != null "> and zdygz = #{zdygz}</if>
</where>
</select>
<select id="selectEmsCoolingAlarmDataById" parameterType="Long" resultMap="EmsCoolingAlarmDataResult">
<include refid="selectEmsCoolingAlarmDataVo"/>
where id = #{id}
</select>
<insert id="insertEmsCoolingAlarmData" parameterType="EmsCoolingAlarmData" useGeneratedKeys="true" keyProperty="id">
insert into ems_cooling_alarm_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="dataTimestamp != null">data_timestamp,</if>
<if test="siteId != null and siteId != ''">site_id,</if>
<if test="deviceId != null and deviceId != ''">device_id,</if>
<if test="lsjyx != null">lsjyx,</if>
<if test="pqdcfyx != null">pqdcfyx,</if>
<if test="djrq2yx != null">djrq2yx,</if>
<if test="djrq1yx != null">djrq1yx,</if>
<if test="bqbyx != null">bqbyx,</if>
<if test="bsbyx != null">bsbyx,</if>
<if test="zxhbyx != null">zxhbyx,</if>
<if test="sltzgz != null">sltzgz,</if>
<if test="slzhyj != null">slzhyj,</if>
<if test="slxtyctzxh != null">slxtyctzxh,</if>
<if test="slxtycqdxh != null">slxtycqdxh,</if>
<if test="slxtyckz != null">slxtyckz,</if>
<if test="slxtbdkz != null">slxtbdkz,</if>
<if test="slxtzdms != null">slxtzdms,</if>
<if test="slxtsdms != null">slxtsdms,</if>
<if test="hsylcdyj != null">hsylcdyj,</if>
<if test="hsyldyj != null">hsyldyj,</if>
<if test="gsylcgyj != null">gsylcgyj,</if>
<if test="gsylgyj != null">gsylgyj,</if>
<if test="gsylcdyj != null">gsylcdyj,</if>
<if test="gsyldyj != null">gsyldyj,</if>
<if test="hcgywg != null">hcgywg,</if>
<if test="hcgywcdtz != null">hcgywcdtz,</if>
<if test="hcgywd != null">hcgywd,</if>
<if test="hcgylg != null">hcgylg,</if>
<if test="hcgyld != null">hcgyld,</if>
<if test="lysylgyj != null">lysylgyj,</if>
<if test="lysyldyj != null">lysyldyj,</if>
<if test="hswdcgyj != null">hswdcgyj,</if>
<if test="hswdgyj != null">hswdgyj,</if>
<if test="gswdcgtz != null">gswdcgtz,</if>
<if test="gswdgyj != null">gswdgyj,</if>
<if test="gswddyj != null">gswddyj,</if>
<if test="ddf2gz != null">ddf2gz,</if>
<if test="ddf1gz != null">ddf1gz,</if>
<if test="lyswdbsqyJ != null">lyswdbsqyJ,</if>
<if test="hsylbsqyJ != null">hsylbsqyJ,</if>
<if test="gsylbsqyJ != null">gsylbsqyJ,</if>
<if test="hswdbsqyJ != null">hswdbsqyJ,</if>
<if test="gswdbsqgztz != null">gswdbsqgztz,</if>
<if test="lsjgz != null">lsjgz,</if>
<if test="djrq2gz != null">djrq2gz,</if>
<if test="djrq1gz != null">djrq1gz,</if>
<if test="bqbgz != null">bqbgz,</if>
<if test="bsbgz != null">bsbgz,</if>
<if test="xhbgz != null">xhbgz,</if>
<if test="zdygz != null">zdygz,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="dataTimestamp != null">#{dataTimestamp},</if>
<if test="siteId != null and siteId != ''">#{siteId},</if>
<if test="deviceId != null and deviceId != ''">#{deviceId},</if>
<if test="lsjyx != null">#{lsjyx},</if>
<if test="pqdcfyx != null">#{pqdcfyx},</if>
<if test="djrq2yx != null">#{djrq2yx},</if>
<if test="djrq1yx != null">#{djrq1yx},</if>
<if test="bqbyx != null">#{bqbyx},</if>
<if test="bsbyx != null">#{bsbyx},</if>
<if test="zxhbyx != null">#{zxhbyx},</if>
<if test="sltzgz != null">#{sltzgz},</if>
<if test="slzhyj != null">#{slzhyj},</if>
<if test="slxtyctzxh != null">#{slxtyctzxh},</if>
<if test="slxtycqdxh != null">#{slxtycqdxh},</if>
<if test="slxtyckz != null">#{slxtyckz},</if>
<if test="slxtbdkz != null">#{slxtbdkz},</if>
<if test="slxtzdms != null">#{slxtzdms},</if>
<if test="slxtsdms != null">#{slxtsdms},</if>
<if test="hsylcdyj != null">#{hsylcdyj},</if>
<if test="hsyldyj != null">#{hsyldyj},</if>
<if test="gsylcgyj != null">#{gsylcgyj},</if>
<if test="gsylgyj != null">#{gsylgyj},</if>
<if test="gsylcdyj != null">#{gsylcdyj},</if>
<if test="gsyldyj != null">#{gsyldyj},</if>
<if test="hcgywg != null">#{hcgywg},</if>
<if test="hcgywcdtz != null">#{hcgywcdtz},</if>
<if test="hcgywd != null">#{hcgywd},</if>
<if test="hcgylg != null">#{hcgylg},</if>
<if test="hcgyld != null">#{hcgyld},</if>
<if test="lysylgyj != null">#{lysylgyj},</if>
<if test="lysyldyj != null">#{lysyldyj},</if>
<if test="hswdcgyj != null">#{hswdcgyj},</if>
<if test="hswdgyj != null">#{hswdgyj},</if>
<if test="gswdcgtz != null">#{gswdcgtz},</if>
<if test="gswdgyj != null">#{gswdgyj},</if>
<if test="gswddyj != null">#{gswddyj},</if>
<if test="ddf2gz != null">#{ddf2gz},</if>
<if test="ddf1gz != null">#{ddf1gz},</if>
<if test="lyswdbsqyJ != null">#{lyswdbsqyJ},</if>
<if test="hsylbsqyJ != null">#{hsylbsqyJ},</if>
<if test="gsylbsqyJ != null">#{gsylbsqyJ},</if>
<if test="hswdbsqyJ != null">#{hswdbsqyJ},</if>
<if test="gswdbsqgztz != null">#{gswdbsqgztz},</if>
<if test="lsjgz != null">#{lsjgz},</if>
<if test="djrq2gz != null">#{djrq2gz},</if>
<if test="djrq1gz != null">#{djrq1gz},</if>
<if test="bqbgz != null">#{bqbgz},</if>
<if test="bsbgz != null">#{bsbgz},</if>
<if test="xhbgz != null">#{xhbgz},</if>
<if test="zdygz != null">#{zdygz},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateEmsCoolingAlarmData" parameterType="EmsCoolingAlarmData">
update ems_cooling_alarm_data
<trim prefix="SET" suffixOverrides=",">
<if test="dataTimestamp != null">data_timestamp = #{dataTimestamp},</if>
<if test="siteId != null and siteId != ''">site_id = #{siteId},</if>
<if test="deviceId != null and deviceId != ''">device_id = #{deviceId},</if>
<if test="lsjyx != null">lsjyx = #{lsjyx},</if>
<if test="pqdcfyx != null">pqdcfyx = #{pqdcfyx},</if>
<if test="djrq2yx != null">djrq2yx = #{djrq2yx},</if>
<if test="djrq1yx != null">djrq1yx = #{djrq1yx},</if>
<if test="bqbyx != null">bqbyx = #{bqbyx},</if>
<if test="bsbyx != null">bsbyx = #{bsbyx},</if>
<if test="zxhbyx != null">zxhbyx = #{zxhbyx},</if>
<if test="sltzgz != null">sltzgz = #{sltzgz},</if>
<if test="slzhyj != null">slzhyj = #{slzhyj},</if>
<if test="slxtyctzxh != null">slxtyctzxh = #{slxtyctzxh},</if>
<if test="slxtycqdxh != null">slxtycqdxh = #{slxtycqdxh},</if>
<if test="slxtyckz != null">slxtyckz = #{slxtyckz},</if>
<if test="slxtbdkz != null">slxtbdkz = #{slxtbdkz},</if>
<if test="slxtzdms != null">slxtzdms = #{slxtzdms},</if>
<if test="slxtsdms != null">slxtsdms = #{slxtsdms},</if>
<if test="hsylcdyj != null">hsylcdyj = #{hsylcdyj},</if>
<if test="hsyldyj != null">hsyldyj = #{hsyldyj},</if>
<if test="gsylcgyj != null">gsylcgyj = #{gsylcgyj},</if>
<if test="gsylgyj != null">gsylgyj = #{gsylgyj},</if>
<if test="gsylcdyj != null">gsylcdyj = #{gsylcdyj},</if>
<if test="gsyldyj != null">gsyldyj = #{gsyldyj},</if>
<if test="hcgywg != null">hcgywg = #{hcgywg},</if>
<if test="hcgywcdtz != null">hcgywcdtz = #{hcgywcdtz},</if>
<if test="hcgywd != null">hcgywd = #{hcgywd},</if>
<if test="hcgylg != null">hcgylg = #{hcgylg},</if>
<if test="hcgyld != null">hcgyld = #{hcgyld},</if>
<if test="lysylgyj != null">lysylgyj = #{lysylgyj},</if>
<if test="lysyldyj != null">lysyldyj = #{lysyldyj},</if>
<if test="hswdcgyj != null">hswdcgyj = #{hswdcgyj},</if>
<if test="hswdgyj != null">hswdgyj = #{hswdgyj},</if>
<if test="gswdcgtz != null">gswdcgtz = #{gswdcgtz},</if>
<if test="gswdgyj != null">gswdgyj = #{gswdgyj},</if>
<if test="gswddyj != null">gswddyj = #{gswddyj},</if>
<if test="ddf2gz != null">ddf2gz = #{ddf2gz},</if>
<if test="ddf1gz != null">ddf1gz = #{ddf1gz},</if>
<if test="lyswdbsqyJ != null">lyswdbsqyJ = #{lyswdbsqyJ},</if>
<if test="hsylbsqyJ != null">hsylbsqyJ = #{hsylbsqyJ},</if>
<if test="gsylbsqyJ != null">gsylbsqyJ = #{gsylbsqyJ},</if>
<if test="hswdbsqyJ != null">hswdbsqyJ = #{hswdbsqyJ},</if>
<if test="gswdbsqgztz != null">gswdbsqgztz = #{gswdbsqgztz},</if>
<if test="lsjgz != null">lsjgz = #{lsjgz},</if>
<if test="djrq2gz != null">djrq2gz = #{djrq2gz},</if>
<if test="djrq1gz != null">djrq1gz = #{djrq1gz},</if>
<if test="bqbgz != null">bqbgz = #{bqbgz},</if>
<if test="bsbgz != null">bsbgz = #{bsbgz},</if>
<if test="xhbgz != null">xhbgz = #{xhbgz},</if>
<if test="zdygz != null">zdygz = #{zdygz},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEmsCoolingAlarmDataById" parameterType="Long">
delete from ems_cooling_alarm_data where id = #{id}
</delete>
<delete id="deleteEmsCoolingAlarmDataByIds" parameterType="String">
delete from ems_cooling_alarm_data where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,571 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xzzn.ems.mapper.EmsPcsAlarmDataMapper">
<resultMap type="EmsPcsAlarmData" id="EmsPcsAlarmDataResult">
<result property="id" column="id" />
<result property="dataTimestamp" column="data_timestamp" />
<result property="siteId" column="site_id" />
<result property="deviceId" column="device_id" />
<result property="gzbz" column="gzbz" />
<result property="jyzkyc" column="jyzkyc" />
<result property="jlllyc" column="jlllyc" />
<result property="zlgv" column="zlgv" />
<result property="dwgyyc" column="dwgyyc" />
<result property="dwqyyc" column="dwqyyc" />
<result property="dwgpyc" column="dwgpyc" />
<result property="dwqpyc" column="dwqpyc" />
<result property="glmkgw" column="glmkgw" />
<result property="dwxxyc" column="dwxxyc" />
<result property="nbrjgl" column="nbrjgl" />
<result property="zlrqdyc" column="zlrqdyc" />
<result property="zlkgwc" column="zlkgwc" />
<result property="jlfjyc" column="jlfjyc" />
<result property="jlkgwc" column="jlkgwc" />
<result property="wdkgwc" column="wdkgwc" />
<result property="nbyc" column="nbyc" />
<result property="jngw" column="jngw" />
<result property="jlrqdyc" column="jlrqdyc" />
<result property="rjhjyc" column="rjhjyc" />
<result property="jlflqyc" column="jlflqyc" />
<result property="nbjt" column="nbjt" />
<result property="wbjt" column="wbjt" />
<result property="mxdbyfhkjtj" column="mxdbyfhkjtj" />
<result property="mxdlgl" column="mxdlgl" />
<result property="lpjzyc" column="lpjzyc" />
<result property="mjgj" column="mjgj" />
<result property="sxyc" column="sxyc" />
<result property="zlflqyc" column="zlflqyc" />
<result property="zndbtxyc" column="zndbtxyc" />
<result property="nbyjgl" column="nbyjgl" />
<result property="qdyc" column="qdyc" />
<result property="idct" column="idct" />
<result property="xxgxctxvc" column="xxgxctxvc" />
<result property="bjtxxyc" column="bjtxxyc" />
<result property="tbctxvc" column="tbctxvc" />
<result property="zldhyc" column="zldhyc" />
<result property="lxgl" column="lxgl" />
<result property="zlzjcqyc" column="zlzjcqyc" />
<result property="ywgj" column="ywgj" />
<result property="bjtxyc" column="bjtxyc" />
<result property="hmictxyc" column="hmictxyc" />
<result property="jxszcw" column="jxszcw" />
<result property="hmi485txyc" column="hmi485txyc" />
<result property="yctxyc" column="yctxyc" />
<result property="gzz" column="gzz" />
<result property="gjz" column="gjz" />
<result property="zlblmsszcw" column="zlblmsszcw" />
<result property="xtcsbpp" column="xtcsbpp" />
<result property="dwdybphgj" column="dwdybphgj" />
<result property="ddycyyx" column="ddycyyx" />
<result property="gdycyyx" column="gdycyyx" />
<result property="zlfjyc" column="zlfjyc" />
<result property="srqwdkgwc" column="srqwdkgwc" />
<result property="wbwdkgwc" column="wbwdkgwc" />
<result property="fybyqwdkgwc" column="fybyqwdkgwc" />
<result property="dgwdkgwc" column="dgwdkgwc" />
<result property="zjjdvc" column="zjjdvc" />
<result property="fjjdvc" column="fjjdvc" />
<result property="jljdvc" column="jljdvc" />
<result property="bwjdvc" column="bwjdvc" />
<result property="bmsjt" column="bmsjt" />
<result property="kkhrqyc" column="kkhrqyc" />
<result property="dwgqpdjgj" column="dwgqpdjgj" />
<result property="glmkgwgJ" column="glmkgwgJ" />
<result property="dcgy" column="dcgy" />
<result property="dcqzqy" column="dcqzqy" />
<result property="zlgl" column="zlgl" />
<result property="scdyyc" column="scdyyc" />
<result property="scdybfhlwtj" column="scdybfhlwtj" />
<result property="gzbh" column="gzbh" />
<result property="dlbh" column="dlbh" />
<result property="nbfjyc" column="nbfjyc" />
<result property="zlbxsyc" column="zlbxsyc" />
<result property="dczzqy" column="dczzqy" />
<result property="dcdygj" column="dcdygj" />
<result property="wbfjyc" column="wbfjyc" />
<result property="dcfj" column="dcfj" />
<result property="dcdybfhcdtj" column="dcdybfhcdtj" />
<result property="gzgJ" column="gzgJ" />
<result property="zldhmktxyc" column="zldhmktxyc" />
<result property="bmsxtgz" column="bmsxtgz" />
<result property="bmstxyc" column="bmstxyc" />
<result property="bmsgjdyc" column="bmsgjdyc" />
<result property="bmsjc" column="bmsjc" />
<result property="bmsjf" column="bmsjf" />
<result property="bmsdj" column="bmsdj" />
<result property="bmsgj" column="bmsgj" />
<result property="dgfjyc" column="dgfjyc" />
<result property="srqgwgj" column="srqgwgj" />
<result property="gzz2" column="gzz2" />
<result property="gjz2" column="gjz2" />
<result property="jlfjsmyc" column="jlfjsmyc" />
<result property="zlfjsmyc" column="zlfjsmyc" />
<result property="jlkgSmyc" column="jlkgSmyc" />
<result property="zlkgSmyc" column="zlkgSmyc" />
<result property="yljzyc" column="yljzyc" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectEmsPcsAlarmDataVo">
select id, data_timestamp, site_id, device_id, gzbz, jyzkyc, jlllyc, zlgv, dwgyyc, dwqyyc, dwgpyc, dwqpyc, glmkgw, dwxxyc, nbrjgl, zlrqdyc, zlkgwc, jlfjyc, jlkgwc, wdkgwc, nbyc, jngw, jlrqdyc, rjhjyc, jlflqyc, nbjt, wbjt, mxdbyfhkjtj, mxdlgl, lpjzyc, mjgj, sxyc, zlflqyc, zndbtxyc, nbyjgl, qdyc, idct, xxgxctxvc, bjtxxyc, tbctxvc, zldhyc, lxgl, zlzjcqyc, ywgj, bjtxyc, hmictxyc, jxszcw, hmi485txyc, yctxyc, gzz, gjz, zlblmsszcw, xtcsbpp, dwdybphgj, ddycyyx, gdycyyx, zlfjyc, srqwdkgwc, wbwdkgwc, fybyqwdkgwc, dgwdkgwc, zjjdvc, fjjdvc, jljdvc, bwjdvc, bmsjt, kkhrqyc, dwgqpdjgj, glmkgwgJ, dcgy, dcqzqy, zlgl, scdyyc, scdybfhlwtj, gzbh, dlbh, nbfjyc, zlbxsyc, dczzqy, dcdygj, wbfjyc, dcfj, dcdybfhcdtj, gzgJ, zldhmktxyc, bmsxtgz, bmstxyc, bmsgjdyc, bmsjc, bmsjf, bmsdj, bmsgj, dgfjyc, srqgwgj, gzz2, gjz2, jlfjsmyc, zlfjsmyc, jlkgSmyc, zlkgSmyc, yljzyc, create_by, create_time, update_by, update_time, remark from ems_pcs_alarm_data
</sql>
<select id="selectEmsPcsAlarmDataList" parameterType="EmsPcsAlarmData" resultMap="EmsPcsAlarmDataResult">
<include refid="selectEmsPcsAlarmDataVo"/>
<where>
<if test="dataTimestamp != null "> and data_timestamp = #{dataTimestamp}</if>
<if test="siteId != null and siteId != ''"> and site_id = #{siteId}</if>
<if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
<if test="gzbz != null "> and gzbz = #{gzbz}</if>
<if test="jyzkyc != null "> and jyzkyc = #{jyzkyc}</if>
<if test="jlllyc != null "> and jlllyc = #{jlllyc}</if>
<if test="zlgv != null "> and zlgv = #{zlgv}</if>
<if test="dwgyyc != null "> and dwgyyc = #{dwgyyc}</if>
<if test="dwqyyc != null "> and dwqyyc = #{dwqyyc}</if>
<if test="dwgpyc != null "> and dwgpyc = #{dwgpyc}</if>
<if test="dwqpyc != null "> and dwqpyc = #{dwqpyc}</if>
<if test="glmkgw != null "> and glmkgw = #{glmkgw}</if>
<if test="dwxxyc != null "> and dwxxyc = #{dwxxyc}</if>
<if test="nbrjgl != null "> and nbrjgl = #{nbrjgl}</if>
<if test="zlrqdyc != null "> and zlrqdyc = #{zlrqdyc}</if>
<if test="zlkgwc != null "> and zlkgwc = #{zlkgwc}</if>
<if test="jlfjyc != null "> and jlfjyc = #{jlfjyc}</if>
<if test="jlkgwc != null "> and jlkgwc = #{jlkgwc}</if>
<if test="wdkgwc != null "> and wdkgwc = #{wdkgwc}</if>
<if test="nbyc != null "> and nbyc = #{nbyc}</if>
<if test="jngw != null "> and jngw = #{jngw}</if>
<if test="jlrqdyc != null "> and jlrqdyc = #{jlrqdyc}</if>
<if test="rjhjyc != null "> and rjhjyc = #{rjhjyc}</if>
<if test="jlflqyc != null "> and jlflqyc = #{jlflqyc}</if>
<if test="nbjt != null "> and nbjt = #{nbjt}</if>
<if test="wbjt != null "> and wbjt = #{wbjt}</if>
<if test="mxdbyfhkjtj != null "> and mxdbyfhkjtj = #{mxdbyfhkjtj}</if>
<if test="mxdlgl != null "> and mxdlgl = #{mxdlgl}</if>
<if test="lpjzyc != null "> and lpjzyc = #{lpjzyc}</if>
<if test="mjgj != null "> and mjgj = #{mjgj}</if>
<if test="sxyc != null "> and sxyc = #{sxyc}</if>
<if test="zlflqyc != null "> and zlflqyc = #{zlflqyc}</if>
<if test="zndbtxyc != null "> and zndbtxyc = #{zndbtxyc}</if>
<if test="nbyjgl != null "> and nbyjgl = #{nbyjgl}</if>
<if test="qdyc != null "> and qdyc = #{qdyc}</if>
<if test="idct != null "> and idct = #{idct}</if>
<if test="xxgxctxvc != null "> and xxgxctxvc = #{xxgxctxvc}</if>
<if test="bjtxxyc != null "> and bjtxxyc = #{bjtxxyc}</if>
<if test="tbctxvc != null "> and tbctxvc = #{tbctxvc}</if>
<if test="zldhyc != null "> and zldhyc = #{zldhyc}</if>
<if test="lxgl != null "> and lxgl = #{lxgl}</if>
<if test="zlzjcqyc != null "> and zlzjcqyc = #{zlzjcqyc}</if>
<if test="ywgj != null "> and ywgj = #{ywgj}</if>
<if test="bjtxyc != null "> and bjtxyc = #{bjtxyc}</if>
<if test="hmictxyc != null "> and hmictxyc = #{hmictxyc}</if>
<if test="jxszcw != null "> and jxszcw = #{jxszcw}</if>
<if test="hmi485txyc != null "> and hmi485txyc = #{hmi485txyc}</if>
<if test="yctxyc != null "> and yctxyc = #{yctxyc}</if>
<if test="gzz != null "> and gzz = #{gzz}</if>
<if test="gjz != null "> and gjz = #{gjz}</if>
<if test="zlblmsszcw != null "> and zlblmsszcw = #{zlblmsszcw}</if>
<if test="xtcsbpp != null "> and xtcsbpp = #{xtcsbpp}</if>
<if test="dwdybphgj != null "> and dwdybphgj = #{dwdybphgj}</if>
<if test="ddycyyx != null "> and ddycyyx = #{ddycyyx}</if>
<if test="gdycyyx != null "> and gdycyyx = #{gdycyyx}</if>
<if test="zlfjyc != null "> and zlfjyc = #{zlfjyc}</if>
<if test="srqwdkgwc != null "> and srqwdkgwc = #{srqwdkgwc}</if>
<if test="wbwdkgwc != null "> and wbwdkgwc = #{wbwdkgwc}</if>
<if test="fybyqwdkgwc != null "> and fybyqwdkgwc = #{fybyqwdkgwc}</if>
<if test="dgwdkgwc != null "> and dgwdkgwc = #{dgwdkgwc}</if>
<if test="zjjdvc != null "> and zjjdvc = #{zjjdvc}</if>
<if test="fjjdvc != null "> and fjjdvc = #{fjjdvc}</if>
<if test="jljdvc != null "> and jljdvc = #{jljdvc}</if>
<if test="bwjdvc != null "> and bwjdvc = #{bwjdvc}</if>
<if test="bmsjt != null "> and bmsjt = #{bmsjt}</if>
<if test="kkhrqyc != null "> and kkhrqyc = #{kkhrqyc}</if>
<if test="dwgqpdjgj != null "> and dwgqpdjgj = #{dwgqpdjgj}</if>
<if test="glmkgwgJ != null "> and glmkgwgJ = #{glmkgwgJ}</if>
<if test="dcgy != null "> and dcgy = #{dcgy}</if>
<if test="dcqzqy != null "> and dcqzqy = #{dcqzqy}</if>
<if test="zlgl != null "> and zlgl = #{zlgl}</if>
<if test="scdyyc != null "> and scdyyc = #{scdyyc}</if>
<if test="scdybfhlwtj != null "> and scdybfhlwtj = #{scdybfhlwtj}</if>
<if test="gzbh != null "> and gzbh = #{gzbh}</if>
<if test="dlbh != null "> and dlbh = #{dlbh}</if>
<if test="nbfjyc != null "> and nbfjyc = #{nbfjyc}</if>
<if test="zlbxsyc != null "> and zlbxsyc = #{zlbxsyc}</if>
<if test="dczzqy != null "> and dczzqy = #{dczzqy}</if>
<if test="dcdygj != null "> and dcdygj = #{dcdygj}</if>
<if test="wbfjyc != null "> and wbfjyc = #{wbfjyc}</if>
<if test="dcfj != null "> and dcfj = #{dcfj}</if>
<if test="dcdybfhcdtj != null "> and dcdybfhcdtj = #{dcdybfhcdtj}</if>
<if test="gzgJ != null "> and gzgJ = #{gzgJ}</if>
<if test="zldhmktxyc != null "> and zldhmktxyc = #{zldhmktxyc}</if>
<if test="bmsxtgz != null "> and bmsxtgz = #{bmsxtgz}</if>
<if test="bmstxyc != null "> and bmstxyc = #{bmstxyc}</if>
<if test="bmsgjdyc != null "> and bmsgjdyc = #{bmsgjdyc}</if>
<if test="bmsjc != null "> and bmsjc = #{bmsjc}</if>
<if test="bmsjf != null "> and bmsjf = #{bmsjf}</if>
<if test="bmsdj != null "> and bmsdj = #{bmsdj}</if>
<if test="bmsgj != null "> and bmsgj = #{bmsgj}</if>
<if test="dgfjyc != null "> and dgfjyc = #{dgfjyc}</if>
<if test="srqgwgj != null "> and srqgwgj = #{srqgwgj}</if>
<if test="gzz2 != null "> and gzz2 = #{gzz2}</if>
<if test="gjz2 != null "> and gjz2 = #{gjz2}</if>
<if test="jlfjsmyc != null "> and jlfjsmyc = #{jlfjsmyc}</if>
<if test="zlfjsmyc != null "> and zlfjsmyc = #{zlfjsmyc}</if>
<if test="jlkgSmyc != null "> and jlkgSmyc = #{jlkgSmyc}</if>
<if test="zlkgSmyc != null "> and zlkgSmyc = #{zlkgSmyc}</if>
<if test="yljzyc != null "> and yljzyc = #{yljzyc}</if>
</where>
</select>
<select id="selectEmsPcsAlarmDataById" parameterType="Long" resultMap="EmsPcsAlarmDataResult">
<include refid="selectEmsPcsAlarmDataVo"/>
where id = #{id}
</select>
<insert id="insertEmsPcsAlarmData" parameterType="EmsPcsAlarmData" useGeneratedKeys="true" keyProperty="id">
insert into ems_pcs_alarm_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="dataTimestamp != null">data_timestamp,</if>
<if test="siteId != null and siteId != ''">site_id,</if>
<if test="deviceId != null and deviceId != ''">device_id,</if>
<if test="gzbz != null">gzbz,</if>
<if test="jyzkyc != null">jyzkyc,</if>
<if test="jlllyc != null">jlllyc,</if>
<if test="zlgv != null">zlgv,</if>
<if test="dwgyyc != null">dwgyyc,</if>
<if test="dwqyyc != null">dwqyyc,</if>
<if test="dwgpyc != null">dwgpyc,</if>
<if test="dwqpyc != null">dwqpyc,</if>
<if test="glmkgw != null">glmkgw,</if>
<if test="dwxxyc != null">dwxxyc,</if>
<if test="nbrjgl != null">nbrjgl,</if>
<if test="zlrqdyc != null">zlrqdyc,</if>
<if test="zlkgwc != null">zlkgwc,</if>
<if test="jlfjyc != null">jlfjyc,</if>
<if test="jlkgwc != null">jlkgwc,</if>
<if test="wdkgwc != null">wdkgwc,</if>
<if test="nbyc != null">nbyc,</if>
<if test="jngw != null">jngw,</if>
<if test="jlrqdyc != null">jlrqdyc,</if>
<if test="rjhjyc != null">rjhjyc,</if>
<if test="jlflqyc != null">jlflqyc,</if>
<if test="nbjt != null">nbjt,</if>
<if test="wbjt != null">wbjt,</if>
<if test="mxdbyfhkjtj != null">mxdbyfhkjtj,</if>
<if test="mxdlgl != null">mxdlgl,</if>
<if test="lpjzyc != null">lpjzyc,</if>
<if test="mjgj != null">mjgj,</if>
<if test="sxyc != null">sxyc,</if>
<if test="zlflqyc != null">zlflqyc,</if>
<if test="zndbtxyc != null">zndbtxyc,</if>
<if test="nbyjgl != null">nbyjgl,</if>
<if test="qdyc != null">qdyc,</if>
<if test="idct != null">idct,</if>
<if test="xxgxctxvc != null">xxgxctxvc,</if>
<if test="bjtxxyc != null">bjtxxyc,</if>
<if test="tbctxvc != null">tbctxvc,</if>
<if test="zldhyc != null">zldhyc,</if>
<if test="lxgl != null">lxgl,</if>
<if test="zlzjcqyc != null">zlzjcqyc,</if>
<if test="ywgj != null">ywgj,</if>
<if test="bjtxyc != null">bjtxyc,</if>
<if test="hmictxyc != null">hmictxyc,</if>
<if test="jxszcw != null">jxszcw,</if>
<if test="hmi485txyc != null">hmi485txyc,</if>
<if test="yctxyc != null">yctxyc,</if>
<if test="gzz != null">gzz,</if>
<if test="gjz != null">gjz,</if>
<if test="zlblmsszcw != null">zlblmsszcw,</if>
<if test="xtcsbpp != null">xtcsbpp,</if>
<if test="dwdybphgj != null">dwdybphgj,</if>
<if test="ddycyyx != null">ddycyyx,</if>
<if test="gdycyyx != null">gdycyyx,</if>
<if test="zlfjyc != null">zlfjyc,</if>
<if test="srqwdkgwc != null">srqwdkgwc,</if>
<if test="wbwdkgwc != null">wbwdkgwc,</if>
<if test="fybyqwdkgwc != null">fybyqwdkgwc,</if>
<if test="dgwdkgwc != null">dgwdkgwc,</if>
<if test="zjjdvc != null">zjjdvc,</if>
<if test="fjjdvc != null">fjjdvc,</if>
<if test="jljdvc != null">jljdvc,</if>
<if test="bwjdvc != null">bwjdvc,</if>
<if test="bmsjt != null">bmsjt,</if>
<if test="kkhrqyc != null">kkhrqyc,</if>
<if test="dwgqpdjgj != null">dwgqpdjgj,</if>
<if test="glmkgwgJ != null">glmkgwgJ,</if>
<if test="dcgy != null">dcgy,</if>
<if test="dcqzqy != null">dcqzqy,</if>
<if test="zlgl != null">zlgl,</if>
<if test="scdyyc != null">scdyyc,</if>
<if test="scdybfhlwtj != null">scdybfhlwtj,</if>
<if test="gzbh != null">gzbh,</if>
<if test="dlbh != null">dlbh,</if>
<if test="nbfjyc != null">nbfjyc,</if>
<if test="zlbxsyc != null">zlbxsyc,</if>
<if test="dczzqy != null">dczzqy,</if>
<if test="dcdygj != null">dcdygj,</if>
<if test="wbfjyc != null">wbfjyc,</if>
<if test="dcfj != null">dcfj,</if>
<if test="dcdybfhcdtj != null">dcdybfhcdtj,</if>
<if test="gzgJ != null">gzgJ,</if>
<if test="zldhmktxyc != null">zldhmktxyc,</if>
<if test="bmsxtgz != null">bmsxtgz,</if>
<if test="bmstxyc != null">bmstxyc,</if>
<if test="bmsgjdyc != null">bmsgjdyc,</if>
<if test="bmsjc != null">bmsjc,</if>
<if test="bmsjf != null">bmsjf,</if>
<if test="bmsdj != null">bmsdj,</if>
<if test="bmsgj != null">bmsgj,</if>
<if test="dgfjyc != null">dgfjyc,</if>
<if test="srqgwgj != null">srqgwgj,</if>
<if test="gzz2 != null">gzz2,</if>
<if test="gjz2 != null">gjz2,</if>
<if test="jlfjsmyc != null">jlfjsmyc,</if>
<if test="zlfjsmyc != null">zlfjsmyc,</if>
<if test="jlkgSmyc != null">jlkgSmyc,</if>
<if test="zlkgSmyc != null">zlkgSmyc,</if>
<if test="yljzyc != null">yljzyc,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="dataTimestamp != null">#{dataTimestamp},</if>
<if test="siteId != null and siteId != ''">#{siteId},</if>
<if test="deviceId != null and deviceId != ''">#{deviceId},</if>
<if test="gzbz != null">#{gzbz},</if>
<if test="jyzkyc != null">#{jyzkyc},</if>
<if test="jlllyc != null">#{jlllyc},</if>
<if test="zlgv != null">#{zlgv},</if>
<if test="dwgyyc != null">#{dwgyyc},</if>
<if test="dwqyyc != null">#{dwqyyc},</if>
<if test="dwgpyc != null">#{dwgpyc},</if>
<if test="dwqpyc != null">#{dwqpyc},</if>
<if test="glmkgw != null">#{glmkgw},</if>
<if test="dwxxyc != null">#{dwxxyc},</if>
<if test="nbrjgl != null">#{nbrjgl},</if>
<if test="zlrqdyc != null">#{zlrqdyc},</if>
<if test="zlkgwc != null">#{zlkgwc},</if>
<if test="jlfjyc != null">#{jlfjyc},</if>
<if test="jlkgwc != null">#{jlkgwc},</if>
<if test="wdkgwc != null">#{wdkgwc},</if>
<if test="nbyc != null">#{nbyc},</if>
<if test="jngw != null">#{jngw},</if>
<if test="jlrqdyc != null">#{jlrqdyc},</if>
<if test="rjhjyc != null">#{rjhjyc},</if>
<if test="jlflqyc != null">#{jlflqyc},</if>
<if test="nbjt != null">#{nbjt},</if>
<if test="wbjt != null">#{wbjt},</if>
<if test="mxdbyfhkjtj != null">#{mxdbyfhkjtj},</if>
<if test="mxdlgl != null">#{mxdlgl},</if>
<if test="lpjzyc != null">#{lpjzyc},</if>
<if test="mjgj != null">#{mjgj},</if>
<if test="sxyc != null">#{sxyc},</if>
<if test="zlflqyc != null">#{zlflqyc},</if>
<if test="zndbtxyc != null">#{zndbtxyc},</if>
<if test="nbyjgl != null">#{nbyjgl},</if>
<if test="qdyc != null">#{qdyc},</if>
<if test="idct != null">#{idct},</if>
<if test="xxgxctxvc != null">#{xxgxctxvc},</if>
<if test="bjtxxyc != null">#{bjtxxyc},</if>
<if test="tbctxvc != null">#{tbctxvc},</if>
<if test="zldhyc != null">#{zldhyc},</if>
<if test="lxgl != null">#{lxgl},</if>
<if test="zlzjcqyc != null">#{zlzjcqyc},</if>
<if test="ywgj != null">#{ywgj},</if>
<if test="bjtxyc != null">#{bjtxyc},</if>
<if test="hmictxyc != null">#{hmictxyc},</if>
<if test="jxszcw != null">#{jxszcw},</if>
<if test="hmi485txyc != null">#{hmi485txyc},</if>
<if test="yctxyc != null">#{yctxyc},</if>
<if test="gzz != null">#{gzz},</if>
<if test="gjz != null">#{gjz},</if>
<if test="zlblmsszcw != null">#{zlblmsszcw},</if>
<if test="xtcsbpp != null">#{xtcsbpp},</if>
<if test="dwdybphgj != null">#{dwdybphgj},</if>
<if test="ddycyyx != null">#{ddycyyx},</if>
<if test="gdycyyx != null">#{gdycyyx},</if>
<if test="zlfjyc != null">#{zlfjyc},</if>
<if test="srqwdkgwc != null">#{srqwdkgwc},</if>
<if test="wbwdkgwc != null">#{wbwdkgwc},</if>
<if test="fybyqwdkgwc != null">#{fybyqwdkgwc},</if>
<if test="dgwdkgwc != null">#{dgwdkgwc},</if>
<if test="zjjdvc != null">#{zjjdvc},</if>
<if test="fjjdvc != null">#{fjjdvc},</if>
<if test="jljdvc != null">#{jljdvc},</if>
<if test="bwjdvc != null">#{bwjdvc},</if>
<if test="bmsjt != null">#{bmsjt},</if>
<if test="kkhrqyc != null">#{kkhrqyc},</if>
<if test="dwgqpdjgj != null">#{dwgqpdjgj},</if>
<if test="glmkgwgJ != null">#{glmkgwgJ},</if>
<if test="dcgy != null">#{dcgy},</if>
<if test="dcqzqy != null">#{dcqzqy},</if>
<if test="zlgl != null">#{zlgl},</if>
<if test="scdyyc != null">#{scdyyc},</if>
<if test="scdybfhlwtj != null">#{scdybfhlwtj},</if>
<if test="gzbh != null">#{gzbh},</if>
<if test="dlbh != null">#{dlbh},</if>
<if test="nbfjyc != null">#{nbfjyc},</if>
<if test="zlbxsyc != null">#{zlbxsyc},</if>
<if test="dczzqy != null">#{dczzqy},</if>
<if test="dcdygj != null">#{dcdygj},</if>
<if test="wbfjyc != null">#{wbfjyc},</if>
<if test="dcfj != null">#{dcfj},</if>
<if test="dcdybfhcdtj != null">#{dcdybfhcdtj},</if>
<if test="gzgJ != null">#{gzgJ},</if>
<if test="zldhmktxyc != null">#{zldhmktxyc},</if>
<if test="bmsxtgz != null">#{bmsxtgz},</if>
<if test="bmstxyc != null">#{bmstxyc},</if>
<if test="bmsgjdyc != null">#{bmsgjdyc},</if>
<if test="bmsjc != null">#{bmsjc},</if>
<if test="bmsjf != null">#{bmsjf},</if>
<if test="bmsdj != null">#{bmsdj},</if>
<if test="bmsgj != null">#{bmsgj},</if>
<if test="dgfjyc != null">#{dgfjyc},</if>
<if test="srqgwgj != null">#{srqgwgj},</if>
<if test="gzz2 != null">#{gzz2},</if>
<if test="gjz2 != null">#{gjz2},</if>
<if test="jlfjsmyc != null">#{jlfjsmyc},</if>
<if test="zlfjsmyc != null">#{zlfjsmyc},</if>
<if test="jlkgSmyc != null">#{jlkgSmyc},</if>
<if test="zlkgSmyc != null">#{zlkgSmyc},</if>
<if test="yljzyc != null">#{yljzyc},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateEmsPcsAlarmData" parameterType="EmsPcsAlarmData">
update ems_pcs_alarm_data
<trim prefix="SET" suffixOverrides=",">
<if test="dataTimestamp != null">data_timestamp = #{dataTimestamp},</if>
<if test="siteId != null and siteId != ''">site_id = #{siteId},</if>
<if test="deviceId != null and deviceId != ''">device_id = #{deviceId},</if>
<if test="gzbz != null">gzbz = #{gzbz},</if>
<if test="jyzkyc != null">jyzkyc = #{jyzkyc},</if>
<if test="jlllyc != null">jlllyc = #{jlllyc},</if>
<if test="zlgv != null">zlgv = #{zlgv},</if>
<if test="dwgyyc != null">dwgyyc = #{dwgyyc},</if>
<if test="dwqyyc != null">dwqyyc = #{dwqyyc},</if>
<if test="dwgpyc != null">dwgpyc = #{dwgpyc},</if>
<if test="dwqpyc != null">dwqpyc = #{dwqpyc},</if>
<if test="glmkgw != null">glmkgw = #{glmkgw},</if>
<if test="dwxxyc != null">dwxxyc = #{dwxxyc},</if>
<if test="nbrjgl != null">nbrjgl = #{nbrjgl},</if>
<if test="zlrqdyc != null">zlrqdyc = #{zlrqdyc},</if>
<if test="zlkgwc != null">zlkgwc = #{zlkgwc},</if>
<if test="jlfjyc != null">jlfjyc = #{jlfjyc},</if>
<if test="jlkgwc != null">jlkgwc = #{jlkgwc},</if>
<if test="wdkgwc != null">wdkgwc = #{wdkgwc},</if>
<if test="nbyc != null">nbyc = #{nbyc},</if>
<if test="jngw != null">jngw = #{jngw},</if>
<if test="jlrqdyc != null">jlrqdyc = #{jlrqdyc},</if>
<if test="rjhjyc != null">rjhjyc = #{rjhjyc},</if>
<if test="jlflqyc != null">jlflqyc = #{jlflqyc},</if>
<if test="nbjt != null">nbjt = #{nbjt},</if>
<if test="wbjt != null">wbjt = #{wbjt},</if>
<if test="mxdbyfhkjtj != null">mxdbyfhkjtj = #{mxdbyfhkjtj},</if>
<if test="mxdlgl != null">mxdlgl = #{mxdlgl},</if>
<if test="lpjzyc != null">lpjzyc = #{lpjzyc},</if>
<if test="mjgj != null">mjgj = #{mjgj},</if>
<if test="sxyc != null">sxyc = #{sxyc},</if>
<if test="zlflqyc != null">zlflqyc = #{zlflqyc},</if>
<if test="zndbtxyc != null">zndbtxyc = #{zndbtxyc},</if>
<if test="nbyjgl != null">nbyjgl = #{nbyjgl},</if>
<if test="qdyc != null">qdyc = #{qdyc},</if>
<if test="idct != null">idct = #{idct},</if>
<if test="xxgxctxvc != null">xxgxctxvc = #{xxgxctxvc},</if>
<if test="bjtxxyc != null">bjtxxyc = #{bjtxxyc},</if>
<if test="tbctxvc != null">tbctxvc = #{tbctxvc},</if>
<if test="zldhyc != null">zldhyc = #{zldhyc},</if>
<if test="lxgl != null">lxgl = #{lxgl},</if>
<if test="zlzjcqyc != null">zlzjcqyc = #{zlzjcqyc},</if>
<if test="ywgj != null">ywgj = #{ywgj},</if>
<if test="bjtxyc != null">bjtxyc = #{bjtxyc},</if>
<if test="hmictxyc != null">hmictxyc = #{hmictxyc},</if>
<if test="jxszcw != null">jxszcw = #{jxszcw},</if>
<if test="hmi485txyc != null">hmi485txyc = #{hmi485txyc},</if>
<if test="yctxyc != null">yctxyc = #{yctxyc},</if>
<if test="gzz != null">gzz = #{gzz},</if>
<if test="gjz != null">gjz = #{gjz},</if>
<if test="zlblmsszcw != null">zlblmsszcw = #{zlblmsszcw},</if>
<if test="xtcsbpp != null">xtcsbpp = #{xtcsbpp},</if>
<if test="dwdybphgj != null">dwdybphgj = #{dwdybphgj},</if>
<if test="ddycyyx != null">ddycyyx = #{ddycyyx},</if>
<if test="gdycyyx != null">gdycyyx = #{gdycyyx},</if>
<if test="zlfjyc != null">zlfjyc = #{zlfjyc},</if>
<if test="srqwdkgwc != null">srqwdkgwc = #{srqwdkgwc},</if>
<if test="wbwdkgwc != null">wbwdkgwc = #{wbwdkgwc},</if>
<if test="fybyqwdkgwc != null">fybyqwdkgwc = #{fybyqwdkgwc},</if>
<if test="dgwdkgwc != null">dgwdkgwc = #{dgwdkgwc},</if>
<if test="zjjdvc != null">zjjdvc = #{zjjdvc},</if>
<if test="fjjdvc != null">fjjdvc = #{fjjdvc},</if>
<if test="jljdvc != null">jljdvc = #{jljdvc},</if>
<if test="bwjdvc != null">bwjdvc = #{bwjdvc},</if>
<if test="bmsjt != null">bmsjt = #{bmsjt},</if>
<if test="kkhrqyc != null">kkhrqyc = #{kkhrqyc},</if>
<if test="dwgqpdjgj != null">dwgqpdjgj = #{dwgqpdjgj},</if>
<if test="glmkgwgJ != null">glmkgwgJ = #{glmkgwgJ},</if>
<if test="dcgy != null">dcgy = #{dcgy},</if>
<if test="dcqzqy != null">dcqzqy = #{dcqzqy},</if>
<if test="zlgl != null">zlgl = #{zlgl},</if>
<if test="scdyyc != null">scdyyc = #{scdyyc},</if>
<if test="scdybfhlwtj != null">scdybfhlwtj = #{scdybfhlwtj},</if>
<if test="gzbh != null">gzbh = #{gzbh},</if>
<if test="dlbh != null">dlbh = #{dlbh},</if>
<if test="nbfjyc != null">nbfjyc = #{nbfjyc},</if>
<if test="zlbxsyc != null">zlbxsyc = #{zlbxsyc},</if>
<if test="dczzqy != null">dczzqy = #{dczzqy},</if>
<if test="dcdygj != null">dcdygj = #{dcdygj},</if>
<if test="wbfjyc != null">wbfjyc = #{wbfjyc},</if>
<if test="dcfj != null">dcfj = #{dcfj},</if>
<if test="dcdybfhcdtj != null">dcdybfhcdtj = #{dcdybfhcdtj},</if>
<if test="gzgJ != null">gzgJ = #{gzgJ},</if>
<if test="zldhmktxyc != null">zldhmktxyc = #{zldhmktxyc},</if>
<if test="bmsxtgz != null">bmsxtgz = #{bmsxtgz},</if>
<if test="bmstxyc != null">bmstxyc = #{bmstxyc},</if>
<if test="bmsgjdyc != null">bmsgjdyc = #{bmsgjdyc},</if>
<if test="bmsjc != null">bmsjc = #{bmsjc},</if>
<if test="bmsjf != null">bmsjf = #{bmsjf},</if>
<if test="bmsdj != null">bmsdj = #{bmsdj},</if>
<if test="bmsgj != null">bmsgj = #{bmsgj},</if>
<if test="dgfjyc != null">dgfjyc = #{dgfjyc},</if>
<if test="srqgwgj != null">srqgwgj = #{srqgwgj},</if>
<if test="gzz2 != null">gzz2 = #{gzz2},</if>
<if test="gjz2 != null">gjz2 = #{gjz2},</if>
<if test="jlfjsmyc != null">jlfjsmyc = #{jlfjsmyc},</if>
<if test="zlfjsmyc != null">zlfjsmyc = #{zlfjsmyc},</if>
<if test="jlkgSmyc != null">jlkgSmyc = #{jlkgSmyc},</if>
<if test="zlkgSmyc != null">zlkgSmyc = #{zlkgSmyc},</if>
<if test="yljzyc != null">yljzyc = #{yljzyc},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEmsPcsAlarmDataById" parameterType="Long">
delete from ems_pcs_alarm_data where id = #{id}
</delete>
<delete id="deleteEmsPcsAlarmDataByIds" parameterType="String">
delete from ems_pcs_alarm_data where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,571 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xzzn.ems.mapper.EmsStackAlarmDataMapper">
<resultMap type="EmsStackAlarmData" id="EmsStackAlarmDataResult">
<result property="id" column="id" />
<result property="dataTimestamp" column="data_timestamp" />
<result property="siteId" column="site_id" />
<result property="deviceId" column="device_id" />
<result property="bmsgzzt" column="bmsgzzt" />
<result property="jczt" column="jczt" />
<result property="jfzt" column="jfzt" />
<result property="dngzddyqyqdgjhz" column="dngzddyqyqdgjhz" />
<result property="dngzddyqyzdgjhz" column="dngzddyqyzdgjhz" />
<result property="dngzddyqyzzdgjhz" column="dngzddyqyzzdgjhz" />
<result property="dngzddygyqdgjhz" column="dngzddygyqdgjhz" />
<result property="dngzddygyzdgjhz" column="dngzddygyzdgjhz" />
<result property="dngzddygyzzdgjhz" column="dngzddygyzzdgjhz" />
<result property="dngzdglqdgjhz" column="dngzdglqdgjhz" />
<result property="dngzdglzdgjhz" column="dngzdglzdgjhz" />
<result property="dngzdglzzdgjhz" column="dngzdglzzdgjhz" />
<result property="dngzjydzdqdgjhz" column="dngzjydzdqdgjhz" />
<result property="dngzjydzdzdgjhz" column="dngzjydzdzdgjhz" />
<result property="dngzjydzdzzdgjhz" column="dngzjydzdzzdgjhz" />
<result property="dngzmkqwdqdgjhz" column="dngzmkqwdqdgjhz" />
<result property="dngzmkqwdzdgjhz" column="dngzmkqwdzdgjhz" />
<result property="dngzmkqwdzzdgjhz" column="dngzmkqwdzzdgjhz" />
<result property="dngzmkgwdqdgjhz" column="dngzmkgwdqdgjhz" />
<result property="dngzmkgwdzdgjhz" column="dngzmkgwdzdgjhz" />
<result property="dngzmkgwdzzdgjhz" column="dngzmkgwdzzdgjhz" />
<result property="dngdtgyqwgjhz" column="dngdtgyqwgjhz" />
<result property="dngdtgyzdgjhz" column="dngdtgyzdgjhz" />
<result property="dngdtgyyzgjhz" column="dngdtgyyzgjhz" />
<result property="dngdtqyqwgjhz" column="dngdtqyqwgjhz" />
<result property="dngdtqyzdgjhz" column="dngdtqyzdgjhz" />
<result property="dngdtqyyzgjhz" column="dngdtqyyzgjhz" />
<result property="dngdtycqwgjhz" column="dngdtycqwgjhz" />
<result property="dngdtyczdgjhz" column="dngdtyczdgjhz" />
<result property="dngdtycyzgjhz" column="dngdtycyzgjhz" />
<result property="dngdtqwqwgjhz" column="dngdtqwqwgjhz" />
<result property="dngdtqwzdgjhz" column="dngdtqwzdgjhz" />
<result property="dngdtqwyzgjhz" column="dngdtqwyzgjhz" />
<result property="dngdtgwqwgjhz" column="dngdtgwqwgjhz" />
<result property="dngdtgwzdgjhz" column="dngdtgwzdgjhz" />
<result property="dngdtgwyzgjhz" column="dngdtgwyzgjhz" />
<result property="dngdtwcqwgjhz" column="dngdtwcqwgjhz" />
<result property="dngdtwczdgjhz" column="dngdtwczdgjhz" />
<result property="dngdtwcyzgjhz" column="dngdtwcyzgjhz" />
<result property="dtsocdqwgjhz" column="dtsocdqwgjhz" />
<result property="dtsocdzdgjhz" column="dtsocdzdgjhz" />
<result property="dtsocdyzgjhz" column="dtsocdyzgjhz" />
<result property="dtsocgqwgjhz" column="dtsocgqwgjhz" />
<result property="dtsocgzdgjhz" column="dtsocgzdgjhz" />
<result property="dtsocgyzgjhz" column="dtsocgyzgjhz" />
<result property="dtsohdqwgjhz" column="dtsohdqwgjhz" />
<result property="dtsohdzdgjhz" column="dtsohdzdgjhz" />
<result property="dtsohdyzgjhz" column="dtsohdyzgjhz" />
<result property="dtsohgqwgjhz" column="dtsohgqwgjhz" />
<result property="dtsohgzdgjhz" column="dtsohgzdgjhz" />
<result property="dtsohgyzgjhz" column="dtsohgyzgjhz" />
<result property="dngzkslhz" column="dngzkslhz" />
<result property="dngckslgjhz" column="dngckslgjhz" />
<result property="dngzdyyc" column="dngzdyyc" />
<result property="dnjcqdkyc" column="dnjcqdkyc" />
<result property="dnjcqbhyc" column="dnjcqbhyc" />
<result property="cdjz" column="cdjz" />
<result property="fdjz" column="fdjz" />
<result property="bmsxtgjhz" column="bmsxtgjhz" />
<result property="bmsxtgzhz" column="bmsxtgzhz" />
<result property="srin0" column="srin0" />
<result property="srin1" column="srin1" />
<result property="srin2" column="srin2" />
<result property="srin3" column="srin3" />
<result property="yl1" column="yl1" />
<result property="yl2" column="yl2" />
<result property="yl3" column="yl3" />
<result property="yl4" column="yl4" />
<result property="yl5" column="yl5" />
<result property="yl6" column="yl6" />
<result property="yl7" column="yl7" />
<result property="yl8" column="yl8" />
<result property="dngdzgwqwgjhz" column="dngdzgwqwgjhz" />
<result property="dngdzgwzdgjhz" column="dngdzgwzdgjhz" />
<result property="dngdzgwzzdgjhz" column="dngdzgwzzdgjhz" />
<result property="dnmkdygyqwgjhz" column="dnmkdygyqwgjhz" />
<result property="dnmkdygyzdgjhz" column="dnmkdygyzdgjhz" />
<result property="dnmkdygyyzgjhz" column="dnmkdygyyzgjhz" />
<result property="dnmkdyqyqwgjhz" column="dnmkdyqyqwgjhz" />
<result property="dnmkdyqyzdgjhz" column="dnmkdyqyzdgjhz" />
<result property="dnmkdyqyyzgjhz" column="dnmkdyqyyzgjhz" />
<result property="dycjsl" column="dycjsl" />
<result property="wdcjsl" column="wdcjsl" />
<result property="didodi0" column="didodi0" />
<result property="didodi1" column="didodi1" />
<result property="didodi2" column="didodi2" />
<result property="didodi3" column="didodi3" />
<result property="didodi4" column="didodi4" />
<result property="didodi5" column="didodi5" />
<result property="didodi6" column="didodi6" />
<result property="didodi7" column="didodi7" />
<result property="didodi8" column="didodi8" />
<result property="didodi9" column="didodi9" />
<result property="didodi10" column="didodi10" />
<result property="didodi11" column="didodi11" />
<result property="didodi12" column="didodi12" />
<result property="kttxsl" column="kttxsl" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectEmsStackAlarmDataVo">
select id, data_timestamp, site_id, device_id, bmsgzzt, jczt, jfzt, dngzddyqyqdgjhz, dngzddyqyzdgjhz, dngzddyqyzzdgjhz, dngzddygyqdgjhz, dngzddygyzdgjhz, dngzddygyzzdgjhz, dngzdglqdgjhz, dngzdglzdgjhz, dngzdglzzdgjhz, dngzjydzdqdgjhz, dngzjydzdzdgjhz, dngzjydzdzzdgjhz, dngzmkqwdqdgjhz, dngzmkqwdzdgjhz, dngzmkqwdzzdgjhz, dngzmkgwdqdgjhz, dngzmkgwdzdgjhz, dngzmkgwdzzdgjhz, dngdtgyqwgjhz, dngdtgyzdgjhz, dngdtgyyzgjhz, dngdtqyqwgjhz, dngdtqyzdgjhz, dngdtqyyzgjhz, dngdtycqwgjhz, dngdtyczdgjhz, dngdtycyzgjhz, dngdtqwqwgjhz, dngdtqwzdgjhz, dngdtqwyzgjhz, dngdtgwqwgjhz, dngdtgwzdgjhz, dngdtgwyzgjhz, dngdtwcqwgjhz, dngdtwczdgjhz, dngdtwcyzgjhz, dtsocdqwgjhz, dtsocdzdgjhz, dtsocdyzgjhz, dtsocgqwgjhz, dtsocgzdgjhz, dtsocgyzgjhz, dtsohdqwgjhz, dtsohdzdgjhz, dtsohdyzgjhz, dtsohgqwgjhz, dtsohgzdgjhz, dtsohgyzgjhz, dngzkslhz, dngckslgjhz, dngzdyyc, dnjcqdkyc, dnjcqbhyc, cdjz, fdjz, bmsxtgjhz, bmsxtgzhz, srin0, srin1, srin2, srin3, yl1, yl2, yl3, yl4, yl5, yl6, yl7, yl8, dngdzgwqwgjhz, dngdzgwzdgjhz, dngdzgwzzdgjhz, dnmkdygyqwgjhz, dnmkdygyzdgjhz, dnmkdygyyzgjhz, dnmkdyqyqwgjhz, dnmkdyqyzdgjhz, dnmkdyqyyzgjhz, dycjsl, wdcjsl, didodi0, didodi1, didodi2, didodi3, didodi4, didodi5, didodi6, didodi7, didodi8, didodi9, didodi10, didodi11, didodi12, kttxsl, create_by, create_time, update_by, update_time, remark from ems_stack_alarm_data
</sql>
<select id="selectEmsStackAlarmDataList" parameterType="EmsStackAlarmData" resultMap="EmsStackAlarmDataResult">
<include refid="selectEmsStackAlarmDataVo"/>
<where>
<if test="dataTimestamp != null "> and data_timestamp = #{dataTimestamp}</if>
<if test="siteId != null and siteId != ''"> and site_id = #{siteId}</if>
<if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
<if test="bmsgzzt != null "> and bmsgzzt = #{bmsgzzt}</if>
<if test="jczt != null "> and jczt = #{jczt}</if>
<if test="jfzt != null "> and jfzt = #{jfzt}</if>
<if test="dngzddyqyqdgjhz != null "> and dngzddyqyqdgjhz = #{dngzddyqyqdgjhz}</if>
<if test="dngzddyqyzdgjhz != null "> and dngzddyqyzdgjhz = #{dngzddyqyzdgjhz}</if>
<if test="dngzddyqyzzdgjhz != null "> and dngzddyqyzzdgjhz = #{dngzddyqyzzdgjhz}</if>
<if test="dngzddygyqdgjhz != null "> and dngzddygyqdgjhz = #{dngzddygyqdgjhz}</if>
<if test="dngzddygyzdgjhz != null "> and dngzddygyzdgjhz = #{dngzddygyzdgjhz}</if>
<if test="dngzddygyzzdgjhz != null "> and dngzddygyzzdgjhz = #{dngzddygyzzdgjhz}</if>
<if test="dngzdglqdgjhz != null "> and dngzdglqdgjhz = #{dngzdglqdgjhz}</if>
<if test="dngzdglzdgjhz != null "> and dngzdglzdgjhz = #{dngzdglzdgjhz}</if>
<if test="dngzdglzzdgjhz != null "> and dngzdglzzdgjhz = #{dngzdglzzdgjhz}</if>
<if test="dngzjydzdqdgjhz != null "> and dngzjydzdqdgjhz = #{dngzjydzdqdgjhz}</if>
<if test="dngzjydzdzdgjhz != null "> and dngzjydzdzdgjhz = #{dngzjydzdzdgjhz}</if>
<if test="dngzjydzdzzdgjhz != null "> and dngzjydzdzzdgjhz = #{dngzjydzdzzdgjhz}</if>
<if test="dngzmkqwdqdgjhz != null "> and dngzmkqwdqdgjhz = #{dngzmkqwdqdgjhz}</if>
<if test="dngzmkqwdzdgjhz != null "> and dngzmkqwdzdgjhz = #{dngzmkqwdzdgjhz}</if>
<if test="dngzmkqwdzzdgjhz != null "> and dngzmkqwdzzdgjhz = #{dngzmkqwdzzdgjhz}</if>
<if test="dngzmkgwdqdgjhz != null "> and dngzmkgwdqdgjhz = #{dngzmkgwdqdgjhz}</if>
<if test="dngzmkgwdzdgjhz != null "> and dngzmkgwdzdgjhz = #{dngzmkgwdzdgjhz}</if>
<if test="dngzmkgwdzzdgjhz != null "> and dngzmkgwdzzdgjhz = #{dngzmkgwdzzdgjhz}</if>
<if test="dngdtgyqwgjhz != null "> and dngdtgyqwgjhz = #{dngdtgyqwgjhz}</if>
<if test="dngdtgyzdgjhz != null "> and dngdtgyzdgjhz = #{dngdtgyzdgjhz}</if>
<if test="dngdtgyyzgjhz != null "> and dngdtgyyzgjhz = #{dngdtgyyzgjhz}</if>
<if test="dngdtqyqwgjhz != null "> and dngdtqyqwgjhz = #{dngdtqyqwgjhz}</if>
<if test="dngdtqyzdgjhz != null "> and dngdtqyzdgjhz = #{dngdtqyzdgjhz}</if>
<if test="dngdtqyyzgjhz != null "> and dngdtqyyzgjhz = #{dngdtqyyzgjhz}</if>
<if test="dngdtycqwgjhz != null "> and dngdtycqwgjhz = #{dngdtycqwgjhz}</if>
<if test="dngdtyczdgjhz != null "> and dngdtyczdgjhz = #{dngdtyczdgjhz}</if>
<if test="dngdtycyzgjhz != null "> and dngdtycyzgjhz = #{dngdtycyzgjhz}</if>
<if test="dngdtqwqwgjhz != null "> and dngdtqwqwgjhz = #{dngdtqwqwgjhz}</if>
<if test="dngdtqwzdgjhz != null "> and dngdtqwzdgjhz = #{dngdtqwzdgjhz}</if>
<if test="dngdtqwyzgjhz != null "> and dngdtqwyzgjhz = #{dngdtqwyzgjhz}</if>
<if test="dngdtgwqwgjhz != null "> and dngdtgwqwgjhz = #{dngdtgwqwgjhz}</if>
<if test="dngdtgwzdgjhz != null "> and dngdtgwzdgjhz = #{dngdtgwzdgjhz}</if>
<if test="dngdtgwyzgjhz != null "> and dngdtgwyzgjhz = #{dngdtgwyzgjhz}</if>
<if test="dngdtwcqwgjhz != null "> and dngdtwcqwgjhz = #{dngdtwcqwgjhz}</if>
<if test="dngdtwczdgjhz != null "> and dngdtwczdgjhz = #{dngdtwczdgjhz}</if>
<if test="dngdtwcyzgjhz != null "> and dngdtwcyzgjhz = #{dngdtwcyzgjhz}</if>
<if test="dtsocdqwgjhz != null "> and dtsocdqwgjhz = #{dtsocdqwgjhz}</if>
<if test="dtsocdzdgjhz != null "> and dtsocdzdgjhz = #{dtsocdzdgjhz}</if>
<if test="dtsocdyzgjhz != null "> and dtsocdyzgjhz = #{dtsocdyzgjhz}</if>
<if test="dtsocgqwgjhz != null "> and dtsocgqwgjhz = #{dtsocgqwgjhz}</if>
<if test="dtsocgzdgjhz != null "> and dtsocgzdgjhz = #{dtsocgzdgjhz}</if>
<if test="dtsocgyzgjhz != null "> and dtsocgyzgjhz = #{dtsocgyzgjhz}</if>
<if test="dtsohdqwgjhz != null "> and dtsohdqwgjhz = #{dtsohdqwgjhz}</if>
<if test="dtsohdzdgjhz != null "> and dtsohdzdgjhz = #{dtsohdzdgjhz}</if>
<if test="dtsohdyzgjhz != null "> and dtsohdyzgjhz = #{dtsohdyzgjhz}</if>
<if test="dtsohgqwgjhz != null "> and dtsohgqwgjhz = #{dtsohgqwgjhz}</if>
<if test="dtsohgzdgjhz != null "> and dtsohgzdgjhz = #{dtsohgzdgjhz}</if>
<if test="dtsohgyzgjhz != null "> and dtsohgyzgjhz = #{dtsohgyzgjhz}</if>
<if test="dngzkslhz != null "> and dngzkslhz = #{dngzkslhz}</if>
<if test="dngckslgjhz != null "> and dngckslgjhz = #{dngckslgjhz}</if>
<if test="dngzdyyc != null "> and dngzdyyc = #{dngzdyyc}</if>
<if test="dnjcqdkyc != null "> and dnjcqdkyc = #{dnjcqdkyc}</if>
<if test="dnjcqbhyc != null "> and dnjcqbhyc = #{dnjcqbhyc}</if>
<if test="cdjz != null "> and cdjz = #{cdjz}</if>
<if test="fdjz != null "> and fdjz = #{fdjz}</if>
<if test="bmsxtgjhz != null "> and bmsxtgjhz = #{bmsxtgjhz}</if>
<if test="bmsxtgzhz != null "> and bmsxtgzhz = #{bmsxtgzhz}</if>
<if test="srin0 != null "> and srin0 = #{srin0}</if>
<if test="srin1 != null "> and srin1 = #{srin1}</if>
<if test="srin2 != null "> and srin2 = #{srin2}</if>
<if test="srin3 != null "> and srin3 = #{srin3}</if>
<if test="yl1 != null "> and yl1 = #{yl1}</if>
<if test="yl2 != null "> and yl2 = #{yl2}</if>
<if test="yl3 != null "> and yl3 = #{yl3}</if>
<if test="yl4 != null "> and yl4 = #{yl4}</if>
<if test="yl5 != null "> and yl5 = #{yl5}</if>
<if test="yl6 != null "> and yl6 = #{yl6}</if>
<if test="yl7 != null "> and yl7 = #{yl7}</if>
<if test="yl8 != null "> and yl8 = #{yl8}</if>
<if test="dngdzgwqwgjhz != null "> and dngdzgwqwgjhz = #{dngdzgwqwgjhz}</if>
<if test="dngdzgwzdgjhz != null "> and dngdzgwzdgjhz = #{dngdzgwzdgjhz}</if>
<if test="dngdzgwzzdgjhz != null "> and dngdzgwzzdgjhz = #{dngdzgwzzdgjhz}</if>
<if test="dnmkdygyqwgjhz != null "> and dnmkdygyqwgjhz = #{dnmkdygyqwgjhz}</if>
<if test="dnmkdygyzdgjhz != null "> and dnmkdygyzdgjhz = #{dnmkdygyzdgjhz}</if>
<if test="dnmkdygyyzgjhz != null "> and dnmkdygyyzgjhz = #{dnmkdygyyzgjhz}</if>
<if test="dnmkdyqyqwgjhz != null "> and dnmkdyqyqwgjhz = #{dnmkdyqyqwgjhz}</if>
<if test="dnmkdyqyzdgjhz != null "> and dnmkdyqyzdgjhz = #{dnmkdyqyzdgjhz}</if>
<if test="dnmkdyqyyzgjhz != null "> and dnmkdyqyyzgjhz = #{dnmkdyqyyzgjhz}</if>
<if test="dycjsl != null "> and dycjsl = #{dycjsl}</if>
<if test="wdcjsl != null "> and wdcjsl = #{wdcjsl}</if>
<if test="didodi0 != null "> and didodi0 = #{didodi0}</if>
<if test="didodi1 != null "> and didodi1 = #{didodi1}</if>
<if test="didodi2 != null "> and didodi2 = #{didodi2}</if>
<if test="didodi3 != null "> and didodi3 = #{didodi3}</if>
<if test="didodi4 != null "> and didodi4 = #{didodi4}</if>
<if test="didodi5 != null "> and didodi5 = #{didodi5}</if>
<if test="didodi6 != null "> and didodi6 = #{didodi6}</if>
<if test="didodi7 != null "> and didodi7 = #{didodi7}</if>
<if test="didodi8 != null "> and didodi8 = #{didodi8}</if>
<if test="didodi9 != null "> and didodi9 = #{didodi9}</if>
<if test="didodi10 != null "> and didodi10 = #{didodi10}</if>
<if test="didodi11 != null "> and didodi11 = #{didodi11}</if>
<if test="didodi12 != null "> and didodi12 = #{didodi12}</if>
<if test="kttxsl != null "> and kttxsl = #{kttxsl}</if>
</where>
</select>
<select id="selectEmsStackAlarmDataById" parameterType="Long" resultMap="EmsStackAlarmDataResult">
<include refid="selectEmsStackAlarmDataVo"/>
where id = #{id}
</select>
<insert id="insertEmsStackAlarmData" parameterType="EmsStackAlarmData" useGeneratedKeys="true" keyProperty="id">
insert into ems_stack_alarm_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="dataTimestamp != null">data_timestamp,</if>
<if test="siteId != null and siteId != ''">site_id,</if>
<if test="deviceId != null and deviceId != ''">device_id,</if>
<if test="bmsgzzt != null">bmsgzzt,</if>
<if test="jczt != null">jczt,</if>
<if test="jfzt != null">jfzt,</if>
<if test="dngzddyqyqdgjhz != null">dngzddyqyqdgjhz,</if>
<if test="dngzddyqyzdgjhz != null">dngzddyqyzdgjhz,</if>
<if test="dngzddyqyzzdgjhz != null">dngzddyqyzzdgjhz,</if>
<if test="dngzddygyqdgjhz != null">dngzddygyqdgjhz,</if>
<if test="dngzddygyzdgjhz != null">dngzddygyzdgjhz,</if>
<if test="dngzddygyzzdgjhz != null">dngzddygyzzdgjhz,</if>
<if test="dngzdglqdgjhz != null">dngzdglqdgjhz,</if>
<if test="dngzdglzdgjhz != null">dngzdglzdgjhz,</if>
<if test="dngzdglzzdgjhz != null">dngzdglzzdgjhz,</if>
<if test="dngzjydzdqdgjhz != null">dngzjydzdqdgjhz,</if>
<if test="dngzjydzdzdgjhz != null">dngzjydzdzdgjhz,</if>
<if test="dngzjydzdzzdgjhz != null">dngzjydzdzzdgjhz,</if>
<if test="dngzmkqwdqdgjhz != null">dngzmkqwdqdgjhz,</if>
<if test="dngzmkqwdzdgjhz != null">dngzmkqwdzdgjhz,</if>
<if test="dngzmkqwdzzdgjhz != null">dngzmkqwdzzdgjhz,</if>
<if test="dngzmkgwdqdgjhz != null">dngzmkgwdqdgjhz,</if>
<if test="dngzmkgwdzdgjhz != null">dngzmkgwdzdgjhz,</if>
<if test="dngzmkgwdzzdgjhz != null">dngzmkgwdzzdgjhz,</if>
<if test="dngdtgyqwgjhz != null">dngdtgyqwgjhz,</if>
<if test="dngdtgyzdgjhz != null">dngdtgyzdgjhz,</if>
<if test="dngdtgyyzgjhz != null">dngdtgyyzgjhz,</if>
<if test="dngdtqyqwgjhz != null">dngdtqyqwgjhz,</if>
<if test="dngdtqyzdgjhz != null">dngdtqyzdgjhz,</if>
<if test="dngdtqyyzgjhz != null">dngdtqyyzgjhz,</if>
<if test="dngdtycqwgjhz != null">dngdtycqwgjhz,</if>
<if test="dngdtyczdgjhz != null">dngdtyczdgjhz,</if>
<if test="dngdtycyzgjhz != null">dngdtycyzgjhz,</if>
<if test="dngdtqwqwgjhz != null">dngdtqwqwgjhz,</if>
<if test="dngdtqwzdgjhz != null">dngdtqwzdgjhz,</if>
<if test="dngdtqwyzgjhz != null">dngdtqwyzgjhz,</if>
<if test="dngdtgwqwgjhz != null">dngdtgwqwgjhz,</if>
<if test="dngdtgwzdgjhz != null">dngdtgwzdgjhz,</if>
<if test="dngdtgwyzgjhz != null">dngdtgwyzgjhz,</if>
<if test="dngdtwcqwgjhz != null">dngdtwcqwgjhz,</if>
<if test="dngdtwczdgjhz != null">dngdtwczdgjhz,</if>
<if test="dngdtwcyzgjhz != null">dngdtwcyzgjhz,</if>
<if test="dtsocdqwgjhz != null">dtsocdqwgjhz,</if>
<if test="dtsocdzdgjhz != null">dtsocdzdgjhz,</if>
<if test="dtsocdyzgjhz != null">dtsocdyzgjhz,</if>
<if test="dtsocgqwgjhz != null">dtsocgqwgjhz,</if>
<if test="dtsocgzdgjhz != null">dtsocgzdgjhz,</if>
<if test="dtsocgyzgjhz != null">dtsocgyzgjhz,</if>
<if test="dtsohdqwgjhz != null">dtsohdqwgjhz,</if>
<if test="dtsohdzdgjhz != null">dtsohdzdgjhz,</if>
<if test="dtsohdyzgjhz != null">dtsohdyzgjhz,</if>
<if test="dtsohgqwgjhz != null">dtsohgqwgjhz,</if>
<if test="dtsohgzdgjhz != null">dtsohgzdgjhz,</if>
<if test="dtsohgyzgjhz != null">dtsohgyzgjhz,</if>
<if test="dngzkslhz != null">dngzkslhz,</if>
<if test="dngckslgjhz != null">dngckslgjhz,</if>
<if test="dngzdyyc != null">dngzdyyc,</if>
<if test="dnjcqdkyc != null">dnjcqdkyc,</if>
<if test="dnjcqbhyc != null">dnjcqbhyc,</if>
<if test="cdjz != null">cdjz,</if>
<if test="fdjz != null">fdjz,</if>
<if test="bmsxtgjhz != null">bmsxtgjhz,</if>
<if test="bmsxtgzhz != null">bmsxtgzhz,</if>
<if test="srin0 != null">srin0,</if>
<if test="srin1 != null">srin1,</if>
<if test="srin2 != null">srin2,</if>
<if test="srin3 != null">srin3,</if>
<if test="yl1 != null">yl1,</if>
<if test="yl2 != null">yl2,</if>
<if test="yl3 != null">yl3,</if>
<if test="yl4 != null">yl4,</if>
<if test="yl5 != null">yl5,</if>
<if test="yl6 != null">yl6,</if>
<if test="yl7 != null">yl7,</if>
<if test="yl8 != null">yl8,</if>
<if test="dngdzgwqwgjhz != null">dngdzgwqwgjhz,</if>
<if test="dngdzgwzdgjhz != null">dngdzgwzdgjhz,</if>
<if test="dngdzgwzzdgjhz != null">dngdzgwzzdgjhz,</if>
<if test="dnmkdygyqwgjhz != null">dnmkdygyqwgjhz,</if>
<if test="dnmkdygyzdgjhz != null">dnmkdygyzdgjhz,</if>
<if test="dnmkdygyyzgjhz != null">dnmkdygyyzgjhz,</if>
<if test="dnmkdyqyqwgjhz != null">dnmkdyqyqwgjhz,</if>
<if test="dnmkdyqyzdgjhz != null">dnmkdyqyzdgjhz,</if>
<if test="dnmkdyqyyzgjhz != null">dnmkdyqyyzgjhz,</if>
<if test="dycjsl != null">dycjsl,</if>
<if test="wdcjsl != null">wdcjsl,</if>
<if test="didodi0 != null">didodi0,</if>
<if test="didodi1 != null">didodi1,</if>
<if test="didodi2 != null">didodi2,</if>
<if test="didodi3 != null">didodi3,</if>
<if test="didodi4 != null">didodi4,</if>
<if test="didodi5 != null">didodi5,</if>
<if test="didodi6 != null">didodi6,</if>
<if test="didodi7 != null">didodi7,</if>
<if test="didodi8 != null">didodi8,</if>
<if test="didodi9 != null">didodi9,</if>
<if test="didodi10 != null">didodi10,</if>
<if test="didodi11 != null">didodi11,</if>
<if test="didodi12 != null">didodi12,</if>
<if test="kttxsl != null">kttxsl,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="dataTimestamp != null">#{dataTimestamp},</if>
<if test="siteId != null and siteId != ''">#{siteId},</if>
<if test="deviceId != null and deviceId != ''">#{deviceId},</if>
<if test="bmsgzzt != null">#{bmsgzzt},</if>
<if test="jczt != null">#{jczt},</if>
<if test="jfzt != null">#{jfzt},</if>
<if test="dngzddyqyqdgjhz != null">#{dngzddyqyqdgjhz},</if>
<if test="dngzddyqyzdgjhz != null">#{dngzddyqyzdgjhz},</if>
<if test="dngzddyqyzzdgjhz != null">#{dngzddyqyzzdgjhz},</if>
<if test="dngzddygyqdgjhz != null">#{dngzddygyqdgjhz},</if>
<if test="dngzddygyzdgjhz != null">#{dngzddygyzdgjhz},</if>
<if test="dngzddygyzzdgjhz != null">#{dngzddygyzzdgjhz},</if>
<if test="dngzdglqdgjhz != null">#{dngzdglqdgjhz},</if>
<if test="dngzdglzdgjhz != null">#{dngzdglzdgjhz},</if>
<if test="dngzdglzzdgjhz != null">#{dngzdglzzdgjhz},</if>
<if test="dngzjydzdqdgjhz != null">#{dngzjydzdqdgjhz},</if>
<if test="dngzjydzdzdgjhz != null">#{dngzjydzdzdgjhz},</if>
<if test="dngzjydzdzzdgjhz != null">#{dngzjydzdzzdgjhz},</if>
<if test="dngzmkqwdqdgjhz != null">#{dngzmkqwdqdgjhz},</if>
<if test="dngzmkqwdzdgjhz != null">#{dngzmkqwdzdgjhz},</if>
<if test="dngzmkqwdzzdgjhz != null">#{dngzmkqwdzzdgjhz},</if>
<if test="dngzmkgwdqdgjhz != null">#{dngzmkgwdqdgjhz},</if>
<if test="dngzmkgwdzdgjhz != null">#{dngzmkgwdzdgjhz},</if>
<if test="dngzmkgwdzzdgjhz != null">#{dngzmkgwdzzdgjhz},</if>
<if test="dngdtgyqwgjhz != null">#{dngdtgyqwgjhz},</if>
<if test="dngdtgyzdgjhz != null">#{dngdtgyzdgjhz},</if>
<if test="dngdtgyyzgjhz != null">#{dngdtgyyzgjhz},</if>
<if test="dngdtqyqwgjhz != null">#{dngdtqyqwgjhz},</if>
<if test="dngdtqyzdgjhz != null">#{dngdtqyzdgjhz},</if>
<if test="dngdtqyyzgjhz != null">#{dngdtqyyzgjhz},</if>
<if test="dngdtycqwgjhz != null">#{dngdtycqwgjhz},</if>
<if test="dngdtyczdgjhz != null">#{dngdtyczdgjhz},</if>
<if test="dngdtycyzgjhz != null">#{dngdtycyzgjhz},</if>
<if test="dngdtqwqwgjhz != null">#{dngdtqwqwgjhz},</if>
<if test="dngdtqwzdgjhz != null">#{dngdtqwzdgjhz},</if>
<if test="dngdtqwyzgjhz != null">#{dngdtqwyzgjhz},</if>
<if test="dngdtgwqwgjhz != null">#{dngdtgwqwgjhz},</if>
<if test="dngdtgwzdgjhz != null">#{dngdtgwzdgjhz},</if>
<if test="dngdtgwyzgjhz != null">#{dngdtgwyzgjhz},</if>
<if test="dngdtwcqwgjhz != null">#{dngdtwcqwgjhz},</if>
<if test="dngdtwczdgjhz != null">#{dngdtwczdgjhz},</if>
<if test="dngdtwcyzgjhz != null">#{dngdtwcyzgjhz},</if>
<if test="dtsocdqwgjhz != null">#{dtsocdqwgjhz},</if>
<if test="dtsocdzdgjhz != null">#{dtsocdzdgjhz},</if>
<if test="dtsocdyzgjhz != null">#{dtsocdyzgjhz},</if>
<if test="dtsocgqwgjhz != null">#{dtsocgqwgjhz},</if>
<if test="dtsocgzdgjhz != null">#{dtsocgzdgjhz},</if>
<if test="dtsocgyzgjhz != null">#{dtsocgyzgjhz},</if>
<if test="dtsohdqwgjhz != null">#{dtsohdqwgjhz},</if>
<if test="dtsohdzdgjhz != null">#{dtsohdzdgjhz},</if>
<if test="dtsohdyzgjhz != null">#{dtsohdyzgjhz},</if>
<if test="dtsohgqwgjhz != null">#{dtsohgqwgjhz},</if>
<if test="dtsohgzdgjhz != null">#{dtsohgzdgjhz},</if>
<if test="dtsohgyzgjhz != null">#{dtsohgyzgjhz},</if>
<if test="dngzkslhz != null">#{dngzkslhz},</if>
<if test="dngckslgjhz != null">#{dngckslgjhz},</if>
<if test="dngzdyyc != null">#{dngzdyyc},</if>
<if test="dnjcqdkyc != null">#{dnjcqdkyc},</if>
<if test="dnjcqbhyc != null">#{dnjcqbhyc},</if>
<if test="cdjz != null">#{cdjz},</if>
<if test="fdjz != null">#{fdjz},</if>
<if test="bmsxtgjhz != null">#{bmsxtgjhz},</if>
<if test="bmsxtgzhz != null">#{bmsxtgzhz},</if>
<if test="srin0 != null">#{srin0},</if>
<if test="srin1 != null">#{srin1},</if>
<if test="srin2 != null">#{srin2},</if>
<if test="srin3 != null">#{srin3},</if>
<if test="yl1 != null">#{yl1},</if>
<if test="yl2 != null">#{yl2},</if>
<if test="yl3 != null">#{yl3},</if>
<if test="yl4 != null">#{yl4},</if>
<if test="yl5 != null">#{yl5},</if>
<if test="yl6 != null">#{yl6},</if>
<if test="yl7 != null">#{yl7},</if>
<if test="yl8 != null">#{yl8},</if>
<if test="dngdzgwqwgjhz != null">#{dngdzgwqwgjhz},</if>
<if test="dngdzgwzdgjhz != null">#{dngdzgwzdgjhz},</if>
<if test="dngdzgwzzdgjhz != null">#{dngdzgwzzdgjhz},</if>
<if test="dnmkdygyqwgjhz != null">#{dnmkdygyqwgjhz},</if>
<if test="dnmkdygyzdgjhz != null">#{dnmkdygyzdgjhz},</if>
<if test="dnmkdygyyzgjhz != null">#{dnmkdygyyzgjhz},</if>
<if test="dnmkdyqyqwgjhz != null">#{dnmkdyqyqwgjhz},</if>
<if test="dnmkdyqyzdgjhz != null">#{dnmkdyqyzdgjhz},</if>
<if test="dnmkdyqyyzgjhz != null">#{dnmkdyqyyzgjhz},</if>
<if test="dycjsl != null">#{dycjsl},</if>
<if test="wdcjsl != null">#{wdcjsl},</if>
<if test="didodi0 != null">#{didodi0},</if>
<if test="didodi1 != null">#{didodi1},</if>
<if test="didodi2 != null">#{didodi2},</if>
<if test="didodi3 != null">#{didodi3},</if>
<if test="didodi4 != null">#{didodi4},</if>
<if test="didodi5 != null">#{didodi5},</if>
<if test="didodi6 != null">#{didodi6},</if>
<if test="didodi7 != null">#{didodi7},</if>
<if test="didodi8 != null">#{didodi8},</if>
<if test="didodi9 != null">#{didodi9},</if>
<if test="didodi10 != null">#{didodi10},</if>
<if test="didodi11 != null">#{didodi11},</if>
<if test="didodi12 != null">#{didodi12},</if>
<if test="kttxsl != null">#{kttxsl},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateEmsStackAlarmData" parameterType="EmsStackAlarmData">
update ems_stack_alarm_data
<trim prefix="SET" suffixOverrides=",">
<if test="dataTimestamp != null">data_timestamp = #{dataTimestamp},</if>
<if test="siteId != null and siteId != ''">site_id = #{siteId},</if>
<if test="deviceId != null and deviceId != ''">device_id = #{deviceId},</if>
<if test="bmsgzzt != null">bmsgzzt = #{bmsgzzt},</if>
<if test="jczt != null">jczt = #{jczt},</if>
<if test="jfzt != null">jfzt = #{jfzt},</if>
<if test="dngzddyqyqdgjhz != null">dngzddyqyqdgjhz = #{dngzddyqyqdgjhz},</if>
<if test="dngzddyqyzdgjhz != null">dngzddyqyzdgjhz = #{dngzddyqyzdgjhz},</if>
<if test="dngzddyqyzzdgjhz != null">dngzddyqyzzdgjhz = #{dngzddyqyzzdgjhz},</if>
<if test="dngzddygyqdgjhz != null">dngzddygyqdgjhz = #{dngzddygyqdgjhz},</if>
<if test="dngzddygyzdgjhz != null">dngzddygyzdgjhz = #{dngzddygyzdgjhz},</if>
<if test="dngzddygyzzdgjhz != null">dngzddygyzzdgjhz = #{dngzddygyzzdgjhz},</if>
<if test="dngzdglqdgjhz != null">dngzdglqdgjhz = #{dngzdglqdgjhz},</if>
<if test="dngzdglzdgjhz != null">dngzdglzdgjhz = #{dngzdglzdgjhz},</if>
<if test="dngzdglzzdgjhz != null">dngzdglzzdgjhz = #{dngzdglzzdgjhz},</if>
<if test="dngzjydzdqdgjhz != null">dngzjydzdqdgjhz = #{dngzjydzdqdgjhz},</if>
<if test="dngzjydzdzdgjhz != null">dngzjydzdzdgjhz = #{dngzjydzdzdgjhz},</if>
<if test="dngzjydzdzzdgjhz != null">dngzjydzdzzdgjhz = #{dngzjydzdzzdgjhz},</if>
<if test="dngzmkqwdqdgjhz != null">dngzmkqwdqdgjhz = #{dngzmkqwdqdgjhz},</if>
<if test="dngzmkqwdzdgjhz != null">dngzmkqwdzdgjhz = #{dngzmkqwdzdgjhz},</if>
<if test="dngzmkqwdzzdgjhz != null">dngzmkqwdzzdgjhz = #{dngzmkqwdzzdgjhz},</if>
<if test="dngzmkgwdqdgjhz != null">dngzmkgwdqdgjhz = #{dngzmkgwdqdgjhz},</if>
<if test="dngzmkgwdzdgjhz != null">dngzmkgwdzdgjhz = #{dngzmkgwdzdgjhz},</if>
<if test="dngzmkgwdzzdgjhz != null">dngzmkgwdzzdgjhz = #{dngzmkgwdzzdgjhz},</if>
<if test="dngdtgyqwgjhz != null">dngdtgyqwgjhz = #{dngdtgyqwgjhz},</if>
<if test="dngdtgyzdgjhz != null">dngdtgyzdgjhz = #{dngdtgyzdgjhz},</if>
<if test="dngdtgyyzgjhz != null">dngdtgyyzgjhz = #{dngdtgyyzgjhz},</if>
<if test="dngdtqyqwgjhz != null">dngdtqyqwgjhz = #{dngdtqyqwgjhz},</if>
<if test="dngdtqyzdgjhz != null">dngdtqyzdgjhz = #{dngdtqyzdgjhz},</if>
<if test="dngdtqyyzgjhz != null">dngdtqyyzgjhz = #{dngdtqyyzgjhz},</if>
<if test="dngdtycqwgjhz != null">dngdtycqwgjhz = #{dngdtycqwgjhz},</if>
<if test="dngdtyczdgjhz != null">dngdtyczdgjhz = #{dngdtyczdgjhz},</if>
<if test="dngdtycyzgjhz != null">dngdtycyzgjhz = #{dngdtycyzgjhz},</if>
<if test="dngdtqwqwgjhz != null">dngdtqwqwgjhz = #{dngdtqwqwgjhz},</if>
<if test="dngdtqwzdgjhz != null">dngdtqwzdgjhz = #{dngdtqwzdgjhz},</if>
<if test="dngdtqwyzgjhz != null">dngdtqwyzgjhz = #{dngdtqwyzgjhz},</if>
<if test="dngdtgwqwgjhz != null">dngdtgwqwgjhz = #{dngdtgwqwgjhz},</if>
<if test="dngdtgwzdgjhz != null">dngdtgwzdgjhz = #{dngdtgwzdgjhz},</if>
<if test="dngdtgwyzgjhz != null">dngdtgwyzgjhz = #{dngdtgwyzgjhz},</if>
<if test="dngdtwcqwgjhz != null">dngdtwcqwgjhz = #{dngdtwcqwgjhz},</if>
<if test="dngdtwczdgjhz != null">dngdtwczdgjhz = #{dngdtwczdgjhz},</if>
<if test="dngdtwcyzgjhz != null">dngdtwcyzgjhz = #{dngdtwcyzgjhz},</if>
<if test="dtsocdqwgjhz != null">dtsocdqwgjhz = #{dtsocdqwgjhz},</if>
<if test="dtsocdzdgjhz != null">dtsocdzdgjhz = #{dtsocdzdgjhz},</if>
<if test="dtsocdyzgjhz != null">dtsocdyzgjhz = #{dtsocdyzgjhz},</if>
<if test="dtsocgqwgjhz != null">dtsocgqwgjhz = #{dtsocgqwgjhz},</if>
<if test="dtsocgzdgjhz != null">dtsocgzdgjhz = #{dtsocgzdgjhz},</if>
<if test="dtsocgyzgjhz != null">dtsocgyzgjhz = #{dtsocgyzgjhz},</if>
<if test="dtsohdqwgjhz != null">dtsohdqwgjhz = #{dtsohdqwgjhz},</if>
<if test="dtsohdzdgjhz != null">dtsohdzdgjhz = #{dtsohdzdgjhz},</if>
<if test="dtsohdyzgjhz != null">dtsohdyzgjhz = #{dtsohdyzgjhz},</if>
<if test="dtsohgqwgjhz != null">dtsohgqwgjhz = #{dtsohgqwgjhz},</if>
<if test="dtsohgzdgjhz != null">dtsohgzdgjhz = #{dtsohgzdgjhz},</if>
<if test="dtsohgyzgjhz != null">dtsohgyzgjhz = #{dtsohgyzgjhz},</if>
<if test="dngzkslhz != null">dngzkslhz = #{dngzkslhz},</if>
<if test="dngckslgjhz != null">dngckslgjhz = #{dngckslgjhz},</if>
<if test="dngzdyyc != null">dngzdyyc = #{dngzdyyc},</if>
<if test="dnjcqdkyc != null">dnjcqdkyc = #{dnjcqdkyc},</if>
<if test="dnjcqbhyc != null">dnjcqbhyc = #{dnjcqbhyc},</if>
<if test="cdjz != null">cdjz = #{cdjz},</if>
<if test="fdjz != null">fdjz = #{fdjz},</if>
<if test="bmsxtgjhz != null">bmsxtgjhz = #{bmsxtgjhz},</if>
<if test="bmsxtgzhz != null">bmsxtgzhz = #{bmsxtgzhz},</if>
<if test="srin0 != null">srin0 = #{srin0},</if>
<if test="srin1 != null">srin1 = #{srin1},</if>
<if test="srin2 != null">srin2 = #{srin2},</if>
<if test="srin3 != null">srin3 = #{srin3},</if>
<if test="yl1 != null">yl1 = #{yl1},</if>
<if test="yl2 != null">yl2 = #{yl2},</if>
<if test="yl3 != null">yl3 = #{yl3},</if>
<if test="yl4 != null">yl4 = #{yl4},</if>
<if test="yl5 != null">yl5 = #{yl5},</if>
<if test="yl6 != null">yl6 = #{yl6},</if>
<if test="yl7 != null">yl7 = #{yl7},</if>
<if test="yl8 != null">yl8 = #{yl8},</if>
<if test="dngdzgwqwgjhz != null">dngdzgwqwgjhz = #{dngdzgwqwgjhz},</if>
<if test="dngdzgwzdgjhz != null">dngdzgwzdgjhz = #{dngdzgwzdgjhz},</if>
<if test="dngdzgwzzdgjhz != null">dngdzgwzzdgjhz = #{dngdzgwzzdgjhz},</if>
<if test="dnmkdygyqwgjhz != null">dnmkdygyqwgjhz = #{dnmkdygyqwgjhz},</if>
<if test="dnmkdygyzdgjhz != null">dnmkdygyzdgjhz = #{dnmkdygyzdgjhz},</if>
<if test="dnmkdygyyzgjhz != null">dnmkdygyyzgjhz = #{dnmkdygyyzgjhz},</if>
<if test="dnmkdyqyqwgjhz != null">dnmkdyqyqwgjhz = #{dnmkdyqyqwgjhz},</if>
<if test="dnmkdyqyzdgjhz != null">dnmkdyqyzdgjhz = #{dnmkdyqyzdgjhz},</if>
<if test="dnmkdyqyyzgjhz != null">dnmkdyqyyzgjhz = #{dnmkdyqyyzgjhz},</if>
<if test="dycjsl != null">dycjsl = #{dycjsl},</if>
<if test="wdcjsl != null">wdcjsl = #{wdcjsl},</if>
<if test="didodi0 != null">didodi0 = #{didodi0},</if>
<if test="didodi1 != null">didodi1 = #{didodi1},</if>
<if test="didodi2 != null">didodi2 = #{didodi2},</if>
<if test="didodi3 != null">didodi3 = #{didodi3},</if>
<if test="didodi4 != null">didodi4 = #{didodi4},</if>
<if test="didodi5 != null">didodi5 = #{didodi5},</if>
<if test="didodi6 != null">didodi6 = #{didodi6},</if>
<if test="didodi7 != null">didodi7 = #{didodi7},</if>
<if test="didodi8 != null">didodi8 = #{didodi8},</if>
<if test="didodi9 != null">didodi9 = #{didodi9},</if>
<if test="didodi10 != null">didodi10 = #{didodi10},</if>
<if test="didodi11 != null">didodi11 = #{didodi11},</if>
<if test="didodi12 != null">didodi12 = #{didodi12},</if>
<if test="kttxsl != null">kttxsl = #{kttxsl},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEmsStackAlarmDataById" parameterType="Long">
delete from ems_stack_alarm_data where id = #{id}
</delete>
<delete id="deleteEmsStackAlarmDataByIds" parameterType="String">
delete from ems_stack_alarm_data where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>