增加基坑监测

dev_xds
haha 2024-08-14 01:13:37 +08:00
parent d926e43f93
commit 4bfd46889c
88 changed files with 12155 additions and 9 deletions

View File

@ -24,7 +24,7 @@ spring:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: prod
active: druid
# 文件上传
servlet:
multipart:

View File

@ -0,0 +1,112 @@
package com.ruoyi.quartz.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* --- dev_pitmonit_southsmos_dev_sp
*
* @author ruoyi
* @date 2024-08-11
*/
public class DevPitmonitSouthsmosDevSp extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 配置ID */
@Excel(name = "配置ID")
private Long cfgId;
/** 设备ID */
@Excel(name = "设备ID")
private Long devId;
/** 测点ID */
@Excel(name = "测点ID")
private Long spId;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long state;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgId(Long cfgId)
{
this.cfgId = cfgId;
}
public Long getCfgId()
{
return cfgId;
}
public void setDevId(Long devId)
{
this.devId = devId;
}
public Long getDevId()
{
return devId;
}
public void setSpId(Long spId)
{
this.spId = spId;
}
public Long getSpId()
{
return spId;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgId", getCfgId())
.append("devId", getDevId())
.append("spId", getSpId())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,407 @@
package com.ruoyi.quartz.domain;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* -- dev_pitmonit_southsmos_device
*
* @author ruoyi
* @date 2024-08-11
*/
public class DevPitmonitSouthsmosDevice extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 配置ID */
@Excel(name = "配置ID")
private Long cfgId;
/** 设备ID */
@Excel(name = "设备ID")
private Long devId;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String autoType;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String certUrl;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Date checkDate;
/** 设备名称 */
@Excel(name = "设备名称")
private String devCode;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String devShadow;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String devType;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String devTypeName;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String key;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String manufacturer;
/** 设备名称 */
@Excel(name = "设备名称")
private String name;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long orgId;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String parent;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String parentIds;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String productType;
/** 位置 */
@Excel(name = "位置")
private String position;
/** */
@Excel(name = "")
private String status;
/** 工程ID */
@Excel(name = "工程ID")
private Long structureId;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String structureName;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String typeCategory;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String typeName;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String verifyDate;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long state;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long isDel;
public List<DevPitmonitSouthsmosDevSp> getSpDevices() {
return spDevices;
}
public void setSpDevices(List<DevPitmonitSouthsmosDevSp> spDevices) {
this.spDevices = spDevices;
}
private List<DevPitmonitSouthsmosDevSp> spDevices=new ArrayList<>();
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgId(Long cfgId)
{
this.cfgId = cfgId;
}
public Long getCfgId()
{
return cfgId;
}
public void setDevId(Long devId)
{
this.devId = devId;
}
public Long getDevId()
{
return devId;
}
public void setAutoType(String autoType)
{
this.autoType = autoType;
}
public String getAutoType()
{
return autoType;
}
public void setCertUrl(String certUrl)
{
this.certUrl = certUrl;
}
public String getCertUrl()
{
return certUrl;
}
public void setCheckDate(Date checkDate)
{
this.checkDate = checkDate;
}
public Date getCheckDate()
{
return checkDate;
}
public void setDevCode(String devCode)
{
this.devCode = devCode;
}
public String getDevCode()
{
return devCode;
}
public void setDevShadow(String devShadow)
{
this.devShadow = devShadow;
}
public String getDevShadow()
{
return devShadow;
}
public void setDevType(String devType)
{
this.devType = devType;
}
public String getDevType()
{
return devType;
}
public void setDevTypeName(String devTypeName)
{
this.devTypeName = devTypeName;
}
public String getDevTypeName()
{
return devTypeName;
}
public void setKey(String key)
{
this.key = key;
}
public String getKey()
{
return key;
}
public void setManufacturer(String manufacturer)
{
this.manufacturer = manufacturer;
}
public String getManufacturer()
{
return manufacturer;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setOrgId(Long orgId)
{
this.orgId = orgId;
}
public Long getOrgId()
{
return orgId;
}
public void setParent(String parent)
{
this.parent = parent;
}
public String getParent()
{
return parent;
}
public void setParentIds(String parentIds)
{
this.parentIds = parentIds;
}
public String getParentIds()
{
return parentIds;
}
public void setProductType(String productType)
{
this.productType = productType;
}
public String getProductType()
{
return productType;
}
public void setPosition(String position)
{
this.position = position;
}
public String getPosition()
{
return position;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setStructureId(Long structureId)
{
this.structureId = structureId;
}
public Long getStructureId()
{
return structureId;
}
public void setStructureName(String structureName)
{
this.structureName = structureName;
}
public String getStructureName()
{
return structureName;
}
public void setTypeCategory(String typeCategory)
{
this.typeCategory = typeCategory;
}
public String getTypeCategory()
{
return typeCategory;
}
public void setTypeName(String typeName)
{
this.typeName = typeName;
}
public String getTypeName()
{
return typeName;
}
public void setVerifyDate(String verifyDate)
{
this.verifyDate = verifyDate;
}
public String getVerifyDate()
{
return verifyDate;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgId", getCfgId())
.append("devId", getDevId())
.append("autoType", getAutoType())
.append("certUrl", getCertUrl())
.append("checkDate", getCheckDate())
.append("devCode", getDevCode())
.append("devShadow", getDevShadow())
.append("devType", getDevType())
.append("devTypeName", getDevTypeName())
.append("key", getKey())
.append("manufacturer", getManufacturer())
.append("name", getName())
.append("orgId", getOrgId())
.append("parent", getParent())
.append("parentIds", getParentIds())
.append("productType", getProductType())
.append("position", getPosition())
.append("status", getStatus())
.append("structureId", getStructureId())
.append("structureName", getStructureName())
.append("typeCategory", getTypeCategory())
.append("typeName", getTypeName())
.append("verifyDate", getVerifyDate())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -61,6 +61,10 @@ public class DevPitmonitSouthsmosSurveypoint extends BaseEntity
@Excel(name = "测点名称")
private String name;
/** 位置 */
@Excel(name = "位置")
private String position;
/** 数据来源形式0人工上传1设备 */
@Excel(name = "数据来源形式0人工上传1设备")
private Long dataSource;
@ -173,6 +177,15 @@ public class DevPitmonitSouthsmosSurveypoint extends BaseEntity
{
return name;
}
public void setPosition(String position)
{
this.position = position;
}
public String getPosition()
{
return position;
}
public void setDataSource(Long dataSource)
{
this.dataSource = dataSource;
@ -232,6 +245,7 @@ public class DevPitmonitSouthsmosSurveypoint extends BaseEntity
.append("meNameEn", getMeNameEn())
.append("modifyDate", getModifyDate())
.append("name", getName())
.append("position", getPosition())
.append("dataSource", getDataSource())
.append("createDate", getCreateDate())
.append("status", getStatus())

View File

@ -0,0 +1,61 @@
package com.ruoyi.quartz.mapper;
import java.util.List;
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosDevSp;
/**
* ---Mapper
*
* @author ruoyi
* @date 2024-08-11
*/
public interface DevPitmonitSouthsmosDevSpMapper
{
/**
* ---
*
* @param id ---
* @return ---
*/
public DevPitmonitSouthsmosDevSp selectDevPitmonitSouthsmosDevSpById(Long id);
/**
* ---
*
* @param devPitmonitSouthsmosDevSp ---
* @return ---
*/
public List<DevPitmonitSouthsmosDevSp> selectDevPitmonitSouthsmosDevSpList(DevPitmonitSouthsmosDevSp devPitmonitSouthsmosDevSp);
/**
* ---
*
* @param devPitmonitSouthsmosDevSp ---
* @return
*/
public int insertDevPitmonitSouthsmosDevSp(DevPitmonitSouthsmosDevSp devPitmonitSouthsmosDevSp);
/**
* ---
*
* @param devPitmonitSouthsmosDevSp ---
* @return
*/
public int updateDevPitmonitSouthsmosDevSp(DevPitmonitSouthsmosDevSp devPitmonitSouthsmosDevSp);
/**
* ---
*
* @param id ---
* @return
*/
public int deleteDevPitmonitSouthsmosDevSpById(Long id);
/**
* ---
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosDevSpByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.quartz.mapper;
import java.util.List;
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosDevice;
/**
* --Mapper
*
* @author ruoyi
* @date 2024-08-11
*/
public interface DevPitmonitSouthsmosDeviceMapper
{
/**
* --
*
* @param id --
* @return --
*/
public DevPitmonitSouthsmosDevice selectDevPitmonitSouthsmosDeviceById(Long id);
/**
* --
*
* @param devPitmonitSouthsmosDevice --
* @return --
*/
public List<DevPitmonitSouthsmosDevice> selectDevPitmonitSouthsmosDeviceList(DevPitmonitSouthsmosDevice devPitmonitSouthsmosDevice);
/**
* --
*
* @param devPitmonitSouthsmosDevice --
* @return
*/
public int insertDevPitmonitSouthsmosDevice(DevPitmonitSouthsmosDevice devPitmonitSouthsmosDevice);
/**
* --
*
* @param devPitmonitSouthsmosDevice --
* @return
*/
public int updateDevPitmonitSouthsmosDevice(DevPitmonitSouthsmosDevice devPitmonitSouthsmosDevice);
/**
* --
*
* @param id --
* @return
*/
public int deleteDevPitmonitSouthsmosDeviceById(Long id);
/**
* --
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosDeviceByIds(Long[] ids);
}

View File

@ -0,0 +1,63 @@
package com.ruoyi.quartz.service;
import java.util.List;
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosDevSp;
/**
* ---Service
*
* @author ruoyi
* @date 2024-08-11
*/
public interface IDevPitmonitSouthsmosDevSpService
{
/**
* ---
*
* @param id ---
* @return ---
*/
public DevPitmonitSouthsmosDevSp selectDevPitmonitSouthsmosDevSpById(Long id);
public DevPitmonitSouthsmosDevSp selectDevPitmonitSouthsmosDevSpByDevId(Long devId,Long spId);
/**
* ---
*
* @param devPitmonitSouthsmosDevSp ---
* @return ---
*/
public List<DevPitmonitSouthsmosDevSp> selectDevPitmonitSouthsmosDevSpList(DevPitmonitSouthsmosDevSp devPitmonitSouthsmosDevSp);
/**
* ---
*
* @param devPitmonitSouthsmosDevSp ---
* @return
*/
public int insertDevPitmonitSouthsmosDevSp(DevPitmonitSouthsmosDevSp devPitmonitSouthsmosDevSp);
/**
* ---
*
* @param devPitmonitSouthsmosDevSp ---
* @return
*/
public int updateDevPitmonitSouthsmosDevSp(DevPitmonitSouthsmosDevSp devPitmonitSouthsmosDevSp);
/**
* ---
*
* @param ids ---
* @return
*/
public int deleteDevPitmonitSouthsmosDevSpByIds(Long[] ids);
/**
* ---
*
* @param id ---
* @return
*/
public int deleteDevPitmonitSouthsmosDevSpById(Long id);
public void addDevPitmonitSouthsmosDevSp(DevPitmonitSouthsmosDevSp item);
}

View File

@ -0,0 +1,64 @@
package com.ruoyi.quartz.service;
import java.util.List;
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosDevice;
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
/**
* --Service
*
* @author ruoyi
* @date 2024-08-11
*/
public interface IDevPitmonitSouthsmosDeviceService
{
/**
* --
*
* @param id --
* @return --
*/
public DevPitmonitSouthsmosDevice selectDevPitmonitSouthsmosDeviceById(Long id);
public DevPitmonitSouthsmosDevice selectDevPitmonitSouthsmosDeviceByDevId(Long devId);
/**
* --
*
* @param devPitmonitSouthsmosDevice --
* @return --
*/
public List<DevPitmonitSouthsmosDevice> selectDevPitmonitSouthsmosDeviceList(DevPitmonitSouthsmosDevice devPitmonitSouthsmosDevice);
/**
* --
*
* @param devPitmonitSouthsmosDevice --
* @return
*/
public int insertDevPitmonitSouthsmosDevice(DevPitmonitSouthsmosDevice devPitmonitSouthsmosDevice);
/**
* --
*
* @param devPitmonitSouthsmosDevice --
* @return
*/
public int updateDevPitmonitSouthsmosDevice(DevPitmonitSouthsmosDevice devPitmonitSouthsmosDevice);
/**
* --
*
* @param ids --
* @return
*/
public int deleteDevPitmonitSouthsmosDeviceByIds(Long[] ids);
/**
* --
*
* @param id --
* @return
*/
public int deleteDevPitmonitSouthsmosDeviceById(Long id);
public void addList(List<DevPitmonitSouthsmosDevice> items, SurProjectPitMonitCfg cfg);
}

View File

@ -0,0 +1,121 @@
package com.ruoyi.quartz.service.impl;
import java.util.ArrayList;
import java.util.List;
import cn.hutool.core.util.StrUtil;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosDevSpMapper;
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosDevSp;
import com.ruoyi.quartz.service.IDevPitmonitSouthsmosDevSpService;
import com.ruoyi.common.utils.SecurityUtils;
/**
* ---Service
*
* @author ruoyi
* @date 2024-08-11
*/
@Service
public class DevPitmonitSouthsmosDevSpServiceImpl implements IDevPitmonitSouthsmosDevSpService
{
@Autowired
private DevPitmonitSouthsmosDevSpMapper devPitmonitSouthsmosDevSpMapper;
/**
* ---
*
* @param id ---
* @return ---
*/
@Override
public DevPitmonitSouthsmosDevSp selectDevPitmonitSouthsmosDevSpById(Long id)
{
return devPitmonitSouthsmosDevSpMapper.selectDevPitmonitSouthsmosDevSpById(id);
}
@Override
public DevPitmonitSouthsmosDevSp selectDevPitmonitSouthsmosDevSpByDevId(Long devId, Long spId) {
DevPitmonitSouthsmosDevSp where=new DevPitmonitSouthsmosDevSp();
where.setSpId(spId);
where.setDevId(devId);
List<DevPitmonitSouthsmosDevSp> list=new ArrayList<>();
return list.size()>0?list.get(0):null;
}
/**
* ---
*
* @param devPitmonitSouthsmosDevSp ---
* @return ---
*/
@Override
public List<DevPitmonitSouthsmosDevSp> selectDevPitmonitSouthsmosDevSpList(DevPitmonitSouthsmosDevSp devPitmonitSouthsmosDevSp)
{
return devPitmonitSouthsmosDevSpMapper.selectDevPitmonitSouthsmosDevSpList(devPitmonitSouthsmosDevSp);
}
/**
* ---
*
* @param devPitmonitSouthsmosDevSp ---
* @return
*/
@Override
public int insertDevPitmonitSouthsmosDevSp(DevPitmonitSouthsmosDevSp devPitmonitSouthsmosDevSp)
{
String userName=SecurityUtils.getUsername();
devPitmonitSouthsmosDevSp.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
devPitmonitSouthsmosDevSp.setCreateTime(DateUtils.getNowDate());
devPitmonitSouthsmosDevSp.setIsDel(0l);
return devPitmonitSouthsmosDevSpMapper.insertDevPitmonitSouthsmosDevSp(devPitmonitSouthsmosDevSp);
}
/**
* ---
*
* @param devPitmonitSouthsmosDevSp ---
* @return
*/
@Override
public int updateDevPitmonitSouthsmosDevSp(DevPitmonitSouthsmosDevSp devPitmonitSouthsmosDevSp)
{
String userName=SecurityUtils.getUsername();
devPitmonitSouthsmosDevSp.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
devPitmonitSouthsmosDevSp.setUpdateTime(DateUtils.getNowDate());
return devPitmonitSouthsmosDevSpMapper.updateDevPitmonitSouthsmosDevSp(devPitmonitSouthsmosDevSp);
}
/**
* ---
*
* @param ids ---
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosDevSpByIds(Long[] ids)
{
return devPitmonitSouthsmosDevSpMapper.deleteDevPitmonitSouthsmosDevSpByIds(ids);
}
/**
* ---
*
* @param id ---
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosDevSpById(Long id)
{
return devPitmonitSouthsmosDevSpMapper.deleteDevPitmonitSouthsmosDevSpById(id);
}
@Override
public void addDevPitmonitSouthsmosDevSp(DevPitmonitSouthsmosDevSp item) {
DevPitmonitSouthsmosDevSp old=selectDevPitmonitSouthsmosDevSpByDevId(item.getDevId(),item.getSpId());
if(old==null){
insertDevPitmonitSouthsmosDevSp(item);
}
}
}

View File

@ -0,0 +1,128 @@
package com.ruoyi.quartz.service.impl;
import java.util.List;
import cn.hutool.core.util.StrUtil;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosDevSp;
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
import com.ruoyi.quartz.service.IDevPitmonitSouthsmosDevSpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosDeviceMapper;
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosDevice;
import com.ruoyi.quartz.service.IDevPitmonitSouthsmosDeviceService;
import com.ruoyi.common.utils.SecurityUtils;
/**
* --Service
*
* @author ruoyi
* @date 2024-08-11
*/
@Service
public class DevPitmonitSouthsmosDeviceServiceImpl implements IDevPitmonitSouthsmosDeviceService
{
@Autowired
private DevPitmonitSouthsmosDeviceMapper devPitmonitSouthsmosDeviceMapper;
@Autowired
private IDevPitmonitSouthsmosDevSpService devSpService;
/**
* --
*
* @param id --
* @return --
*/
@Override
public DevPitmonitSouthsmosDevice selectDevPitmonitSouthsmosDeviceById(Long id)
{
return devPitmonitSouthsmosDeviceMapper.selectDevPitmonitSouthsmosDeviceById(id);
}
@Override
public DevPitmonitSouthsmosDevice selectDevPitmonitSouthsmosDeviceByDevId(Long devId) {
DevPitmonitSouthsmosDevice where=new DevPitmonitSouthsmosDevice();
where.setDevId(devId);
List<DevPitmonitSouthsmosDevice> list=selectDevPitmonitSouthsmosDeviceList(where);
return list.size()>0?list.get(0):null;
}
/**
* --
*
* @param devPitmonitSouthsmosDevice --
* @return --
*/
@Override
public List<DevPitmonitSouthsmosDevice> selectDevPitmonitSouthsmosDeviceList(DevPitmonitSouthsmosDevice devPitmonitSouthsmosDevice)
{
return devPitmonitSouthsmosDeviceMapper.selectDevPitmonitSouthsmosDeviceList(devPitmonitSouthsmosDevice);
}
/**
* --
*
* @param devPitmonitSouthsmosDevice --
* @return
*/
@Override
public int insertDevPitmonitSouthsmosDevice(DevPitmonitSouthsmosDevice devPitmonitSouthsmosDevice)
{
String userName=SecurityUtils.getUsername();
devPitmonitSouthsmosDevice.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
devPitmonitSouthsmosDevice.setCreateTime(DateUtils.getNowDate());
devPitmonitSouthsmosDevice.setIsDel(0l);
return devPitmonitSouthsmosDeviceMapper.insertDevPitmonitSouthsmosDevice(devPitmonitSouthsmosDevice);
}
/**
* --
*
* @param devPitmonitSouthsmosDevice --
* @return
*/
@Override
public int updateDevPitmonitSouthsmosDevice(DevPitmonitSouthsmosDevice devPitmonitSouthsmosDevice)
{
String userName=SecurityUtils.getUsername();
devPitmonitSouthsmosDevice.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
devPitmonitSouthsmosDevice.setUpdateTime(DateUtils.getNowDate());
return devPitmonitSouthsmosDeviceMapper.updateDevPitmonitSouthsmosDevice(devPitmonitSouthsmosDevice);
}
/**
* --
*
* @param ids --
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosDeviceByIds(Long[] ids)
{
return devPitmonitSouthsmosDeviceMapper.deleteDevPitmonitSouthsmosDeviceByIds(ids);
}
/**
* --
*
* @param id --
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosDeviceById(Long id)
{
return devPitmonitSouthsmosDeviceMapper.deleteDevPitmonitSouthsmosDeviceById(id);
}
@Override
public void addList(List<DevPitmonitSouthsmosDevice> items, SurProjectPitMonitCfg cfg) {
items.forEach(it->{
it.setCfgId(cfg.getId());
insertDevPitmonitSouthsmosDevice(it);
it.getSpDevices().forEach(item->{
item.setCfgId(cfg.getId());
devSpService.addDevPitmonitSouthsmosDevSp(item);
});
});
}
}

View File

@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosElementItemMapper;
import com.ruoyi.quartz.service.IDevPitmonitSouthsmosElementItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosElementMapper;
@ -24,7 +25,7 @@ public class DevPitmonitSouthsmosElementServiceImpl implements IDevPitmonitSouth
@Autowired
private DevPitmonitSouthsmosElementMapper devPitmonitSouthsmosElementMapper;
@Autowired
private DevPitmonitSouthsmosElementItemMapper elementItemMapper;
private IDevPitmonitSouthsmosElementItemService elementItemService;
/**
* --
*
@ -122,7 +123,8 @@ public class DevPitmonitSouthsmosElementServiceImpl implements IDevPitmonitSouth
}
if(el.getItems()!=null){
el.getItems().forEach(item->{
elementItemMapper.insertDevPitmonitSouthsmosElementItem(item);
item.setCfgId(cfg.getId());
elementItemService.insertDevPitmonitSouthsmosElementItem(item);
});
}
});

View File

@ -27,7 +27,8 @@ public class PitmonitSouthsmosTask {
private IDevPitmonitSouthsmosSurveypointService surveypointService;
@Autowired
private IDevPitmonitSouthsmosThresholdService thresholdService;
@Autowired
private IDevPitmonitSouthsmosDeviceService deviceService;
static String APIBASEURL="https://www.southsmos.com/api/";
/**
@ -35,6 +36,7 @@ public class PitmonitSouthsmosTask {
* 4.
* 5.
* 7.
* 9.
*/
public void syncBaseInfo() {
SurProjectPitMonitCfg cfgWhere=new SurProjectPitMonitCfg();
@ -62,6 +64,9 @@ public class PitmonitSouthsmosTask {
List<DevPitmonitSouthsmosThreshold> thList=getThreshold(""+d.getSpId(),token);
thresholdService.addList(thList,cfg);
});
//9.获取设备
List<DevPitmonitSouthsmosDevice> devList=getDevices(token,orgId);
deviceService.addList(devList,cfg);
});
}
@ -170,10 +175,22 @@ public class PitmonitSouthsmosTask {
//List<DevPitmonitSouthsmosThreshold> thList=getThreshold("53245",token);
//System.out.println(thList);
//8.获取报警信息
List<DevPitmonitSouthsmosAlarm> alarmList=getAlarm(orgId,token,DateUtil.parse("2024-01-01"));
System.out.println(alarmList);
//List<DevPitmonitSouthsmosAlarm> alarmList=getAlarm(orgId,token,DateUtil.parse("2024-01-01"));
//System.out.println(alarmList);
//9.获取设备
List<DevPitmonitSouthsmosDevice> devList=getDevices(token,orgId);
System.out.println(devList);
}
private static List<DevPitmonitSouthsmosDevice> getDevices(String token,String orgId){
String url="instrument/device";
Map<String, Object> params = new HashMap<>();
params.put("structureId",orgId);
String data=getJSON(APIBASEURL+url,token,params);
JSONObject jo=JSON.parseObject(data);
List<DevPitmonitSouthsmosDevice> list=jo.getList("data",DevPitmonitSouthsmosDevice.class);
return list;
}
/**
* 4.
* @param token

View File

@ -0,0 +1,96 @@
<?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.ruoyi.quartz.mapper.DevPitmonitSouthsmosDevSpMapper">
<resultMap type="DevPitmonitSouthsmosDevSp" id="DevPitmonitSouthsmosDevSpResult">
<result property="id" column="id" />
<result property="cfgId" column="cfgId" />
<result property="devId" column="devId" />
<result property="spId" column="spId" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDevPitmonitSouthsmosDevSpVo">
select id, cfgId, devId, spId, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_dev_sp
</sql>
<select id="selectDevPitmonitSouthsmosDevSpList" parameterType="DevPitmonitSouthsmosDevSp" resultMap="DevPitmonitSouthsmosDevSpResult">
<include refid="selectDevPitmonitSouthsmosDevSpVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
<if test="devId != null "> and devId = #{devId}</if>
<if test="spId != null "> and spId = #{spId}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectDevPitmonitSouthsmosDevSpById" parameterType="Long" resultMap="DevPitmonitSouthsmosDevSpResult">
<include refid="selectDevPitmonitSouthsmosDevSpVo"/>
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosDevSp" parameterType="DevPitmonitSouthsmosDevSp" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_dev_sp
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
<if test="devId != null">devId,</if>
<if test="spId != null">spId,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgId != null">#{cfgId},</if>
<if test="devId != null">#{devId},</if>
<if test="spId != null">#{spId},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosDevSp" parameterType="DevPitmonitSouthsmosDevSp">
update dev_pitmonit_southsmos_dev_sp
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>
<if test="devId != null">devId = #{devId},</if>
<if test="spId != null">spId = #{spId},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteDevPitmonitSouthsmosDevSpById" parameterType="Long">
delete from dev_pitmonit_southsmos_dev_sp where id = #{id}
</delete>
<delete id="deleteDevPitmonitSouthsmosDevSpByIds" parameterType="String">
delete from dev_pitmonit_southsmos_dev_sp where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,196 @@
<?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.ruoyi.quartz.mapper.DevPitmonitSouthsmosDeviceMapper">
<resultMap type="DevPitmonitSouthsmosDevice" id="DevPitmonitSouthsmosDeviceResult">
<result property="id" column="id" />
<result property="cfgId" column="cfgId" />
<result property="devId" column="devId" />
<result property="autoType" column="autoType" />
<result property="certUrl" column="certUrl" />
<result property="checkDate" column="checkDate" />
<result property="devCode" column="devCode" />
<result property="devShadow" column="devShadow" />
<result property="devType" column="devType" />
<result property="devTypeName" column="devTypeName" />
<result property="key" column="key" />
<result property="manufacturer" column="manufacturer" />
<result property="name" column="name" />
<result property="orgId" column="orgId" />
<result property="parent" column="parent" />
<result property="parentIds" column="parentIds" />
<result property="productType" column="productType" />
<result property="position" column="position" />
<result property="status" column="status" />
<result property="structureId" column="structureId" />
<result property="structureName" column="structureName" />
<result property="typeCategory" column="typeCategory" />
<result property="typeName" column="typeName" />
<result property="verifyDate" column="verifyDate" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDevPitmonitSouthsmosDeviceVo">
select id, cfgId, devId, autoType, certUrl, checkDate, devCode, devShadow, devType, devTypeName, `key`, manufacturer, name, orgId, parent, parentIds, productType, position, status, structureId, structureName, typeCategory, typeName, verifyDate, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_device
</sql>
<select id="selectDevPitmonitSouthsmosDeviceList" parameterType="DevPitmonitSouthsmosDevice" resultMap="DevPitmonitSouthsmosDeviceResult">
<include refid="selectDevPitmonitSouthsmosDeviceVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
<if test="devId != null "> and devId = #{devId}</if>
<if test="autoType != null and autoType != ''"> and autoType = #{autoType}</if>
<if test="certUrl != null and certUrl != ''"> and certUrl = #{certUrl}</if>
<if test="checkDate != null "> and checkDate = #{checkDate}</if>
<if test="devCode != null and devCode != ''"> and devCode = #{devCode}</if>
<if test="devShadow != null and devShadow != ''"> and devShadow = #{devShadow}</if>
<if test="devType != null and devType != ''"> and devType = #{devType}</if>
<if test="devTypeName != null and devTypeName != ''"> and devTypeName like concat('%', #{devTypeName}, '%')</if>
<if test="key != null and key != ''"> and `key` = #{key}</if>
<if test="manufacturer != null and manufacturer != ''"> and manufacturer = #{manufacturer}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="orgId != null "> and orgId = #{orgId}</if>
<if test="parent != null and parent != ''"> and parent = #{parent}</if>
<if test="parentIds != null and parentIds != ''"> and parentIds = #{parentIds}</if>
<if test="productType != null and productType != ''"> and productType = #{productType}</if>
<if test="position != null and position != ''"> and position = #{position}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="structureId != null "> and structureId = #{structureId}</if>
<if test="structureName != null and structureName != ''"> and structureName like concat('%', #{structureName}, '%')</if>
<if test="typeCategory != null and typeCategory != ''"> and typeCategory = #{typeCategory}</if>
<if test="typeName != null and typeName != ''"> and typeName like concat('%', #{typeName}, '%')</if>
<if test="verifyDate != null and verifyDate != ''"> and verifyDate = #{verifyDate}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectDevPitmonitSouthsmosDeviceById" parameterType="Long" resultMap="DevPitmonitSouthsmosDeviceResult">
<include refid="selectDevPitmonitSouthsmosDeviceVo"/>
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosDevice" parameterType="DevPitmonitSouthsmosDevice" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_device
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
<if test="devId != null">devId,</if>
<if test="autoType != null">autoType,</if>
<if test="certUrl != null">certUrl,</if>
<if test="checkDate != null">checkDate,</if>
<if test="devCode != null">devCode,</if>
<if test="devShadow != null">devShadow,</if>
<if test="devType != null">devType,</if>
<if test="devTypeName != null">devTypeName,</if>
<if test="key != null">`key`,</if>
<if test="manufacturer != null">manufacturer,</if>
<if test="name != null">name,</if>
<if test="orgId != null">orgId,</if>
<if test="parent != null">parent,</if>
<if test="parentIds != null">parentIds,</if>
<if test="productType != null">productType,</if>
<if test="position != null">position,</if>
<if test="status != null">status,</if>
<if test="structureId != null">structureId,</if>
<if test="structureName != null">structureName,</if>
<if test="typeCategory != null">typeCategory,</if>
<if test="typeName != null">typeName,</if>
<if test="verifyDate != null">verifyDate,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgId != null">#{cfgId},</if>
<if test="devId != null">#{devId},</if>
<if test="autoType != null">#{autoType},</if>
<if test="certUrl != null">#{certUrl},</if>
<if test="checkDate != null">#{checkDate},</if>
<if test="devCode != null">#{devCode},</if>
<if test="devShadow != null">#{devShadow},</if>
<if test="devType != null">#{devType},</if>
<if test="devTypeName != null">#{devTypeName},</if>
<if test="key != null">#{key},</if>
<if test="manufacturer != null">#{manufacturer},</if>
<if test="name != null">#{name},</if>
<if test="orgId != null">#{orgId},</if>
<if test="parent != null">#{parent},</if>
<if test="parentIds != null">#{parentIds},</if>
<if test="productType != null">#{productType},</if>
<if test="position != null">#{position},</if>
<if test="status != null">#{status},</if>
<if test="structureId != null">#{structureId},</if>
<if test="structureName != null">#{structureName},</if>
<if test="typeCategory != null">#{typeCategory},</if>
<if test="typeName != null">#{typeName},</if>
<if test="verifyDate != null">#{verifyDate},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosDevice" parameterType="DevPitmonitSouthsmosDevice">
update dev_pitmonit_southsmos_device
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>
<if test="devId != null">devId = #{devId},</if>
<if test="autoType != null">autoType = #{autoType},</if>
<if test="certUrl != null">certUrl = #{certUrl},</if>
<if test="checkDate != null">checkDate = #{checkDate},</if>
<if test="devCode != null">devCode = #{devCode},</if>
<if test="devShadow != null">devShadow = #{devShadow},</if>
<if test="devType != null">devType = #{devType},</if>
<if test="devTypeName != null">devTypeName = #{devTypeName},</if>
<if test="key != null">`key` = #{key},</if>
<if test="manufacturer != null">manufacturer = #{manufacturer},</if>
<if test="name != null">name = #{name},</if>
<if test="orgId != null">orgId = #{orgId},</if>
<if test="parent != null">parent = #{parent},</if>
<if test="parentIds != null">parentIds = #{parentIds},</if>
<if test="productType != null">productType = #{productType},</if>
<if test="position != null">position = #{position},</if>
<if test="status != null">status = #{status},</if>
<if test="structureId != null">structureId = #{structureId},</if>
<if test="structureName != null">structureName = #{structureName},</if>
<if test="typeCategory != null">typeCategory = #{typeCategory},</if>
<if test="typeName != null">typeName = #{typeName},</if>
<if test="verifyDate != null">verifyDate = #{verifyDate},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteDevPitmonitSouthsmosDeviceById" parameterType="Long">
delete from dev_pitmonit_southsmos_device where id = #{id}
</delete>
<delete id="deleteDevPitmonitSouthsmosDeviceByIds" parameterType="String">
delete from dev_pitmonit_southsmos_device where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -15,6 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="meNameEn" column="meNameEn" />
<result property="modifyDate" column="modifyDate" />
<result property="name" column="name" />
<result property="position" column="position" />
<result property="dataSource" column="dataSource" />
<result property="createDate" column="createDate" />
<result property="status" column="status" />
@ -28,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectDevPitmonitSouthsmosSurveypointVo">
select id, cfgId, spId, groupId, groupName, meId, meName, meNameEn, modifyDate, name, dataSource, createDate, status, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_surveypoint
select id, cfgId, spId, groupId, groupName, meId, meName, meNameEn, modifyDate, name, position, dataSource, createDate, status, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_surveypoint
</sql>
<select id="selectDevPitmonitSouthsmosSurveypointList" parameterType="DevPitmonitSouthsmosSurveypoint" resultMap="DevPitmonitSouthsmosSurveypointResult">
@ -43,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="meNameEn != null and meNameEn != ''"> and meNameEn = #{meNameEn}</if>
<if test="modifyDate != null "> and modifyDate = #{modifyDate}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="position != null and position != ''"> and position = #{position}</if>
<if test="dataSource != null "> and dataSource = #{dataSource}</if>
<if test="createDate != null "> and createDate = #{createDate}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
@ -68,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="meNameEn != null">meNameEn,</if>
<if test="modifyDate != null">modifyDate,</if>
<if test="name != null">name,</if>
<if test="position != null">position,</if>
<if test="dataSource != null">dataSource,</if>
<if test="createDate != null">createDate,</if>
<if test="status != null">status,</if>
@ -89,6 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="meNameEn != null">#{meNameEn},</if>
<if test="modifyDate != null">#{modifyDate},</if>
<if test="name != null">#{name},</if>
<if test="position != null">#{position},</if>
<if test="dataSource != null">#{dataSource},</if>
<if test="createDate != null">#{createDate},</if>
<if test="status != null">#{status},</if>
@ -114,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="meNameEn != null">meNameEn = #{meNameEn},</if>
<if test="modifyDate != null">modifyDate = #{modifyDate},</if>
<if test="name != null">name = #{name},</if>
<if test="position != null">position = #{position},</if>
<if test="dataSource != null">dataSource = #{dataSource},</if>
<if test="createDate != null">createDate = #{createDate},</if>
<if test="status != null">status = #{status},</if>

View File

@ -44,7 +44,7 @@
"bpmnlint": "^6.4.0",
"bpmnlint-loader": "^0.1.4",
"clipboard": "2.0.8",
"core-js": "3.25.3",
"core-js": "^3.38.0",
"dayjs": "^1.11.9",
"diagram-js": "^11.4.1",
"echarts": "5.4.0",
@ -57,6 +57,7 @@
"jsencrypt": "3.0.0-rc.1",
"nprogress": "0.2.0",
"quill": "1.3.7",
"ruoyi": "file:",
"screenfull": "5.0.2",
"sortablejs": "1.10.2",
"vkbeautify": "^0.99.3",
@ -81,13 +82,15 @@
"connect": "3.6.6",
"eslint": "7.15.0",
"eslint-plugin-vue": "7.2.0",
"javascript-obfuscator": "^4.1.1",
"lint-staged": "10.5.3",
"runjs": "4.4.2",
"sass": "1.32.13",
"sass-loader": "10.1.1",
"script-ext-html-webpack-plugin": "2.1.5",
"svg-sprite-loader": "5.1.1",
"vue-template-compiler": "2.6.12"
"vue-template-compiler": "2.6.12",
"webpack-obfuscator": "2.6"
},
"engines": {
"node": ">=8.9",

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询报警信息列表
export function listPitAlarm(query) {
return request({
url: '/device/pitAlarm/list',
method: 'get',
params: query
})
}
// 查询报警信息详细
export function getPitAlarm(id) {
return request({
url: '/device/pitAlarm/' + id,
method: 'get'
})
}
// 新增报警信息
export function addPitAlarm(data) {
return request({
url: '/device/pitAlarm',
method: 'post',
data: data
})
}
// 修改报警信息
export function updatePitAlarm(data) {
return request({
url: '/device/pitAlarm',
method: 'put',
data: data
})
}
// 删除报警信息
export function delPitAlarm(id) {
return request({
url: '/device/pitAlarm/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,49 @@
import request from '@/utils/request'
// 查询项目基坑监测配置
列表
export function listPitConfig(query) {
return request({
url: '/device/pitConfig/list',
method: 'get',
params: query
})
}
// 查询项目基坑监测配置
详细
export function getPitConfig(id) {
return request({
url: '/device/pitConfig/' + id,
method: 'get'
})
}
// 新增项目基坑监测配置
export function addPitConfig(data) {
return request({
url: '/device/pitConfig',
method: 'post',
data: data
})
}
// 修改项目基坑监测配置
export function updatePitConfig(data) {
return request({
url: '/device/pitConfig',
method: 'put',
data: data
})
}
// 删除项目基坑监测配置
export function delPitConfig(id) {
return request({
url: '/device/pitConfig/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询测点数据列表
export function listPitData(query) {
return request({
url: '/device/pitData/list',
method: 'get',
params: query
})
}
// 查询测点数据详细
export function getPitData(id) {
return request({
url: '/device/pitData/' + id,
method: 'get'
})
}
// 新增测点数据
export function addPitData(data) {
return request({
url: '/device/pitData',
method: 'post',
data: data
})
}
// 修改测点数据
export function updatePitData(data) {
return request({
url: '/device/pitData',
method: 'put',
data: data
})
}
// 删除测点数据
export function delPitData(id) {
return request({
url: '/device/pitData/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询设备管理列表
export function listPitDevice(query) {
return request({
url: '/device/pitDevice/list',
method: 'get',
params: query
})
}
// 查询设备管理详细
export function getPitDevice(id) {
return request({
url: '/device/pitDevice/' + id,
method: 'get'
})
}
// 新增设备管理
export function addPitDevice(data) {
return request({
url: '/device/pitDevice',
method: 'post',
data: data
})
}
// 修改设备管理
export function updatePitDevice(data) {
return request({
url: '/device/pitDevice',
method: 'put',
data: data
})
}
// 删除设备管理
export function delPitDevice(id) {
return request({
url: '/device/pitDevice/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询设测点关系列表
export function listPitDeviceSurveyPoint(query) {
return request({
url: '/device/pitDeviceSurveyPoint/list',
method: 'get',
params: query
})
}
// 查询设测点关系详细
export function getPitDeviceSurveyPoint(id) {
return request({
url: '/device/pitDeviceSurveyPoint/' + id,
method: 'get'
})
}
// 新增设测点关系
export function addPitDeviceSurveyPoint(data) {
return request({
url: '/device/pitDeviceSurveyPoint',
method: 'post',
data: data
})
}
// 修改设测点关系
export function updatePitDeviceSurveyPoint(data) {
return request({
url: '/device/pitDeviceSurveyPoint',
method: 'put',
data: data
})
}
// 删除设测点关系
export function delPitDeviceSurveyPoint(id) {
return request({
url: '/device/pitDeviceSurveyPoint/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询监测项管理列表
export function listPitElement(query) {
return request({
url: '/device/pitElement/list',
method: 'get',
params: query
})
}
// 查询监测项管理详细
export function getPitElement(id) {
return request({
url: '/device/pitElement/' + id,
method: 'get'
})
}
// 新增监测项管理
export function addPitElement(data) {
return request({
url: '/device/pitElement',
method: 'post',
data: data
})
}
// 修改监测项管理
export function updatePitElement(data) {
return request({
url: '/device/pitElement',
method: 'put',
data: data
})
}
// 删除监测项管理
export function delPitElement(id) {
return request({
url: '/device/pitElement/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询测项明细列表
export function listPitElementItem(query) {
return request({
url: '/device/pitElementItem/list',
method: 'get',
params: query
})
}
// 查询测项明细详细
export function getPitElementItem(id) {
return request({
url: '/device/pitElementItem/' + id,
method: 'get'
})
}
// 新增测项明细
export function addPitElementItem(data) {
return request({
url: '/device/pitElementItem',
method: 'post',
data: data
})
}
// 修改测项明细
export function updatePitElementItem(data) {
return request({
url: '/device/pitElementItem',
method: 'put',
data: data
})
}
// 删除测项明细
export function delPitElementItem(id) {
return request({
url: '/device/pitElementItem/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询测点管理列表
export function listPitSurveyPoint(query) {
return request({
url: '/device/pitSurveyPoint/list',
method: 'get',
params: query
})
}
// 查询测点管理详细
export function getPitSurveyPoint(id) {
return request({
url: '/device/pitSurveyPoint/' + id,
method: 'get'
})
}
// 新增测点管理
export function addPitSurveyPoint(data) {
return request({
url: '/device/pitSurveyPoint',
method: 'post',
data: data
})
}
// 修改测点管理
export function updatePitSurveyPoint(data) {
return request({
url: '/device/pitSurveyPoint',
method: 'put',
data: data
})
}
// 删除测点管理
export function delPitSurveyPoint(id) {
return request({
url: '/device/pitSurveyPoint/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询报警阈值列表
export function listPitThreshold(query) {
return request({
url: '/device/pitThreshold/list',
method: 'get',
params: query
})
}
// 查询报警阈值详细
export function getPitThreshold(id) {
return request({
url: '/device/pitThreshold/' + id,
method: 'get'
})
}
// 新增报警阈值
export function addPitThreshold(data) {
return request({
url: '/device/pitThreshold',
method: 'post',
data: data
})
}
// 修改报警阈值
export function updatePitThreshold(data) {
return request({
url: '/device/pitThreshold',
method: 'put',
data: data
})
}
// 删除报警阈值
export function delPitThreshold(id) {
return request({
url: '/device/pitThreshold/' + id,
method: 'delete'
})
}

View File

@ -0,0 +1,655 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="配置ID" prop="cfgId">
<el-input
v-model="queryParams.cfgId"
placeholder="请输入配置ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端ID" prop="srvId">
<el-input
v-model="queryParams.srvId"
placeholder="请输入服务端ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="该条报警信息的一个描述" prop="alarmInfo">
<el-input
v-model="queryParams.alarmInfo"
placeholder="请输入该条报警信息的一个描述"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="产生报警的来源,格式:点名-监测分项名" prop="alarmSource">
<el-input
v-model="queryParams.alarmSource"
placeholder="请输入产生报警的来源,格式:点名-监测分项名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="次产生报警的时间" prop="gmtAlarm">
<el-date-picker clearable
v-model="queryParams.gmtAlarm"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择次产生报警的时间">
</el-date-picker>
</el-form-item>
<el-form-item label="报警时间,如果数据回落至正常范围或被处理,则报警结束" prop="gmtAlarmOver">
<el-date-picker clearable
v-model="queryParams.gmtAlarmOver"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择报警时间,如果数据回落至正常范围或被处理,则报警结束">
</el-date-picker>
</el-form-item>
<el-form-item label="开始后第一次产生报警的时间" prop="gmtAlarmStart">
<el-date-picker clearable
v-model="queryParams.gmtAlarmStart"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择开始后第一次产生报警的时间">
</el-date-picker>
</el-form-item>
<el-form-item label="数据库记录创建时间" prop="gmtCreate">
<el-date-picker clearable
v-model="queryParams.gmtCreate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择数据库记录创建时间">
</el-date-picker>
</el-form-item>
<el-form-item label="报警更新时间,该报警每产生一次都会更新该时间" prop="gmtModified">
<el-date-picker clearable
v-model="queryParams.gmtModified"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择报警更新时间,该报警每产生一次都会更新该时间">
</el-date-picker>
</el-form-item>
<el-form-item label="报警所处最高级别1超预警2超报警3超控制" prop="level">
<el-input
v-model="queryParams.level"
placeholder="请输入报警所处最高级别1超预警2超报警3超控制"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="监测项id" prop="meId">
<el-input
v-model="queryParams.meId"
placeholder="请输入监测项id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="监测项名称" prop="meName">
<el-input
v-model="queryParams.meName"
placeholder="请输入监测项名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="监测分项id" prop="monitorItemId">
<el-input
v-model="queryParams.monitorItemId"
placeholder="请输入监测分项id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警产生次数,如果报警来源一样,类型一样,则认为是同一条报警,多次产生也只会累加次数" prop="numbers">
<el-input
v-model="queryParams.numbers"
placeholder="请输入报警产生次数,如果报警来源一样,类型一样,则认为是同一条报警,多次产生也只会累加次数"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警处理结果" prop="result">
<el-input
v-model="queryParams.result"
placeholder="请输入报警处理结果"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="处理图片地址" prop="resultUrl">
<el-input
v-model="queryParams.resultUrl"
placeholder="请输入处理图片地址"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警测点id" prop="spId">
<el-input
v-model="queryParams.spId"
placeholder="请输入报警测点id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警测点名" prop="spName">
<el-input
v-model="queryParams.spName"
placeholder="请输入报警测点名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="处理人" prop="staff">
<el-input
v-model="queryParams.staff"
placeholder="请输入处理人"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="处理电话" prop="staffPhone">
<el-input
v-model="queryParams.staffPhone"
placeholder="请输入处理电话"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警工程id" prop="structureId">
<el-input
v-model="queryParams.structureId"
placeholder="请输入报警工程id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警工程名" prop="structureName">
<el-input
v-model="queryParams.structureName"
placeholder="请输入报警工程名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="该警最高级别设置的阈值" prop="threshold">
<el-input
v-model="queryParams.threshold"
placeholder="请输入该警最高级别设置的阈值"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="判断的标准:测量值、单次变化量、累计变化量、变化速率" prop="variety">
<el-input
v-model="queryParams.variety"
placeholder="请输入判断的标准:测量值、单次变化量、累计变化量、变化速率"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input
v-model="queryParams.state"
placeholder="请输入状态"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="${comment}" prop="isDel">
<el-input
v-model="queryParams.isDel"
placeholder="请输入${comment}"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['device:pitAlarm:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['device:pitAlarm:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['device:pitAlarm:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['device:pitAlarm:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="pitAlarmList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="${comment}" align="center" prop="id" />
<el-table-column label="配置ID" align="center" prop="cfgId" />
<el-table-column label="服务端ID" align="center" prop="srvId" />
<el-table-column label="该条报警信息的一个描述" align="center" prop="alarmInfo" />
<el-table-column label="产生报警的来源,格式:点名-监测分项名" align="center" prop="alarmSource" />
<el-table-column label="次产生报警的时间" align="center" prop="gmtAlarm" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.gmtAlarm, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="报警时间,如果数据回落至正常范围或被处理,则报警结束" align="center" prop="gmtAlarmOver" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.gmtAlarmOver, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="开始后第一次产生报警的时间" align="center" prop="gmtAlarmStart" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.gmtAlarmStart, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="数据库记录创建时间" align="center" prop="gmtCreate" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.gmtCreate, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="报警更新时间,该报警每产生一次都会更新该时间" align="center" prop="gmtModified" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.gmtModified, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="报警所处最高级别1超预警2超报警3超控制" align="center" prop="level" />
<el-table-column label="监测项id" align="center" prop="meId" />
<el-table-column label="监测项名称" align="center" prop="meName" />
<el-table-column label="监测分项id" align="center" prop="monitorItemId" />
<el-table-column label="报警产生次数,如果报警来源一样,类型一样,则认为是同一条报警,多次产生也只会累加次数" align="center" prop="numbers" />
<el-table-column label="报警处理结果" align="center" prop="result" />
<el-table-column label="处理图片地址" align="center" prop="resultUrl" />
<el-table-column label="报警测点id" align="center" prop="spId" />
<el-table-column label="报警测点名" align="center" prop="spName" />
<el-table-column label="处理人" align="center" prop="staff" />
<el-table-column label="处理电话" align="center" prop="staffPhone" />
<el-table-column label="报警状态:实时、历史,处理过的报警信息将变为历史,不再返回" align="center" prop="status" />
<el-table-column label="报警工程id" align="center" prop="structureId" />
<el-table-column label="报警工程名" align="center" prop="structureName" />
<el-table-column label="该警最高级别设置的阈值" align="center" prop="threshold" />
<el-table-column label="类型:数据异常、设备异常,数据报警都是数据异常" align="center" prop="type" />
<el-table-column label="判断的标准:测量值、单次变化量、累计变化量、变化速率" align="center" prop="variety" />
<el-table-column label="状态" align="center" prop="state" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="${comment}" align="center" prop="isDel" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['device:pitAlarm:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['device:pitAlarm:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改报警信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="配置ID" prop="cfgId">
<el-input v-model="form.cfgId" placeholder="请输入配置ID" />
</el-form-item>
<el-form-item label="服务端ID" prop="srvId">
<el-input v-model="form.srvId" placeholder="请输入服务端ID" />
</el-form-item>
<el-form-item label="该条报警信息的一个描述" prop="alarmInfo">
<el-input v-model="form.alarmInfo" placeholder="请输入该条报警信息的一个描述" />
</el-form-item>
<el-form-item label="产生报警的来源,格式:点名-监测分项名" prop="alarmSource">
<el-input v-model="form.alarmSource" placeholder="请输入产生报警的来源,格式:点名-监测分项名" />
</el-form-item>
<el-form-item label="次产生报警的时间" prop="gmtAlarm">
<el-date-picker clearable
v-model="form.gmtAlarm"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择次产生报警的时间">
</el-date-picker>
</el-form-item>
<el-form-item label="报警时间,如果数据回落至正常范围或被处理,则报警结束" prop="gmtAlarmOver">
<el-date-picker clearable
v-model="form.gmtAlarmOver"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择报警时间,如果数据回落至正常范围或被处理,则报警结束">
</el-date-picker>
</el-form-item>
<el-form-item label="开始后第一次产生报警的时间" prop="gmtAlarmStart">
<el-date-picker clearable
v-model="form.gmtAlarmStart"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择开始后第一次产生报警的时间">
</el-date-picker>
</el-form-item>
<el-form-item label="数据库记录创建时间" prop="gmtCreate">
<el-date-picker clearable
v-model="form.gmtCreate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择数据库记录创建时间">
</el-date-picker>
</el-form-item>
<el-form-item label="报警更新时间,该报警每产生一次都会更新该时间" prop="gmtModified">
<el-date-picker clearable
v-model="form.gmtModified"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择报警更新时间,该报警每产生一次都会更新该时间">
</el-date-picker>
</el-form-item>
<el-form-item label="报警所处最高级别1超预警2超报警3超控制" prop="level">
<el-input v-model="form.level" placeholder="请输入报警所处最高级别1超预警2超报警3超控制" />
</el-form-item>
<el-form-item label="监测项id" prop="meId">
<el-input v-model="form.meId" placeholder="请输入监测项id" />
</el-form-item>
<el-form-item label="监测项名称" prop="meName">
<el-input v-model="form.meName" placeholder="请输入监测项名称" />
</el-form-item>
<el-form-item label="监测分项id" prop="monitorItemId">
<el-input v-model="form.monitorItemId" placeholder="请输入监测分项id" />
</el-form-item>
<el-form-item label="报警产生次数,如果报警来源一样,类型一样,则认为是同一条报警,多次产生也只会累加次数" prop="numbers">
<el-input v-model="form.numbers" placeholder="请输入报警产生次数,如果报警来源一样,类型一样,则认为是同一条报警,多次产生也只会累加次数" />
</el-form-item>
<el-form-item label="报警处理结果" prop="result">
<el-input v-model="form.result" placeholder="请输入报警处理结果" />
</el-form-item>
<el-form-item label="处理图片地址" prop="resultUrl">
<el-input v-model="form.resultUrl" placeholder="请输入处理图片地址" />
</el-form-item>
<el-form-item label="报警测点id" prop="spId">
<el-input v-model="form.spId" placeholder="请输入报警测点id" />
</el-form-item>
<el-form-item label="报警测点名" prop="spName">
<el-input v-model="form.spName" placeholder="请输入报警测点名" />
</el-form-item>
<el-form-item label="处理人" prop="staff">
<el-input v-model="form.staff" placeholder="请输入处理人" />
</el-form-item>
<el-form-item label="处理电话" prop="staffPhone">
<el-input v-model="form.staffPhone" placeholder="请输入处理电话" />
</el-form-item>
<el-form-item label="报警工程id" prop="structureId">
<el-input v-model="form.structureId" placeholder="请输入报警工程id" />
</el-form-item>
<el-form-item label="报警工程名" prop="structureName">
<el-input v-model="form.structureName" placeholder="请输入报警工程名" />
</el-form-item>
<el-form-item label="该警最高级别设置的阈值" prop="threshold">
<el-input v-model="form.threshold" placeholder="请输入该警最高级别设置的阈值" />
</el-form-item>
<el-form-item label="判断的标准:测量值、单次变化量、累计变化量、变化速率" prop="variety">
<el-input v-model="form.variety" placeholder="请输入判断的标准:测量值、单次变化量、累计变化量、变化速率" />
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input v-model="form.state" placeholder="请输入状态" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="${comment}" prop="isDel">
<el-input v-model="form.isDel" placeholder="请输入${comment}" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPitAlarm, getPitAlarm, delPitAlarm, addPitAlarm, updatePitAlarm } from "@/api/device/pitAlarm";
export default {
name: "PitAlarm",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
pitAlarmList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
cfgId: null,
srvId: null,
alarmInfo: null,
alarmSource: null,
gmtAlarm: null,
gmtAlarmOver: null,
gmtAlarmStart: null,
gmtCreate: null,
gmtModified: null,
level: null,
meId: null,
meName: null,
monitorItemId: null,
numbers: null,
result: null,
resultUrl: null,
spId: null,
spName: null,
staff: null,
staffPhone: null,
status: null,
structureId: null,
structureName: null,
threshold: null,
type: null,
variety: null,
state: null,
isDel: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询报警信息列表 */
getList() {
this.loading = true;
listPitAlarm(this.queryParams).then(response => {
this.pitAlarmList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
cfgId: null,
srvId: null,
alarmInfo: null,
alarmSource: null,
gmtAlarm: null,
gmtAlarmOver: null,
gmtAlarmStart: null,
gmtCreate: null,
gmtModified: null,
level: null,
meId: null,
meName: null,
monitorItemId: null,
numbers: null,
result: null,
resultUrl: null,
spId: null,
spName: null,
staff: null,
staffPhone: null,
status: null,
structureId: null,
structureName: null,
threshold: null,
type: null,
variety: null,
state: null,
remark: null,
isDel: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加报警信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPitAlarm(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改报警信息";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updatePitAlarm(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPitAlarm(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除报警信息编号为"' + ids + '"的数据项?').then(function() {
return delPitAlarm(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('device/pitAlarm/export', {
...this.queryParams
}, `pitAlarm_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,262 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="项目ID" prop="projectId">
<el-input v-model="queryParams.projectId" placeholder="请输入项目ID" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="总包单位ID" prop="subDeptId">
<el-input v-model="queryParams.subDeptId" placeholder="请输入总包单位ID" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="厂商编号参考字典pitmonit_vendors" prop="vendorCode">
<el-input v-model="queryParams.vendorCode" placeholder="请输入厂商编号参考字典pitmonit_vendors" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="1-启用,0-停用" prop="enabled">
<el-input v-model="queryParams.enabled" placeholder="请输入1-启用,0-停用" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input v-model="queryParams.state" placeholder="请输入状态" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="${comment}" prop="isDel">
<el-input v-model="queryParams.isDel" placeholder="请输入${comment}" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['device:pitConfig:add']">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
v-hasPermi="['device:pitConfig:edit']">修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
v-hasPermi="['device:pitConfig:remove']">删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
v-hasPermi="['device:pitConfig:export']">导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="pitConfigList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="${comment}" align="center" prop="id" />
<el-table-column label="项目ID" align="center" prop="projectId" />
<el-table-column label="总包单位ID" align="center" prop="subDeptId" />
<el-table-column label="厂商编号参考字典pitmonit_vendors" align="center" prop="vendorCode" />
<el-table-column label="厂商参数" align="center" prop="vendorParamter" />
<el-table-column label="1-启用,0-停用" align="center" prop="enabled" />
<el-table-column label="状态" align="center" prop="state" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="${comment}" align="center" prop="isDel" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['device:pitConfig:edit']">修改</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['device:pitConfig:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" />
<!-- 添加或修改项目基坑监测配置
对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="项目ID" prop="projectId">
<el-input v-model="form.projectId" placeholder="请输入项目ID" />
</el-form-item>
<el-form-item label="总包单位ID" prop="subDeptId">
<el-input v-model="form.subDeptId" placeholder="请输入总包单位ID" />
</el-form-item>
<el-form-item label="厂商编号参考字典pitmonit_vendors" prop="vendorCode">
<el-input v-model="form.vendorCode" placeholder="请输入厂商编号参考字典pitmonit_vendors" />
</el-form-item>
<el-form-item label="厂商参数" prop="vendorParamter">
<el-input v-model="form.vendorParamter" type="textarea" placeholder="请输入内容" />
</el-form-item>
<el-form-item label="1-启用,0-停用" prop="enabled">
<el-input v-model="form.enabled" placeholder="请输入1-启用,0-停用" />
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input v-model="form.state" placeholder="请输入状态" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="${comment}" prop="isDel">
<el-input v-model="form.isDel" placeholder="请输入${comment}" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPitConfig, getPitConfig, delPitConfig, addPitConfig, updatePitConfig } from "@/api/device/pitConfig";
export default {
name: "PitConfig",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
pitConfigList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
projectId: null,
subDeptId: null,
vendorCode: null,
vendorParamter: null,
enabled: null,
state: null,
isDel: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询项目基坑监测配置列表 */
getList() {
this.loading = true;
listPitConfig(this.queryParams).then(response => {
this.pitConfigList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
projectId: null,
subDeptId: null,
vendorCode: null,
vendorParamter: null,
enabled: null,
state: null,
remark: null,
isDel: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length !== 1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加项目基坑监测配置";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPitConfig(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改项目基坑监测配置";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updatePitConfig(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPitConfig(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除项目基坑监测配置编号为"' + ids + '"的数据项?').then(function() {
return delPitConfig(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => { });
},
/** 导出按钮操作 */
handleExport() {
this.download('device/pitConfig/export', {
...this.queryParams
}, `pitConfig_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,462 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="配置ID" prop="cfgId">
<el-input
v-model="queryParams.cfgId"
placeholder="请输入配置ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端dataId" prop="dataId">
<el-input
v-model="queryParams.dataId"
placeholder="请输入服务端dataId"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="测点Id" prop="spId">
<el-input
v-model="queryParams.spId"
placeholder="请输入测点Id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="测点名" prop="spName">
<el-input
v-model="queryParams.spName"
placeholder="请输入测点名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="收集时间" prop="collectTime">
<el-date-picker clearable
v-model="queryParams.collectTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择收集时间">
</el-date-picker>
</el-form-item>
<el-form-item label="变化速率(X)" prop="changeRate">
<el-input
v-model="queryParams.changeRate"
placeholder="请输入变化速率(X)"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="变化速率(Y)" prop="changeRate2">
<el-input
v-model="queryParams.changeRate2"
placeholder="请输入变化速率(Y)"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="displace">
<el-input
v-model="queryParams.displace"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="displace2">
<el-input
v-model="queryParams.displace2"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="累计变化量单位为m(X)" prop="totalize">
<el-input
v-model="queryParams.totalize"
placeholder="请输入累计变化量单位为m(X)"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="累计变化量单位为m(Y)" prop="totalize2">
<el-input
v-model="queryParams.totalize2"
placeholder="请输入累计变化量单位为m(Y)"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="单次变化量单位为m(X)" prop="variation">
<el-input
v-model="queryParams.variation"
placeholder="请输入单次变化量单位为m(X)"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="单次变化量单位为m(Y)" prop="variation2">
<el-input
v-model="queryParams.variation2"
placeholder="请输入单次变化量单位为m(Y)"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input
v-model="queryParams.state"
placeholder="请输入状态"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="isDel">
<el-input
v-model="queryParams.isDel"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['device:pitData:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['device:pitData:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['device:pitData:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['device:pitData:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="pitDataList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="" align="center" prop="id" />
<el-table-column label="配置ID" align="center" prop="cfgId" />
<el-table-column label="数据类型:horizontal-水平位移(x,y),presureWallsideSoil-围护墙侧向土压力,waterLevel-地下水位" align="center" prop="dataType" />
<el-table-column label="服务端dataId" align="center" prop="dataId" />
<el-table-column label="测点Id" align="center" prop="spId" />
<el-table-column label="测点名" align="center" prop="spName" />
<el-table-column label="收集时间" align="center" prop="collectTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.collectTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="变化速率(X)" align="center" prop="changeRate" />
<el-table-column label="变化速率(Y)" align="center" prop="changeRate2" />
<el-table-column label="" align="center" prop="displace" />
<el-table-column label="" align="center" prop="displace2" />
<el-table-column label="累计变化量单位为m(X)" align="center" prop="totalize" />
<el-table-column label="累计变化量单位为m(Y)" align="center" prop="totalize2" />
<el-table-column label="单次变化量单位为m(X)" align="center" prop="variation" />
<el-table-column label="单次变化量单位为m(Y)" align="center" prop="variation2" />
<el-table-column label="状态" align="center" prop="state" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="" align="center" prop="isDel" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['device:pitData:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['device:pitData:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改测点数据对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="配置ID" prop="cfgId">
<el-input v-model="form.cfgId" placeholder="请输入配置ID" />
</el-form-item>
<el-form-item label="服务端dataId" prop="dataId">
<el-input v-model="form.dataId" placeholder="请输入服务端dataId" />
</el-form-item>
<el-form-item label="测点Id" prop="spId">
<el-input v-model="form.spId" placeholder="请输入测点Id" />
</el-form-item>
<el-form-item label="测点名" prop="spName">
<el-input v-model="form.spName" placeholder="请输入测点名" />
</el-form-item>
<el-form-item label="收集时间" prop="collectTime">
<el-date-picker clearable
v-model="form.collectTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择收集时间">
</el-date-picker>
</el-form-item>
<el-form-item label="变化速率(X)" prop="changeRate">
<el-input v-model="form.changeRate" placeholder="请输入变化速率(X)" />
</el-form-item>
<el-form-item label="变化速率(Y)" prop="changeRate2">
<el-input v-model="form.changeRate2" placeholder="请输入变化速率(Y)" />
</el-form-item>
<el-form-item label="" prop="displace">
<el-input v-model="form.displace" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="displace2">
<el-input v-model="form.displace2" placeholder="请输入" />
</el-form-item>
<el-form-item label="累计变化量单位为m(X)" prop="totalize">
<el-input v-model="form.totalize" placeholder="请输入累计变化量单位为m(X)" />
</el-form-item>
<el-form-item label="累计变化量单位为m(Y)" prop="totalize2">
<el-input v-model="form.totalize2" placeholder="请输入累计变化量单位为m(Y)" />
</el-form-item>
<el-form-item label="单次变化量单位为m(X)" prop="variation">
<el-input v-model="form.variation" placeholder="请输入单次变化量单位为m(X)" />
</el-form-item>
<el-form-item label="单次变化量单位为m(Y)" prop="variation2">
<el-input v-model="form.variation2" placeholder="请输入单次变化量单位为m(Y)" />
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input v-model="form.state" placeholder="请输入状态" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="" prop="isDel">
<el-input v-model="form.isDel" placeholder="请输入" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPitData, getPitData, delPitData, addPitData, updatePitData } from "@/api/device/pitData";
export default {
name: "PitData",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
pitDataList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
cfgId: null,
dataType: null,
dataId: null,
spId: null,
spName: null,
collectTime: null,
changeRate: null,
changeRate2: null,
displace: null,
displace2: null,
totalize: null,
totalize2: null,
variation: null,
variation2: null,
state: null,
isDel: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询测点数据列表 */
getList() {
this.loading = true;
listPitData(this.queryParams).then(response => {
this.pitDataList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
cfgId: null,
dataType: null,
dataId: null,
spId: null,
spName: null,
collectTime: null,
changeRate: null,
changeRate2: null,
displace: null,
displace2: null,
totalize: null,
totalize2: null,
variation: null,
variation2: null,
state: null,
remark: null,
isDel: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加测点数据";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPitData(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改测点数据";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updatePitData(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPitData(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除测点数据编号为"' + ids + '"的数据项?').then(function() {
return delPitData(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('device/pitData/export', {
...this.queryParams
}, `pitData_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,547 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="配置ID" prop="cfgId">
<el-input
v-model="queryParams.cfgId"
placeholder="请输入配置ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="设备ID" prop="devId">
<el-input
v-model="queryParams.devId"
placeholder="请输入设备ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="certUrl">
<el-input
v-model="queryParams.certUrl"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="checkDate">
<el-date-picker clearable
v-model="queryParams.checkDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择">
</el-date-picker>
</el-form-item>
<el-form-item label="设备名称" prop="devCode">
<el-input
v-model="queryParams.devCode"
placeholder="请输入设备名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="devTypeName">
<el-input
v-model="queryParams.devTypeName"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="key">
<el-input
v-model="queryParams.key"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="manufacturer">
<el-input
v-model="queryParams.manufacturer"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="设备名称" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入设备名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="orgId">
<el-input
v-model="queryParams.orgId"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="parent">
<el-input
v-model="queryParams.parent"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="parentIds">
<el-input
v-model="queryParams.parentIds"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="位置" prop="position">
<el-input
v-model="queryParams.position"
placeholder="请输入位置"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="工程ID" prop="structureId">
<el-input
v-model="queryParams.structureId"
placeholder="请输入工程ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="structureName">
<el-input
v-model="queryParams.structureName"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="typeCategory">
<el-input
v-model="queryParams.typeCategory"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="typeName">
<el-input
v-model="queryParams.typeName"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="verifyDate">
<el-input
v-model="queryParams.verifyDate"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="state">
<el-input
v-model="queryParams.state"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="isDel">
<el-input
v-model="queryParams.isDel"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['device:pitDevice:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['device:pitDevice:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['device:pitDevice:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['device:pitDevice:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="pitDeviceList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="" align="center" prop="id" />
<el-table-column label="配置ID" align="center" prop="cfgId" />
<el-table-column label="设备ID" align="center" prop="devId" />
<el-table-column label="" align="center" prop="autoType" />
<el-table-column label="" align="center" prop="certUrl" />
<el-table-column label="" align="center" prop="checkDate" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.checkDate, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="设备名称" align="center" prop="devCode" />
<el-table-column label="" align="center" prop="devShadow" />
<el-table-column label="" align="center" prop="devType" />
<el-table-column label="" align="center" prop="devTypeName" />
<el-table-column label="" align="center" prop="key" />
<el-table-column label="" align="center" prop="manufacturer" />
<el-table-column label="设备名称" align="center" prop="name" />
<el-table-column label="" align="center" prop="orgId" />
<el-table-column label="" align="center" prop="parent" />
<el-table-column label="" align="center" prop="parentIds" />
<el-table-column label="" align="center" prop="productType" />
<el-table-column label="位置" align="center" prop="position" />
<el-table-column label="" align="center" prop="status" />
<el-table-column label="工程ID" align="center" prop="structureId" />
<el-table-column label="" align="center" prop="structureName" />
<el-table-column label="" align="center" prop="typeCategory" />
<el-table-column label="" align="center" prop="typeName" />
<el-table-column label="" align="center" prop="verifyDate" />
<el-table-column label="" align="center" prop="state" />
<el-table-column label="" align="center" prop="remark" />
<el-table-column label="" align="center" prop="isDel" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['device:pitDevice:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['device:pitDevice:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改设备管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="配置ID" prop="cfgId">
<el-input v-model="form.cfgId" placeholder="请输入配置ID" />
</el-form-item>
<el-form-item label="设备ID" prop="devId">
<el-input v-model="form.devId" placeholder="请输入设备ID" />
</el-form-item>
<el-form-item label="" prop="certUrl">
<el-input v-model="form.certUrl" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="checkDate">
<el-date-picker clearable
v-model="form.checkDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择">
</el-date-picker>
</el-form-item>
<el-form-item label="设备名称" prop="devCode">
<el-input v-model="form.devCode" placeholder="请输入设备名称" />
</el-form-item>
<el-form-item label="" prop="devShadow">
<el-input v-model="form.devShadow" type="textarea" placeholder="请输入内容" />
</el-form-item>
<el-form-item label="" prop="devTypeName">
<el-input v-model="form.devTypeName" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="key">
<el-input v-model="form.key" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="manufacturer">
<el-input v-model="form.manufacturer" placeholder="请输入" />
</el-form-item>
<el-form-item label="设备名称" prop="name">
<el-input v-model="form.name" placeholder="请输入设备名称" />
</el-form-item>
<el-form-item label="" prop="orgId">
<el-input v-model="form.orgId" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="parent">
<el-input v-model="form.parent" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="parentIds">
<el-input v-model="form.parentIds" placeholder="请输入" />
</el-form-item>
<el-form-item label="位置" prop="position">
<el-input v-model="form.position" placeholder="请输入位置" />
</el-form-item>
<el-form-item label="工程ID" prop="structureId">
<el-input v-model="form.structureId" placeholder="请输入工程ID" />
</el-form-item>
<el-form-item label="" prop="structureName">
<el-input v-model="form.structureName" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="typeCategory">
<el-input v-model="form.typeCategory" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="typeName">
<el-input v-model="form.typeName" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="verifyDate">
<el-input v-model="form.verifyDate" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="state">
<el-input v-model="form.state" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="remark">
<el-input v-model="form.remark" placeholder="请输入" />
</el-form-item>
<el-form-item label="" prop="isDel">
<el-input v-model="form.isDel" placeholder="请输入" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPitDevice, getPitDevice, delPitDevice, addPitDevice, updatePitDevice } from "@/api/device/pitDevice";
export default {
name: "PitDevice",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
pitDeviceList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
cfgId: null,
devId: null,
autoType: null,
certUrl: null,
checkDate: null,
devCode: null,
devShadow: null,
devType: null,
devTypeName: null,
key: null,
manufacturer: null,
name: null,
orgId: null,
parent: null,
parentIds: null,
productType: null,
position: null,
status: null,
structureId: null,
structureName: null,
typeCategory: null,
typeName: null,
verifyDate: null,
state: null,
isDel: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询设备管理列表 */
getList() {
this.loading = true;
listPitDevice(this.queryParams).then(response => {
this.pitDeviceList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
cfgId: null,
devId: null,
autoType: null,
certUrl: null,
checkDate: null,
devCode: null,
devShadow: null,
devType: null,
devTypeName: null,
key: null,
manufacturer: null,
name: null,
orgId: null,
parent: null,
parentIds: null,
productType: null,
position: null,
status: null,
structureId: null,
structureName: null,
typeCategory: null,
typeName: null,
verifyDate: null,
state: null,
remark: null,
isDel: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加设备管理";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPitDevice(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改设备管理";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updatePitDevice(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPitDevice(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除设备管理编号为"' + ids + '"的数据项?').then(function() {
return delPitDevice(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('device/pitDevice/export', {
...this.queryParams
}, `pitDevice_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,310 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="配置ID" prop="cfgId">
<el-input
v-model="queryParams.cfgId"
placeholder="请输入配置ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="设备ID" prop="devId">
<el-input
v-model="queryParams.devId"
placeholder="请输入设备ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="测点ID" prop="spId">
<el-input
v-model="queryParams.spId"
placeholder="请输入测点ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="${comment}" prop="state">
<el-input
v-model="queryParams.state"
placeholder="请输入${comment}"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="${comment}" prop="isDel">
<el-input
v-model="queryParams.isDel"
placeholder="请输入${comment}"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['device:pitDeviceSurveyPoint:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['device:pitDeviceSurveyPoint:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['device:pitDeviceSurveyPoint:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['device:pitDeviceSurveyPoint:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="pitDeviceSurveyPointList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="${comment}" align="center" prop="id" />
<el-table-column label="配置ID" align="center" prop="cfgId" />
<el-table-column label="设备ID" align="center" prop="devId" />
<el-table-column label="测点ID" align="center" prop="spId" />
<el-table-column label="${comment}" align="center" prop="state" />
<el-table-column label="${comment}" align="center" prop="remark" />
<el-table-column label="${comment}" align="center" prop="isDel" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['device:pitDeviceSurveyPoint:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['device:pitDeviceSurveyPoint:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改设测点关系对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="配置ID" prop="cfgId">
<el-input v-model="form.cfgId" placeholder="请输入配置ID" />
</el-form-item>
<el-form-item label="设备ID" prop="devId">
<el-input v-model="form.devId" placeholder="请输入设备ID" />
</el-form-item>
<el-form-item label="测点ID" prop="spId">
<el-input v-model="form.spId" placeholder="请输入测点ID" />
</el-form-item>
<el-form-item label="${comment}" prop="state">
<el-input v-model="form.state" placeholder="请输入${comment}" />
</el-form-item>
<el-form-item label="${comment}" prop="remark">
<el-input v-model="form.remark" placeholder="请输入${comment}" />
</el-form-item>
<el-form-item label="${comment}" prop="isDel">
<el-input v-model="form.isDel" placeholder="请输入${comment}" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPitDeviceSurveyPoint, getPitDeviceSurveyPoint, delPitDeviceSurveyPoint, addPitDeviceSurveyPoint, updatePitDeviceSurveyPoint } from "@/api/device/pitDeviceSurveyPoint";
export default {
name: "PitDeviceSurveyPoint",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
pitDeviceSurveyPointList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
cfgId: null,
devId: null,
spId: null,
state: null,
isDel: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询设测点关系列表 */
getList() {
this.loading = true;
listPitDeviceSurveyPoint(this.queryParams).then(response => {
this.pitDeviceSurveyPointList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
cfgId: null,
devId: null,
spId: null,
state: null,
remark: null,
isDel: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加设测点关系";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPitDeviceSurveyPoint(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改设测点关系";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updatePitDeviceSurveyPoint(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPitDeviceSurveyPoint(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除设测点关系编号为"' + ids + '"的数据项?').then(function() {
return delPitDeviceSurveyPoint(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('device/pitDeviceSurveyPoint/export', {
...this.queryParams
}, `pitDeviceSurveyPoint_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,344 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="配置ID" prop="cfgId">
<el-input
v-model="queryParams.cfgId"
placeholder="请输入配置ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端ID" prop="srvId">
<el-input
v-model="queryParams.srvId"
placeholder="请输入服务端ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端参数maxSp" prop="maxSp">
<el-input
v-model="queryParams.maxSp"
placeholder="请输入服务端参数maxSp"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端参数name" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入服务端参数name"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端参数nameEn" prop="nameEn">
<el-input
v-model="queryParams.nameEn"
placeholder="请输入服务端参数nameEn"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input
v-model="queryParams.state"
placeholder="请输入状态"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="${comment}" prop="isDel">
<el-input
v-model="queryParams.isDel"
placeholder="请输入${comment}"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['device:pitElement:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['device:pitElement:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['device:pitElement:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['device:pitElement:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="pitElementList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="${comment}" align="center" prop="id" />
<el-table-column label="配置ID" align="center" prop="cfgId" />
<el-table-column label="服务端ID" align="center" prop="srvId" />
<el-table-column label="服务端参数maxSp" align="center" prop="maxSp" />
<el-table-column label="服务端参数monitorStatus" align="center" prop="monitorStatus" />
<el-table-column label="服务端参数name" align="center" prop="name" />
<el-table-column label="服务端参数nameEn" align="center" prop="nameEn" />
<el-table-column label="服务端参数type" align="center" prop="type" />
<el-table-column label="状态" align="center" prop="state" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="${comment}" align="center" prop="isDel" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['device:pitElement:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['device:pitElement:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改监测项管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="配置ID" prop="cfgId">
<el-input v-model="form.cfgId" placeholder="请输入配置ID" />
</el-form-item>
<el-form-item label="服务端ID" prop="srvId">
<el-input v-model="form.srvId" placeholder="请输入服务端ID" />
</el-form-item>
<el-form-item label="服务端参数maxSp" prop="maxSp">
<el-input v-model="form.maxSp" placeholder="请输入服务端参数maxSp" />
</el-form-item>
<el-form-item label="服务端参数name" prop="name">
<el-input v-model="form.name" placeholder="请输入服务端参数name" />
</el-form-item>
<el-form-item label="服务端参数nameEn" prop="nameEn">
<el-input v-model="form.nameEn" placeholder="请输入服务端参数nameEn" />
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input v-model="form.state" placeholder="请输入状态" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="${comment}" prop="isDel">
<el-input v-model="form.isDel" placeholder="请输入${comment}" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPitElement, getPitElement, delPitElement, addPitElement, updatePitElement } from "@/api/device/pitElement";
export default {
name: "PitElement",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
pitElementList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
cfgId: null,
srvId: null,
maxSp: null,
monitorStatus: null,
name: null,
nameEn: null,
type: null,
state: null,
isDel: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询监测项管理列表 */
getList() {
this.loading = true;
listPitElement(this.queryParams).then(response => {
this.pitElementList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
cfgId: null,
srvId: null,
maxSp: null,
monitorStatus: null,
name: null,
nameEn: null,
type: null,
state: null,
remark: null,
isDel: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加监测项管理";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPitElement(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改监测项管理";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updatePitElement(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPitElement(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除监测项管理编号为"' + ids + '"的数据项?').then(function() {
return delPitElement(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('device/pitElement/export', {
...this.queryParams
}, `pitElement_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,394 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="配置ID" prop="cfgId">
<el-input
v-model="queryParams.cfgId"
placeholder="请输入配置ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端ID" prop="srvId">
<el-input
v-model="queryParams.srvId"
placeholder="请输入服务端ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="dev_pitmonit_southsmos_element表srvId" prop="monitorElementId">
<el-input
v-model="queryParams.monitorElementId"
placeholder="请输入dev_pitmonit_southsmos_element表srvId"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端name" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入服务端name"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端step" prop="step">
<el-input
v-model="queryParams.step"
placeholder="请输入服务端step"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端unit" prop="unit">
<el-input
v-model="queryParams.unit"
placeholder="请输入服务端unit"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端valueRange" prop="valueRange">
<el-input
v-model="queryParams.valueRange"
placeholder="请输入服务端valueRange"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端gmtCreate" prop="gmtCreate">
<el-input
v-model="queryParams.gmtCreate"
placeholder="请输入服务端gmtCreate"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端gmtModified" prop="gmtModified">
<el-input
v-model="queryParams.gmtModified"
placeholder="请输入服务端gmtModified"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input
v-model="queryParams.state"
placeholder="请输入状态"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="${comment}" prop="isDel">
<el-input
v-model="queryParams.isDel"
placeholder="请输入${comment}"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['device:pitElementItem:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['device:pitElementItem:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['device:pitElementItem:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['device:pitElementItem:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="pitElementItemList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="${comment}" align="center" prop="id" />
<el-table-column label="配置ID" align="center" prop="cfgId" />
<el-table-column label="服务端ID" align="center" prop="srvId" />
<el-table-column label="dev_pitmonit_southsmos_element表srvId" align="center" prop="monitorElementId" />
<el-table-column label="服务端name" align="center" prop="name" />
<el-table-column label="服务端step" align="center" prop="step" />
<el-table-column label="服务端unit" align="center" prop="unit" />
<el-table-column label="服务端valueRange" align="center" prop="valueRange" />
<el-table-column label="服务端gmtCreate" align="center" prop="gmtCreate" />
<el-table-column label="服务端gmtModified" align="center" prop="gmtModified" />
<el-table-column label="状态" align="center" prop="state" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="${comment}" align="center" prop="isDel" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['device:pitElementItem:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['device:pitElementItem:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改测项明细对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="配置ID" prop="cfgId">
<el-input v-model="form.cfgId" placeholder="请输入配置ID" />
</el-form-item>
<el-form-item label="服务端ID" prop="srvId">
<el-input v-model="form.srvId" placeholder="请输入服务端ID" />
</el-form-item>
<el-form-item label="dev_pitmonit_southsmos_element表srvId" prop="monitorElementId">
<el-input v-model="form.monitorElementId" placeholder="请输入dev_pitmonit_southsmos_element表srvId" />
</el-form-item>
<el-form-item label="服务端name" prop="name">
<el-input v-model="form.name" placeholder="请输入服务端name" />
</el-form-item>
<el-form-item label="服务端step" prop="step">
<el-input v-model="form.step" placeholder="请输入服务端step" />
</el-form-item>
<el-form-item label="服务端unit" prop="unit">
<el-input v-model="form.unit" placeholder="请输入服务端unit" />
</el-form-item>
<el-form-item label="服务端valueRange" prop="valueRange">
<el-input v-model="form.valueRange" placeholder="请输入服务端valueRange" />
</el-form-item>
<el-form-item label="服务端gmtCreate" prop="gmtCreate">
<el-input v-model="form.gmtCreate" placeholder="请输入服务端gmtCreate" />
</el-form-item>
<el-form-item label="服务端gmtModified" prop="gmtModified">
<el-input v-model="form.gmtModified" placeholder="请输入服务端gmtModified" />
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input v-model="form.state" placeholder="请输入状态" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="${comment}" prop="isDel">
<el-input v-model="form.isDel" placeholder="请输入${comment}" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPitElementItem, getPitElementItem, delPitElementItem, addPitElementItem, updatePitElementItem } from "@/api/device/pitElementItem";
export default {
name: "PitElementItem",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
pitElementItemList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
cfgId: null,
srvId: null,
monitorElementId: null,
name: null,
step: null,
unit: null,
valueRange: null,
gmtCreate: null,
gmtModified: null,
state: null,
isDel: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询测项明细列表 */
getList() {
this.loading = true;
listPitElementItem(this.queryParams).then(response => {
this.pitElementItemList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
cfgId: null,
srvId: null,
monitorElementId: null,
name: null,
step: null,
unit: null,
valueRange: null,
gmtCreate: null,
gmtModified: null,
state: null,
remark: null,
isDel: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加测项明细";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPitElementItem(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改测项明细";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updatePitElementItem(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPitElementItem(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除测项明细编号为"' + ids + '"的数据项?').then(function() {
return delPitElementItem(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('device/pitElementItem/export', {
...this.queryParams
}, `pitElementItem_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,457 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="配置ID" prop="cfgId">
<el-input
v-model="queryParams.cfgId"
placeholder="请输入配置ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="测点ID" prop="spId">
<el-input
v-model="queryParams.spId"
placeholder="请输入测点ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="所属监测点组ID" prop="groupId">
<el-input
v-model="queryParams.groupId"
placeholder="请输入所属监测点组ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="所属监测点组名称" prop="groupName">
<el-input
v-model="queryParams.groupName"
placeholder="请输入所属监测点组名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="监测项Id" prop="meId">
<el-input
v-model="queryParams.meId"
placeholder="请输入监测项Id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="监测项名称" prop="meName">
<el-input
v-model="queryParams.meName"
placeholder="请输入监测项名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="监测项英文标识名" prop="meNameEn">
<el-input
v-model="queryParams.meNameEn"
placeholder="请输入监测项英文标识名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="改时间" prop="modifyDate">
<el-date-picker clearable
v-model="queryParams.modifyDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择改时间">
</el-date-picker>
</el-form-item>
<el-form-item label="测点名称" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入测点名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="位置" prop="position">
<el-input
v-model="queryParams.position"
placeholder="请输入位置"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="数据来源形式0人工上传1设备" prop="dataSource">
<el-input
v-model="queryParams.dataSource"
placeholder="请输入数据来源形式0人工上传1设备"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间" prop="createDate">
<el-date-picker clearable
v-model="queryParams.createDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择创建时间">
</el-date-picker>
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input
v-model="queryParams.state"
placeholder="请输入状态"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="isDel">
<el-input
v-model="queryParams.isDel"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['device:pitSurveyPoint:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['device:pitSurveyPoint:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['device:pitSurveyPoint:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['device:pitSurveyPoint:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="pitSurveyPointList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="" align="center" prop="id" />
<el-table-column label="配置ID" align="center" prop="cfgId" />
<el-table-column label="测点ID" align="center" prop="spId" />
<el-table-column label="所属监测点组ID" align="center" prop="groupId" />
<el-table-column label="所属监测点组名称" align="center" prop="groupName" />
<el-table-column label="监测项Id" align="center" prop="meId" />
<el-table-column label="监测项名称" align="center" prop="meName" />
<el-table-column label="监测项英文标识名" align="center" prop="meNameEn" />
<el-table-column label="改时间" align="center" prop="modifyDate" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.modifyDate, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="测点名称" align="center" prop="name" />
<el-table-column label="位置" align="center" prop="position" />
<el-table-column label="数据来源形式0人工上传1设备" align="center" prop="dataSource" />
<el-table-column label="创建时间" align="center" prop="createDate" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createDate, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="服务器status" align="center" prop="status" />
<el-table-column label="状态" align="center" prop="state" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="" align="center" prop="isDel" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['device:pitSurveyPoint:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['device:pitSurveyPoint:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改测点管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="配置ID" prop="cfgId">
<el-input v-model="form.cfgId" placeholder="请输入配置ID" />
</el-form-item>
<el-form-item label="测点ID" prop="spId">
<el-input v-model="form.spId" placeholder="请输入测点ID" />
</el-form-item>
<el-form-item label="所属监测点组ID" prop="groupId">
<el-input v-model="form.groupId" placeholder="请输入所属监测点组ID" />
</el-form-item>
<el-form-item label="所属监测点组名称" prop="groupName">
<el-input v-model="form.groupName" placeholder="请输入所属监测点组名称" />
</el-form-item>
<el-form-item label="监测项Id" prop="meId">
<el-input v-model="form.meId" placeholder="请输入监测项Id" />
</el-form-item>
<el-form-item label="监测项名称" prop="meName">
<el-input v-model="form.meName" placeholder="请输入监测项名称" />
</el-form-item>
<el-form-item label="监测项英文标识名" prop="meNameEn">
<el-input v-model="form.meNameEn" placeholder="请输入监测项英文标识名" />
</el-form-item>
<el-form-item label="改时间" prop="modifyDate">
<el-date-picker clearable
v-model="form.modifyDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择改时间">
</el-date-picker>
</el-form-item>
<el-form-item label="测点名称" prop="name">
<el-input v-model="form.name" placeholder="请输入测点名称" />
</el-form-item>
<el-form-item label="位置" prop="position">
<el-input v-model="form.position" placeholder="请输入位置" />
</el-form-item>
<el-form-item label="数据来源形式0人工上传1设备" prop="dataSource">
<el-input v-model="form.dataSource" placeholder="请输入数据来源形式0人工上传1设备" />
</el-form-item>
<el-form-item label="创建时间" prop="createDate">
<el-date-picker clearable
v-model="form.createDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择创建时间">
</el-date-picker>
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input v-model="form.state" placeholder="请输入状态" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="" prop="isDel">
<el-input v-model="form.isDel" placeholder="请输入" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPitSurveyPoint, getPitSurveyPoint, delPitSurveyPoint, addPitSurveyPoint, updatePitSurveyPoint } from "@/api/device/pitSurveyPoint";
export default {
name: "PitSurveyPoint",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
pitSurveyPointList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
cfgId: null,
spId: null,
groupId: null,
groupName: null,
meId: null,
meName: null,
meNameEn: null,
modifyDate: null,
name: null,
position: null,
dataSource: null,
createDate: null,
status: null,
state: null,
isDel: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询测点管理列表 */
getList() {
this.loading = true;
listPitSurveyPoint(this.queryParams).then(response => {
this.pitSurveyPointList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
cfgId: null,
spId: null,
groupId: null,
groupName: null,
meId: null,
meName: null,
meNameEn: null,
modifyDate: null,
name: null,
position: null,
dataSource: null,
createDate: null,
status: null,
state: null,
remark: null,
isDel: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加测点管理";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPitSurveyPoint(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改测点管理";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updatePitSurveyPoint(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPitSurveyPoint(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除测点管理编号为"' + ids + '"的数据项?').then(function() {
return delPitSurveyPoint(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('device/pitSurveyPoint/export', {
...this.queryParams
}, `pitSurveyPoint_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,453 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="配置ID" prop="cfgId">
<el-input
v-model="queryParams.cfgId"
placeholder="请输入配置ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="服务端ID" prop="srvId">
<el-input
v-model="queryParams.srvId"
placeholder="请输入服务端ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警信息" prop="alarmInfo">
<el-input
v-model="queryParams.alarmInfo"
placeholder="请输入报警信息"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警名称" prop="alarmName">
<el-input
v-model="queryParams.alarmName"
placeholder="请输入报警名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="时间段起始点" prop="intervalA">
<el-input
v-model="queryParams.intervalA"
placeholder="请输入时间段起始点"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="时间段终止点" prop="intervalB">
<el-input
v-model="queryParams.intervalB"
placeholder="请输入时间段终止点"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警值等级0正常 1:超预警2超报警3超控制" prop="level">
<el-input
v-model="queryParams.level"
placeholder="请输入报警值等级0正常 1:超预警2超报警3超控制"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="监测项ID" prop="monitorElementId">
<el-input
v-model="queryParams.monitorElementId"
placeholder="请输入监测项ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="监测分项Id" prop="monitorItemId">
<el-input
v-model="queryParams.monitorItemId"
placeholder="请输入监测分项Id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="监测分项名称" prop="monitorItemName">
<el-input
v-model="queryParams.monitorItemName"
placeholder="请输入监测分项名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警值组Id" prop="tgId">
<el-input
v-model="queryParams.tgId"
placeholder="请输入报警值组Id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="报警值" prop="threshold">
<el-input
v-model="queryParams.threshold"
placeholder="请输入报警值"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="单位" prop="unit">
<el-input
v-model="queryParams.unit"
placeholder="请输入单位"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input
v-model="queryParams.state"
placeholder="请输入状态"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="isDel">
<el-input
v-model="queryParams.isDel"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['device:pitThreshold:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['device:pitThreshold:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['device:pitThreshold:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['device:pitThreshold:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="pitThresholdList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="" align="center" prop="id" />
<el-table-column label="配置ID" align="center" prop="cfgId" />
<el-table-column label="服务端ID" align="center" prop="srvId" />
<el-table-column label="报警信息" align="center" prop="alarmInfo" />
<el-table-column label="报警名称" align="center" prop="alarmName" />
<el-table-column label="时间段起始点" align="center" prop="intervalA" />
<el-table-column label="时间段终止点" align="center" prop="intervalB" />
<el-table-column label="报警值等级0正常 1:超预警2超报警3超控制" align="center" prop="level" />
<el-table-column label="监测项ID" align="center" prop="monitorElementId" />
<el-table-column label="监测分项Id" align="center" prop="monitorItemId" />
<el-table-column label="监测分项名称" align="center" prop="monitorItemName" />
<el-table-column label="报警值组Id" align="center" prop="tgId" />
<el-table-column label="报警值" align="center" prop="threshold" />
<el-table-column label="类型" align="center" prop="type" />
<el-table-column label="单位" align="center" prop="unit" />
<el-table-column label="状态" align="center" prop="state" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="" align="center" prop="isDel" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['device:pitThreshold:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['device:pitThreshold:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改报警阈值对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="配置ID" prop="cfgId">
<el-input v-model="form.cfgId" placeholder="请输入配置ID" />
</el-form-item>
<el-form-item label="服务端ID" prop="srvId">
<el-input v-model="form.srvId" placeholder="请输入服务端ID" />
</el-form-item>
<el-form-item label="报警信息" prop="alarmInfo">
<el-input v-model="form.alarmInfo" placeholder="请输入报警信息" />
</el-form-item>
<el-form-item label="报警名称" prop="alarmName">
<el-input v-model="form.alarmName" placeholder="请输入报警名称" />
</el-form-item>
<el-form-item label="时间段起始点" prop="intervalA">
<el-input v-model="form.intervalA" placeholder="请输入时间段起始点" />
</el-form-item>
<el-form-item label="时间段终止点" prop="intervalB">
<el-input v-model="form.intervalB" placeholder="请输入时间段终止点" />
</el-form-item>
<el-form-item label="报警值等级0正常 1:超预警2超报警3超控制" prop="level">
<el-input v-model="form.level" placeholder="请输入报警值等级0正常 1:超预警2超报警3超控制" />
</el-form-item>
<el-form-item label="监测项ID" prop="monitorElementId">
<el-input v-model="form.monitorElementId" placeholder="请输入监测项ID" />
</el-form-item>
<el-form-item label="监测分项Id" prop="monitorItemId">
<el-input v-model="form.monitorItemId" placeholder="请输入监测分项Id" />
</el-form-item>
<el-form-item label="监测分项名称" prop="monitorItemName">
<el-input v-model="form.monitorItemName" placeholder="请输入监测分项名称" />
</el-form-item>
<el-form-item label="报警值组Id" prop="tgId">
<el-input v-model="form.tgId" placeholder="请输入报警值组Id" />
</el-form-item>
<el-form-item label="报警值" prop="threshold">
<el-input v-model="form.threshold" placeholder="请输入报警值" />
</el-form-item>
<el-form-item label="单位" prop="unit">
<el-input v-model="form.unit" placeholder="请输入单位" />
</el-form-item>
<el-form-item label="状态" prop="state">
<el-input v-model="form.state" placeholder="请输入状态" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="" prop="isDel">
<el-input v-model="form.isDel" placeholder="请输入" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPitThreshold, getPitThreshold, delPitThreshold, addPitThreshold, updatePitThreshold } from "@/api/device/pitThreshold";
export default {
name: "PitThreshold",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
pitThresholdList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
cfgId: null,
srvId: null,
alarmInfo: null,
alarmName: null,
intervalA: null,
intervalB: null,
level: null,
monitorElementId: null,
monitorItemId: null,
monitorItemName: null,
tgId: null,
threshold: null,
type: null,
unit: null,
state: null,
isDel: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询报警阈值列表 */
getList() {
this.loading = true;
listPitThreshold(this.queryParams).then(response => {
this.pitThresholdList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
cfgId: null,
srvId: null,
alarmInfo: null,
alarmName: null,
intervalA: null,
intervalB: null,
level: null,
monitorElementId: null,
monitorItemId: null,
monitorItemName: null,
tgId: null,
threshold: null,
type: null,
unit: null,
state: null,
remark: null,
isDel: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加报警阈值";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPitThreshold(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改报警阈值";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updatePitThreshold(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPitThreshold(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除报警阈值编号为"' + ids + '"的数据项?').then(function() {
return delPitThreshold(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('device/pitThreshold/export', {
...this.queryParams
}, `pitThreshold_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,104 @@
package com.yanzhu.jh.device.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosAlarm;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosAlarmService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-08-13
*/
@RestController
@RequestMapping("/device/pitAlarm")
public class PitmonitSouthsmosAlarmController extends BaseController
{
@Autowired
private IPitmonitSouthsmosAlarmService devPitmonitSouthsmosAlarmService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitAlarm:list')")
@GetMapping("/list")
public TableDataInfo list(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm)
{
startPage();
List<PitmonitSouthsmosAlarm> list = devPitmonitSouthsmosAlarmService.selectDevPitmonitSouthsmosAlarmList(pitmonitSouthsmosAlarm);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitAlarm:export')")
@Log(title = "报警信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm)
{
List<PitmonitSouthsmosAlarm> list = devPitmonitSouthsmosAlarmService.selectDevPitmonitSouthsmosAlarmList(pitmonitSouthsmosAlarm);
ExcelUtil<PitmonitSouthsmosAlarm> util = new ExcelUtil<PitmonitSouthsmosAlarm>(PitmonitSouthsmosAlarm.class);
util.exportExcel(response, list, "报警信息数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitAlarm:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(devPitmonitSouthsmosAlarmService.selectDevPitmonitSouthsmosAlarmById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitAlarm:add')")
@Log(title = "报警信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm)
{
return toAjax(devPitmonitSouthsmosAlarmService.insertDevPitmonitSouthsmosAlarm(pitmonitSouthsmosAlarm));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitAlarm:edit')")
@Log(title = "报警信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm)
{
return toAjax(devPitmonitSouthsmosAlarmService.updateDevPitmonitSouthsmosAlarm(pitmonitSouthsmosAlarm));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitAlarm:remove')")
@Log(title = "报警信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(devPitmonitSouthsmosAlarmService.deleteDevPitmonitSouthsmosAlarmByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.yanzhu.jh.device.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosData;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosDataService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-08-13
*/
@RestController
@RequestMapping("/device/pitData")
public class PitmonitSouthsmosDataController extends BaseController
{
@Autowired
private IPitmonitSouthsmosDataService devPitmonitSouthsmosDataService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitData:list')")
@GetMapping("/list")
public TableDataInfo list(PitmonitSouthsmosData pitmonitSouthsmosData)
{
startPage();
List<PitmonitSouthsmosData> list = devPitmonitSouthsmosDataService.selectDevPitmonitSouthsmosDataList(pitmonitSouthsmosData);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitData:export')")
@Log(title = "测点数据", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PitmonitSouthsmosData pitmonitSouthsmosData)
{
List<PitmonitSouthsmosData> list = devPitmonitSouthsmosDataService.selectDevPitmonitSouthsmosDataList(pitmonitSouthsmosData);
ExcelUtil<PitmonitSouthsmosData> util = new ExcelUtil<PitmonitSouthsmosData>(PitmonitSouthsmosData.class);
util.exportExcel(response, list, "测点数据数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitData:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(devPitmonitSouthsmosDataService.selectDevPitmonitSouthsmosDataById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitData:add')")
@Log(title = "测点数据", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PitmonitSouthsmosData pitmonitSouthsmosData)
{
return toAjax(devPitmonitSouthsmosDataService.insertDevPitmonitSouthsmosData(pitmonitSouthsmosData));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitData:edit')")
@Log(title = "测点数据", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PitmonitSouthsmosData pitmonitSouthsmosData)
{
return toAjax(devPitmonitSouthsmosDataService.updateDevPitmonitSouthsmosData(pitmonitSouthsmosData));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitData:remove')")
@Log(title = "测点数据", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(devPitmonitSouthsmosDataService.deleteDevPitmonitSouthsmosDataByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.yanzhu.jh.device.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosDevSp;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosDevSpService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-08-13
*/
@RestController
@RequestMapping("/device/pitDeviceSurveyPoint")
public class PitmonitSouthsmosDevSpController extends BaseController
{
@Autowired
private IPitmonitSouthsmosDevSpService devPitmonitSouthsmosDevSpService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDeviceSurveyPoint:list')")
@GetMapping("/list")
public TableDataInfo list(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp)
{
startPage();
List<PitmonitSouthsmosDevSp> list = devPitmonitSouthsmosDevSpService.selectDevPitmonitSouthsmosDevSpList(pitmonitSouthsmosDevSp);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDeviceSurveyPoint:export')")
@Log(title = "设测点关系", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp)
{
List<PitmonitSouthsmosDevSp> list = devPitmonitSouthsmosDevSpService.selectDevPitmonitSouthsmosDevSpList(pitmonitSouthsmosDevSp);
ExcelUtil<PitmonitSouthsmosDevSp> util = new ExcelUtil<PitmonitSouthsmosDevSp>(PitmonitSouthsmosDevSp.class);
util.exportExcel(response, list, "设测点关系数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDeviceSurveyPoint:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(devPitmonitSouthsmosDevSpService.selectDevPitmonitSouthsmosDevSpById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDeviceSurveyPoint:add')")
@Log(title = "设测点关系", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp)
{
return toAjax(devPitmonitSouthsmosDevSpService.insertDevPitmonitSouthsmosDevSp(pitmonitSouthsmosDevSp));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDeviceSurveyPoint:edit')")
@Log(title = "设测点关系", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp)
{
return toAjax(devPitmonitSouthsmosDevSpService.updateDevPitmonitSouthsmosDevSp(pitmonitSouthsmosDevSp));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDeviceSurveyPoint:remove')")
@Log(title = "设测点关系", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(devPitmonitSouthsmosDevSpService.deleteDevPitmonitSouthsmosDevSpByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.yanzhu.jh.device.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosDevice;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosDeviceService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-08-13
*/
@RestController
@RequestMapping("/device/pitDevice")
public class PitmonitSouthsmosDeviceController extends BaseController
{
@Autowired
private IPitmonitSouthsmosDeviceService devPitmonitSouthsmosDeviceService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDevice:list')")
@GetMapping("/list")
public TableDataInfo list(PitmonitSouthsmosDevice pitmonitSouthsmosDevice)
{
startPage();
List<PitmonitSouthsmosDevice> list = devPitmonitSouthsmosDeviceService.selectDevPitmonitSouthsmosDeviceList(pitmonitSouthsmosDevice);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDevice:export')")
@Log(title = "设备管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PitmonitSouthsmosDevice pitmonitSouthsmosDevice)
{
List<PitmonitSouthsmosDevice> list = devPitmonitSouthsmosDeviceService.selectDevPitmonitSouthsmosDeviceList(pitmonitSouthsmosDevice);
ExcelUtil<PitmonitSouthsmosDevice> util = new ExcelUtil<PitmonitSouthsmosDevice>(PitmonitSouthsmosDevice.class);
util.exportExcel(response, list, "设备管理数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDevice:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(devPitmonitSouthsmosDeviceService.selectDevPitmonitSouthsmosDeviceById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDevice:add')")
@Log(title = "设备管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PitmonitSouthsmosDevice pitmonitSouthsmosDevice)
{
return toAjax(devPitmonitSouthsmosDeviceService.insertDevPitmonitSouthsmosDevice(pitmonitSouthsmosDevice));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDevice:edit')")
@Log(title = "设备管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PitmonitSouthsmosDevice pitmonitSouthsmosDevice)
{
return toAjax(devPitmonitSouthsmosDeviceService.updateDevPitmonitSouthsmosDevice(pitmonitSouthsmosDevice));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitDevice:remove')")
@Log(title = "设备管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(devPitmonitSouthsmosDeviceService.deleteDevPitmonitSouthsmosDeviceByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.yanzhu.jh.device.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosElement;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosElementService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-08-13
*/
@RestController
@RequestMapping("/device/pitElement")
public class PitmonitSouthsmosElementController extends BaseController
{
@Autowired
private IPitmonitSouthsmosElementService devPitmonitSouthsmosElementService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElement:list')")
@GetMapping("/list")
public TableDataInfo list(PitmonitSouthsmosElement pitmonitSouthsmosElement)
{
startPage();
List<PitmonitSouthsmosElement> list = devPitmonitSouthsmosElementService.selectDevPitmonitSouthsmosElementList(pitmonitSouthsmosElement);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElement:export')")
@Log(title = "监测项管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PitmonitSouthsmosElement pitmonitSouthsmosElement)
{
List<PitmonitSouthsmosElement> list = devPitmonitSouthsmosElementService.selectDevPitmonitSouthsmosElementList(pitmonitSouthsmosElement);
ExcelUtil<PitmonitSouthsmosElement> util = new ExcelUtil<PitmonitSouthsmosElement>(PitmonitSouthsmosElement.class);
util.exportExcel(response, list, "监测项管理数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElement:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(devPitmonitSouthsmosElementService.selectDevPitmonitSouthsmosElementById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElement:add')")
@Log(title = "监测项管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PitmonitSouthsmosElement pitmonitSouthsmosElement)
{
return toAjax(devPitmonitSouthsmosElementService.insertDevPitmonitSouthsmosElement(pitmonitSouthsmosElement));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElement:edit')")
@Log(title = "监测项管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PitmonitSouthsmosElement pitmonitSouthsmosElement)
{
return toAjax(devPitmonitSouthsmosElementService.updateDevPitmonitSouthsmosElement(pitmonitSouthsmosElement));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElement:remove')")
@Log(title = "监测项管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(devPitmonitSouthsmosElementService.deleteDevPitmonitSouthsmosElementByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.yanzhu.jh.device.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosElementItem;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosElementItemService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-08-13
*/
@RestController
@RequestMapping("/device/pitElementItem")
public class PitmonitSouthsmosElementItemController extends BaseController
{
@Autowired
private IPitmonitSouthsmosElementItemService devPitmonitSouthsmosElementItemService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElementItem:list')")
@GetMapping("/list")
public TableDataInfo list(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem)
{
startPage();
List<PitmonitSouthsmosElementItem> list = devPitmonitSouthsmosElementItemService.selectDevPitmonitSouthsmosElementItemList(pitmonitSouthsmosElementItem);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElementItem:export')")
@Log(title = "测项明细", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem)
{
List<PitmonitSouthsmosElementItem> list = devPitmonitSouthsmosElementItemService.selectDevPitmonitSouthsmosElementItemList(pitmonitSouthsmosElementItem);
ExcelUtil<PitmonitSouthsmosElementItem> util = new ExcelUtil<PitmonitSouthsmosElementItem>(PitmonitSouthsmosElementItem.class);
util.exportExcel(response, list, "测项明细数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElementItem:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(devPitmonitSouthsmosElementItemService.selectDevPitmonitSouthsmosElementItemById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElementItem:add')")
@Log(title = "测项明细", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem)
{
return toAjax(devPitmonitSouthsmosElementItemService.insertDevPitmonitSouthsmosElementItem(pitmonitSouthsmosElementItem));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElementItem:edit')")
@Log(title = "测项明细", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem)
{
return toAjax(devPitmonitSouthsmosElementItemService.updateDevPitmonitSouthsmosElementItem(pitmonitSouthsmosElementItem));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitElementItem:remove')")
@Log(title = "测项明细", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(devPitmonitSouthsmosElementItemService.deleteDevPitmonitSouthsmosElementItemByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.yanzhu.jh.device.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosSurveypoint;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosSurveypointService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-08-13
*/
@RestController
@RequestMapping("/device/pitSurveyPoint")
public class PitmonitSouthsmosSurveypointController extends BaseController
{
@Autowired
private IPitmonitSouthsmosSurveypointService devPitmonitSouthsmosSurveypointService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitSurveyPoint:list')")
@GetMapping("/list")
public TableDataInfo list(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint)
{
startPage();
List<PitmonitSouthsmosSurveypoint> list = devPitmonitSouthsmosSurveypointService.selectDevPitmonitSouthsmosSurveypointList(pitmonitSouthsmosSurveypoint);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitSurveyPoint:export')")
@Log(title = "测点管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint)
{
List<PitmonitSouthsmosSurveypoint> list = devPitmonitSouthsmosSurveypointService.selectDevPitmonitSouthsmosSurveypointList(pitmonitSouthsmosSurveypoint);
ExcelUtil<PitmonitSouthsmosSurveypoint> util = new ExcelUtil<PitmonitSouthsmosSurveypoint>(PitmonitSouthsmosSurveypoint.class);
util.exportExcel(response, list, "测点管理数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitSurveyPoint:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(devPitmonitSouthsmosSurveypointService.selectDevPitmonitSouthsmosSurveypointById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitSurveyPoint:add')")
@Log(title = "测点管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint)
{
return toAjax(devPitmonitSouthsmosSurveypointService.insertDevPitmonitSouthsmosSurveypoint(pitmonitSouthsmosSurveypoint));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitSurveyPoint:edit')")
@Log(title = "测点管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint)
{
return toAjax(devPitmonitSouthsmosSurveypointService.updateDevPitmonitSouthsmosSurveypoint(pitmonitSouthsmosSurveypoint));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitSurveyPoint:remove')")
@Log(title = "测点管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(devPitmonitSouthsmosSurveypointService.deleteDevPitmonitSouthsmosSurveypointByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.yanzhu.jh.device.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosThreshold;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosThresholdService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-08-13
*/
@RestController
@RequestMapping("/device/pitThreshold")
public class PitmonitSouthsmosThresholdController extends BaseController
{
@Autowired
private IPitmonitSouthsmosThresholdService devPitmonitSouthsmosThresholdService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitThreshold:list')")
@GetMapping("/list")
public TableDataInfo list(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold)
{
startPage();
List<PitmonitSouthsmosThreshold> list = devPitmonitSouthsmosThresholdService.selectDevPitmonitSouthsmosThresholdList(pitmonitSouthsmosThreshold);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitThreshold:export')")
@Log(title = "报警阈值", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold)
{
List<PitmonitSouthsmosThreshold> list = devPitmonitSouthsmosThresholdService.selectDevPitmonitSouthsmosThresholdList(pitmonitSouthsmosThreshold);
ExcelUtil<PitmonitSouthsmosThreshold> util = new ExcelUtil<PitmonitSouthsmosThreshold>(PitmonitSouthsmosThreshold.class);
util.exportExcel(response, list, "报警阈值数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitThreshold:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(devPitmonitSouthsmosThresholdService.selectDevPitmonitSouthsmosThresholdById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitThreshold:add')")
@Log(title = "报警阈值", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold)
{
return toAjax(devPitmonitSouthsmosThresholdService.insertDevPitmonitSouthsmosThreshold(pitmonitSouthsmosThreshold));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitThreshold:edit')")
@Log(title = "报警阈值", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold)
{
return toAjax(devPitmonitSouthsmosThresholdService.updateDevPitmonitSouthsmosThreshold(pitmonitSouthsmosThreshold));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitThreshold:remove')")
@Log(title = "报警阈值", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(devPitmonitSouthsmosThresholdService.deleteDevPitmonitSouthsmosThresholdByIds(ids));
}
}

View File

@ -0,0 +1,112 @@
package com.yanzhu.jh.device.controller;
import java.util.List;
import com.ruoyi.common.enums.BusinessType;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.yanzhu.jh.device.domain.ProjectPitMonitCfg;
import com.yanzhu.jh.device.service.IProjectPitMonitCfgService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import javax.servlet.http.HttpServletResponse;
/**
*
Controller
*
* @author ruoyi
* @date 2024-08-13
*/
@RestController
@RequestMapping("/device/pitConfig")
public class ProjectPitMonitCfgController extends BaseController
{
@Autowired
private IProjectPitMonitCfgService surProjectPitMonitCfgService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitConfig:list')")
@GetMapping("/list")
public TableDataInfo list(ProjectPitMonitCfg projectPitMonitCfg)
{
startPage();
List<ProjectPitMonitCfg> list = surProjectPitMonitCfgService.selectSurProjectPitMonitCfgList(projectPitMonitCfg);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitConfig:export')")
@Log(title = "项目基坑监测配置", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ProjectPitMonitCfg surProjectPitMonitCfg)
{
List<ProjectPitMonitCfg> list = surProjectPitMonitCfgService.selectSurProjectPitMonitCfgList(surProjectPitMonitCfg);
ExcelUtil<ProjectPitMonitCfg> util = new ExcelUtil<ProjectPitMonitCfg>(ProjectPitMonitCfg.class);
util.exportExcel(response, list, "项目基坑监测配置数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitConfig:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(surProjectPitMonitCfgService.selectSurProjectPitMonitCfgById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitConfig:add')")
@Log(title = "项目基坑监测配置", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(ProjectPitMonitCfg surProjectPitMonitCfg)
{
return toAjax(surProjectPitMonitCfgService.insertSurProjectPitMonitCfg(surProjectPitMonitCfg));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitConfig:edit')")
@Log(title = "项目基坑监测配置", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(ProjectPitMonitCfg surProjectPitMonitCfg)
{
return toAjax(surProjectPitMonitCfgService.updateSurProjectPitMonitCfg(surProjectPitMonitCfg));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('device:pitConfig:remove')")
@Log(title = "项目基坑监测配置", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(surProjectPitMonitCfgService.deleteSurProjectPitMonitCfgByIds(ids));
}
}

View File

@ -0,0 +1,440 @@
package com.yanzhu.jh.device.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* dev_pitmonit_southsmos_alarm
*
* @author ruoyi
* @date 2024-08-13
*/
public class PitmonitSouthsmosAlarm extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 配置ID */
@Excel(name = "配置ID")
private Long cfgId;
/** 服务端ID */
@Excel(name = "服务端ID")
private Long srvId;
/** 该条报警信息的一个描述 */
@Excel(name = "该条报警信息的一个描述")
private String alarmInfo;
/** 产生报警的来源,格式:点名-监测分项名 */
@Excel(name = "产生报警的来源,格式:点名-监测分项名")
private String alarmSource;
/** 次产生报警的时间(暂时没用上) */
@Excel(name = "次产生报警的时间", readConverterExp = "次产生报警的时间(暂时没用上)")
private Date gmtAlarm;
/** 报警时间,如果数据回落至正常范围或被处理,则报警结束 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "报警时间,如果数据回落至正常范围或被处理,则报警结束", width = 30, dateFormat = "yyyy-MM-dd")
private Date gmtAlarmOver;
/** 开始后第一次产生报警的时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "开始后第一次产生报警的时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date gmtAlarmStart;
/** 数据库记录创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "数据库记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date gmtCreate;
/** 报警更新时间,该报警每产生一次都会更新该时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "报警更新时间,该报警每产生一次都会更新该时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date gmtModified;
/** 报警所处最高级别1超预警2超报警3超控制 */
@Excel(name = "报警所处最高级别1超预警2超报警3超控制")
private Long level;
/** 监测项id */
@Excel(name = "监测项id")
private Long meId;
/** 监测项名称 */
@Excel(name = "监测项名称")
private String meName;
/** 监测分项id */
@Excel(name = "监测分项id")
private Long monitorItemId;
/** 报警产生次数,如果报警来源一样,类型一样,则认为是同一条报警,多次产生也只会累加次数 */
@Excel(name = "报警产生次数,如果报警来源一样,类型一样,则认为是同一条报警,多次产生也只会累加次数")
private Long numbers;
/** 报警处理结果 */
@Excel(name = "报警处理结果")
private String result;
/** 处理图片地址 */
@Excel(name = "处理图片地址")
private String resultUrl;
/** 报警测点id */
@Excel(name = "报警测点id")
private Long spId;
/** 报警测点名 */
@Excel(name = "报警测点名")
private String spName;
/** 处理人 */
@Excel(name = "处理人")
private String staff;
/** 处理电话 */
@Excel(name = "处理电话")
private String staffPhone;
/** 报警状态:实时、历史,处理过的报警信息将变为历史,不再返回 */
@Excel(name = "报警状态:实时、历史,处理过的报警信息将变为历史,不再返回")
private String status;
/** 报警工程id */
@Excel(name = "报警工程id")
private Long structureId;
/** 报警工程名 */
@Excel(name = "报警工程名")
private String structureName;
/** 该警最高级别设置的阈值 */
@Excel(name = "该警最高级别设置的阈值")
private String threshold;
/** 类型:数据异常、设备异常,数据报警都是数据异常 */
@Excel(name = "类型:数据异常、设备异常,数据报警都是数据异常")
private String type;
/** 判断的标准:测量值、单次变化量、累计变化量、变化速率 */
@Excel(name = "判断的标准:测量值、单次变化量、累计变化量、变化速率")
private String variety;
/** 状态 */
@Excel(name = "状态")
private Long state;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgId(Long cfgId)
{
this.cfgId = cfgId;
}
public Long getCfgId()
{
return cfgId;
}
public void setSrvId(Long srvId)
{
this.srvId = srvId;
}
public Long getSrvId()
{
return srvId;
}
public void setAlarmInfo(String alarmInfo)
{
this.alarmInfo = alarmInfo;
}
public String getAlarmInfo()
{
return alarmInfo;
}
public void setAlarmSource(String alarmSource)
{
this.alarmSource = alarmSource;
}
public String getAlarmSource()
{
return alarmSource;
}
public void setGmtAlarm(Date gmtAlarm)
{
this.gmtAlarm = gmtAlarm;
}
public Date getGmtAlarm()
{
return gmtAlarm;
}
public void setGmtAlarmOver(Date gmtAlarmOver)
{
this.gmtAlarmOver = gmtAlarmOver;
}
public Date getGmtAlarmOver()
{
return gmtAlarmOver;
}
public void setGmtAlarmStart(Date gmtAlarmStart)
{
this.gmtAlarmStart = gmtAlarmStart;
}
public Date getGmtAlarmStart()
{
return gmtAlarmStart;
}
public void setGmtCreate(Date gmtCreate)
{
this.gmtCreate = gmtCreate;
}
public Date getGmtCreate()
{
return gmtCreate;
}
public void setGmtModified(Date gmtModified)
{
this.gmtModified = gmtModified;
}
public Date getGmtModified()
{
return gmtModified;
}
public void setLevel(Long level)
{
this.level = level;
}
public Long getLevel()
{
return level;
}
public void setMeId(Long meId)
{
this.meId = meId;
}
public Long getMeId()
{
return meId;
}
public void setMeName(String meName)
{
this.meName = meName;
}
public String getMeName()
{
return meName;
}
public void setMonitorItemId(Long monitorItemId)
{
this.monitorItemId = monitorItemId;
}
public Long getMonitorItemId()
{
return monitorItemId;
}
public void setNumbers(Long numbers)
{
this.numbers = numbers;
}
public Long getNumbers()
{
return numbers;
}
public void setResult(String result)
{
this.result = result;
}
public String getResult()
{
return result;
}
public void setResultUrl(String resultUrl)
{
this.resultUrl = resultUrl;
}
public String getResultUrl()
{
return resultUrl;
}
public void setSpId(Long spId)
{
this.spId = spId;
}
public Long getSpId()
{
return spId;
}
public void setSpName(String spName)
{
this.spName = spName;
}
public String getSpName()
{
return spName;
}
public void setStaff(String staff)
{
this.staff = staff;
}
public String getStaff()
{
return staff;
}
public void setStaffPhone(String staffPhone)
{
this.staffPhone = staffPhone;
}
public String getStaffPhone()
{
return staffPhone;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setStructureId(Long structureId)
{
this.structureId = structureId;
}
public Long getStructureId()
{
return structureId;
}
public void setStructureName(String structureName)
{
this.structureName = structureName;
}
public String getStructureName()
{
return structureName;
}
public void setThreshold(String threshold)
{
this.threshold = threshold;
}
public String getThreshold()
{
return threshold;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setVariety(String variety)
{
this.variety = variety;
}
public String getVariety()
{
return variety;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgId", getCfgId())
.append("srvId", getSrvId())
.append("alarmInfo", getAlarmInfo())
.append("alarmSource", getAlarmSource())
.append("gmtAlarm", getGmtAlarm())
.append("gmtAlarmOver", getGmtAlarmOver())
.append("gmtAlarmStart", getGmtAlarmStart())
.append("gmtCreate", getGmtCreate())
.append("gmtModified", getGmtModified())
.append("level", getLevel())
.append("meId", getMeId())
.append("meName", getMeName())
.append("monitorItemId", getMonitorItemId())
.append("numbers", getNumbers())
.append("result", getResult())
.append("resultUrl", getResultUrl())
.append("spId", getSpId())
.append("spName", getSpName())
.append("staff", getStaff())
.append("staffPhone", getStaffPhone())
.append("status", getStatus())
.append("structureId", getStructureId())
.append("structureName", getStructureName())
.append("threshold", getThreshold())
.append("type", getType())
.append("variety", getVariety())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,270 @@
package com.yanzhu.jh.device.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* dev_pitmonit_southsmos_data
*
* @author ruoyi
* @date 2024-08-13
*/
public class PitmonitSouthsmosData extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** */
private Long id;
/** 配置ID */
@Excel(name = "配置ID")
private Long cfgId;
/** 数据类型:horizontal-水平位移(x,y),presureWallsideSoil-围护墙侧向土压力,waterLevel-地下水位 */
@Excel(name = "数据类型:horizontal-水平位移(x,y),presureWallsideSoil-围护墙侧向土压力,waterLevel-地下水位")
private String dataType;
/** 服务端dataId */
@Excel(name = "服务端dataId")
private Long dataId;
/** 测点Id */
@Excel(name = "测点Id")
private Long spId;
/** 测点名 */
@Excel(name = "测点名")
private String spName;
/** 收集时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "收集时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date collectTime;
/** 变化速率(X) */
@Excel(name = "变化速率(X)")
private BigDecimal changeRate;
/** 变化速率(Y) */
@Excel(name = "变化速率(Y)")
private BigDecimal changeRate2;
/** */
@Excel(name = "")
private BigDecimal displace;
/** */
@Excel(name = "")
private BigDecimal displace2;
/** 累计变化量单位为m(X) */
@Excel(name = "累计变化量单位为m(X)")
private BigDecimal totalize;
/** 累计变化量单位为m(Y) */
@Excel(name = "累计变化量单位为m(Y)")
private BigDecimal totalize2;
/** 单次变化量单位为m(X) */
@Excel(name = "单次变化量单位为m(X)")
private BigDecimal variation;
/** 单次变化量单位为m(Y) */
@Excel(name = "单次变化量单位为m(Y)")
private BigDecimal variation2;
/** 状态 */
@Excel(name = "状态")
private Long state;
/** */
@Excel(name = "")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgId(Long cfgId)
{
this.cfgId = cfgId;
}
public Long getCfgId()
{
return cfgId;
}
public void setDataType(String dataType)
{
this.dataType = dataType;
}
public String getDataType()
{
return dataType;
}
public void setDataId(Long dataId)
{
this.dataId = dataId;
}
public Long getDataId()
{
return dataId;
}
public void setSpId(Long spId)
{
this.spId = spId;
}
public Long getSpId()
{
return spId;
}
public void setSpName(String spName)
{
this.spName = spName;
}
public String getSpName()
{
return spName;
}
public void setCollectTime(Date collectTime)
{
this.collectTime = collectTime;
}
public Date getCollectTime()
{
return collectTime;
}
public void setChangeRate(BigDecimal changeRate)
{
this.changeRate = changeRate;
}
public BigDecimal getChangeRate()
{
return changeRate;
}
public void setChangeRate2(BigDecimal changeRate2)
{
this.changeRate2 = changeRate2;
}
public BigDecimal getChangeRate2()
{
return changeRate2;
}
public void setDisplace(BigDecimal displace)
{
this.displace = displace;
}
public BigDecimal getDisplace()
{
return displace;
}
public void setDisplace2(BigDecimal displace2)
{
this.displace2 = displace2;
}
public BigDecimal getDisplace2()
{
return displace2;
}
public void setTotalize(BigDecimal totalize)
{
this.totalize = totalize;
}
public BigDecimal getTotalize()
{
return totalize;
}
public void setTotalize2(BigDecimal totalize2)
{
this.totalize2 = totalize2;
}
public BigDecimal getTotalize2()
{
return totalize2;
}
public void setVariation(BigDecimal variation)
{
this.variation = variation;
}
public BigDecimal getVariation()
{
return variation;
}
public void setVariation2(BigDecimal variation2)
{
this.variation2 = variation2;
}
public BigDecimal getVariation2()
{
return variation2;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgId", getCfgId())
.append("dataType", getDataType())
.append("dataId", getDataId())
.append("spId", getSpId())
.append("spName", getSpName())
.append("collectTime", getCollectTime())
.append("changeRate", getChangeRate())
.append("changeRate2", getChangeRate2())
.append("displace", getDisplace())
.append("displace2", getDisplace2())
.append("totalize", getTotalize())
.append("totalize2", getTotalize2())
.append("variation", getVariation())
.append("variation2", getVariation2())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,112 @@
package com.yanzhu.jh.device.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* dev_pitmonit_southsmos_dev_sp
*
* @author ruoyi
* @date 2024-08-13
*/
public class PitmonitSouthsmosDevSp extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 配置ID */
@Excel(name = "配置ID")
private Long cfgId;
/** 设备ID */
@Excel(name = "设备ID")
private Long devId;
/** 测点ID */
@Excel(name = "测点ID")
private Long spId;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long state;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgId(Long cfgId)
{
this.cfgId = cfgId;
}
public Long getCfgId()
{
return cfgId;
}
public void setDevId(Long devId)
{
this.devId = devId;
}
public Long getDevId()
{
return devId;
}
public void setSpId(Long spId)
{
this.spId = spId;
}
public Long getSpId()
{
return spId;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgId", getCfgId())
.append("devId", getDevId())
.append("spId", getSpId())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,395 @@
package com.yanzhu.jh.device.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* dev_pitmonit_southsmos_device
*
* @author ruoyi
* @date 2024-08-13
*/
public class PitmonitSouthsmosDevice extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** */
private Long id;
/** 配置ID */
@Excel(name = "配置ID")
private Long cfgId;
/** 设备ID */
@Excel(name = "设备ID")
private Long devId;
/** */
@Excel(name = "")
private String autoType;
/** */
@Excel(name = "")
private String certUrl;
/** */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
private Date checkDate;
/** 设备名称 */
@Excel(name = "设备名称")
private String devCode;
/** */
@Excel(name = "")
private String devShadow;
/** */
@Excel(name = "")
private String devType;
/** */
@Excel(name = "")
private String devTypeName;
/** */
@Excel(name = "")
private String key;
/** */
@Excel(name = "")
private String manufacturer;
/** 设备名称 */
@Excel(name = "设备名称")
private String name;
/** */
@Excel(name = "")
private Long orgId;
/** */
@Excel(name = "")
private String parent;
/** */
@Excel(name = "")
private String parentIds;
/** */
@Excel(name = "")
private String productType;
/** 位置 */
@Excel(name = "位置")
private String position;
/** */
@Excel(name = "")
private String status;
/** 工程ID */
@Excel(name = "工程ID")
private Long structureId;
/** */
@Excel(name = "")
private String structureName;
/** */
@Excel(name = "")
private String typeCategory;
/** */
@Excel(name = "")
private String typeName;
/** */
@Excel(name = "")
private String verifyDate;
/** */
@Excel(name = "")
private Long state;
/** */
@Excel(name = "")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgId(Long cfgId)
{
this.cfgId = cfgId;
}
public Long getCfgId()
{
return cfgId;
}
public void setDevId(Long devId)
{
this.devId = devId;
}
public Long getDevId()
{
return devId;
}
public void setAutoType(String autoType)
{
this.autoType = autoType;
}
public String getAutoType()
{
return autoType;
}
public void setCertUrl(String certUrl)
{
this.certUrl = certUrl;
}
public String getCertUrl()
{
return certUrl;
}
public void setCheckDate(Date checkDate)
{
this.checkDate = checkDate;
}
public Date getCheckDate()
{
return checkDate;
}
public void setDevCode(String devCode)
{
this.devCode = devCode;
}
public String getDevCode()
{
return devCode;
}
public void setDevShadow(String devShadow)
{
this.devShadow = devShadow;
}
public String getDevShadow()
{
return devShadow;
}
public void setDevType(String devType)
{
this.devType = devType;
}
public String getDevType()
{
return devType;
}
public void setDevTypeName(String devTypeName)
{
this.devTypeName = devTypeName;
}
public String getDevTypeName()
{
return devTypeName;
}
public void setKey(String key)
{
this.key = key;
}
public String getKey()
{
return key;
}
public void setManufacturer(String manufacturer)
{
this.manufacturer = manufacturer;
}
public String getManufacturer()
{
return manufacturer;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setOrgId(Long orgId)
{
this.orgId = orgId;
}
public Long getOrgId()
{
return orgId;
}
public void setParent(String parent)
{
this.parent = parent;
}
public String getParent()
{
return parent;
}
public void setParentIds(String parentIds)
{
this.parentIds = parentIds;
}
public String getParentIds()
{
return parentIds;
}
public void setProductType(String productType)
{
this.productType = productType;
}
public String getProductType()
{
return productType;
}
public void setPosition(String position)
{
this.position = position;
}
public String getPosition()
{
return position;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setStructureId(Long structureId)
{
this.structureId = structureId;
}
public Long getStructureId()
{
return structureId;
}
public void setStructureName(String structureName)
{
this.structureName = structureName;
}
public String getStructureName()
{
return structureName;
}
public void setTypeCategory(String typeCategory)
{
this.typeCategory = typeCategory;
}
public String getTypeCategory()
{
return typeCategory;
}
public void setTypeName(String typeName)
{
this.typeName = typeName;
}
public String getTypeName()
{
return typeName;
}
public void setVerifyDate(String verifyDate)
{
this.verifyDate = verifyDate;
}
public String getVerifyDate()
{
return verifyDate;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgId", getCfgId())
.append("devId", getDevId())
.append("autoType", getAutoType())
.append("certUrl", getCertUrl())
.append("checkDate", getCheckDate())
.append("devCode", getDevCode())
.append("devShadow", getDevShadow())
.append("devType", getDevType())
.append("devTypeName", getDevTypeName())
.append("key", getKey())
.append("manufacturer", getManufacturer())
.append("name", getName())
.append("orgId", getOrgId())
.append("parent", getParent())
.append("parentIds", getParentIds())
.append("productType", getProductType())
.append("position", getPosition())
.append("status", getStatus())
.append("structureId", getStructureId())
.append("structureName", getStructureName())
.append("typeCategory", getTypeCategory())
.append("typeName", getTypeName())
.append("verifyDate", getVerifyDate())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,168 @@
package com.yanzhu.jh.device.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* dev_pitmonit_southsmos_element
*
* @author ruoyi
* @date 2024-08-13
*/
public class PitmonitSouthsmosElement extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 配置ID */
@Excel(name = "配置ID")
private Long cfgId;
/** 服务端ID */
@Excel(name = "服务端ID")
private Long srvId;
/** 服务端参数maxSp */
@Excel(name = "服务端参数maxSp")
private String maxSp;
/** 服务端参数monitorStatus */
@Excel(name = "服务端参数monitorStatus")
private String monitorStatus;
/** 服务端参数name */
@Excel(name = "服务端参数name")
private String name;
/** 服务端参数nameEn */
@Excel(name = "服务端参数nameEn")
private String nameEn;
/** 服务端参数type */
@Excel(name = "服务端参数type")
private String type;
/** 状态 */
@Excel(name = "状态")
private Long state;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgId(Long cfgId)
{
this.cfgId = cfgId;
}
public Long getCfgId()
{
return cfgId;
}
public void setSrvId(Long srvId)
{
this.srvId = srvId;
}
public Long getSrvId()
{
return srvId;
}
public void setMaxSp(String maxSp)
{
this.maxSp = maxSp;
}
public String getMaxSp()
{
return maxSp;
}
public void setMonitorStatus(String monitorStatus)
{
this.monitorStatus = monitorStatus;
}
public String getMonitorStatus()
{
return monitorStatus;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setNameEn(String nameEn)
{
this.nameEn = nameEn;
}
public String getNameEn()
{
return nameEn;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgId", getCfgId())
.append("srvId", getSrvId())
.append("maxSp", getMaxSp())
.append("monitorStatus", getMonitorStatus())
.append("name", getName())
.append("nameEn", getNameEn())
.append("type", getType())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,196 @@
package com.yanzhu.jh.device.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* dev_pitmonit_southsmos_element_item
*
* @author ruoyi
* @date 2024-08-13
*/
public class PitmonitSouthsmosElementItem extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 配置ID */
@Excel(name = "配置ID")
private Long cfgId;
/** 服务端ID */
@Excel(name = "服务端ID")
private Long srvId;
/** dev_pitmonit_southsmos_element表srvId */
@Excel(name = "dev_pitmonit_southsmos_element表srvId")
private Long monitorElementId;
/** 服务端name */
@Excel(name = "服务端name")
private String name;
/** 服务端step */
@Excel(name = "服务端step")
private Long step;
/** 服务端unit */
@Excel(name = "服务端unit")
private String unit;
/** 服务端valueRange */
@Excel(name = "服务端valueRange")
private String valueRange;
/** 服务端gmtCreate */
@Excel(name = "服务端gmtCreate")
private String gmtCreate;
/** 服务端gmtModified */
@Excel(name = "服务端gmtModified")
private String gmtModified;
/** 状态 */
@Excel(name = "状态")
private Long state;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgId(Long cfgId)
{
this.cfgId = cfgId;
}
public Long getCfgId()
{
return cfgId;
}
public void setSrvId(Long srvId)
{
this.srvId = srvId;
}
public Long getSrvId()
{
return srvId;
}
public void setMonitorElementId(Long monitorElementId)
{
this.monitorElementId = monitorElementId;
}
public Long getMonitorElementId()
{
return monitorElementId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setStep(Long step)
{
this.step = step;
}
public Long getStep()
{
return step;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setValueRange(String valueRange)
{
this.valueRange = valueRange;
}
public String getValueRange()
{
return valueRange;
}
public void setGmtCreate(String gmtCreate)
{
this.gmtCreate = gmtCreate;
}
public String getGmtCreate()
{
return gmtCreate;
}
public void setGmtModified(String gmtModified)
{
this.gmtModified = gmtModified;
}
public String getGmtModified()
{
return gmtModified;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgId", getCfgId())
.append("srvId", getSrvId())
.append("monitorElementId", getMonitorElementId())
.append("name", getName())
.append("step", getStep())
.append("unit", getUnit())
.append("valueRange", getValueRange())
.append("gmtCreate", getGmtCreate())
.append("gmtModified", getGmtModified())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,256 @@
package com.yanzhu.jh.device.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* dev_pitmonit_southsmos_surveypoint
*
* @author ruoyi
* @date 2024-08-13
*/
public class PitmonitSouthsmosSurveypoint extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** */
private Long id;
/** 配置ID */
@Excel(name = "配置ID")
private Long cfgId;
/** 测点ID */
@Excel(name = "测点ID")
private Long spId;
/** 所属监测点组ID */
@Excel(name = "所属监测点组ID")
private Long groupId;
/** 所属监测点组名称 */
@Excel(name = "所属监测点组名称")
private String groupName;
/** 监测项Id */
@Excel(name = "监测项Id")
private Long meId;
/** 监测项名称 */
@Excel(name = "监测项名称")
private String meName;
/** 监测项英文标识名 */
@Excel(name = "监测项英文标识名")
private String meNameEn;
/** 改时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "改时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date modifyDate;
/** 测点名称 */
@Excel(name = "测点名称")
private String name;
/** 位置 */
@Excel(name = "位置")
private String position;
/** 数据来源形式0人工上传1设备 */
@Excel(name = "数据来源形式0人工上传1设备")
private Long dataSource;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date createDate;
/** 服务器status */
@Excel(name = "服务器status")
private String status;
/** 状态 */
@Excel(name = "状态")
private Long state;
/** */
@Excel(name = "")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgId(Long cfgId)
{
this.cfgId = cfgId;
}
public Long getCfgId()
{
return cfgId;
}
public void setSpId(Long spId)
{
this.spId = spId;
}
public Long getSpId()
{
return spId;
}
public void setGroupId(Long groupId)
{
this.groupId = groupId;
}
public Long getGroupId()
{
return groupId;
}
public void setGroupName(String groupName)
{
this.groupName = groupName;
}
public String getGroupName()
{
return groupName;
}
public void setMeId(Long meId)
{
this.meId = meId;
}
public Long getMeId()
{
return meId;
}
public void setMeName(String meName)
{
this.meName = meName;
}
public String getMeName()
{
return meName;
}
public void setMeNameEn(String meNameEn)
{
this.meNameEn = meNameEn;
}
public String getMeNameEn()
{
return meNameEn;
}
public void setModifyDate(Date modifyDate)
{
this.modifyDate = modifyDate;
}
public Date getModifyDate()
{
return modifyDate;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setPosition(String position)
{
this.position = position;
}
public String getPosition()
{
return position;
}
public void setDataSource(Long dataSource)
{
this.dataSource = dataSource;
}
public Long getDataSource()
{
return dataSource;
}
public void setCreateDate(Date createDate)
{
this.createDate = createDate;
}
public Date getCreateDate()
{
return createDate;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgId", getCfgId())
.append("spId", getSpId())
.append("groupId", getGroupId())
.append("groupName", getGroupName())
.append("meId", getMeId())
.append("meName", getMeName())
.append("meNameEn", getMeNameEn())
.append("modifyDate", getModifyDate())
.append("name", getName())
.append("position", getPosition())
.append("dataSource", getDataSource())
.append("createDate", getCreateDate())
.append("status", getStatus())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,266 @@
package com.yanzhu.jh.device.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* dev_pitmonit_southsmos_threshold
*
* @author ruoyi
* @date 2024-08-13
*/
public class PitmonitSouthsmosThreshold extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** */
private Long id;
/** 配置ID */
@Excel(name = "配置ID")
private Long cfgId;
/** 服务端ID */
@Excel(name = "服务端ID")
private Long srvId;
/** 报警信息 */
@Excel(name = "报警信息")
private String alarmInfo;
/** 报警名称 */
@Excel(name = "报警名称")
private String alarmName;
/** 时间段起始点 */
@Excel(name = "时间段起始点")
private Long intervalA;
/** 时间段终止点 */
@Excel(name = "时间段终止点")
private Long intervalB;
/** 报警值等级0正常 1:超预警2超报警3超控制 */
@Excel(name = "报警值等级0正常 1:超预警2超报警3超控制")
private Long level;
/** 监测项ID */
@Excel(name = "监测项ID")
private Long monitorElementId;
/** 监测分项Id */
@Excel(name = "监测分项Id")
private Long monitorItemId;
/** 监测分项名称 */
@Excel(name = "监测分项名称")
private String monitorItemName;
/** 报警值组Id */
@Excel(name = "报警值组Id")
private Long tgId;
/** 报警值 */
@Excel(name = "报警值")
private String threshold;
/** 类型 */
@Excel(name = "类型")
private String type;
/** 单位 */
@Excel(name = "单位")
private String unit;
/** 状态 */
@Excel(name = "状态")
private Long state;
/** */
@Excel(name = "")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgId(Long cfgId)
{
this.cfgId = cfgId;
}
public Long getCfgId()
{
return cfgId;
}
public void setSrvId(Long srvId)
{
this.srvId = srvId;
}
public Long getSrvId()
{
return srvId;
}
public void setAlarmInfo(String alarmInfo)
{
this.alarmInfo = alarmInfo;
}
public String getAlarmInfo()
{
return alarmInfo;
}
public void setAlarmName(String alarmName)
{
this.alarmName = alarmName;
}
public String getAlarmName()
{
return alarmName;
}
public void setIntervalA(Long intervalA)
{
this.intervalA = intervalA;
}
public Long getIntervalA()
{
return intervalA;
}
public void setIntervalB(Long intervalB)
{
this.intervalB = intervalB;
}
public Long getIntervalB()
{
return intervalB;
}
public void setLevel(Long level)
{
this.level = level;
}
public Long getLevel()
{
return level;
}
public void setMonitorElementId(Long monitorElementId)
{
this.monitorElementId = monitorElementId;
}
public Long getMonitorElementId()
{
return monitorElementId;
}
public void setMonitorItemId(Long monitorItemId)
{
this.monitorItemId = monitorItemId;
}
public Long getMonitorItemId()
{
return monitorItemId;
}
public void setMonitorItemName(String monitorItemName)
{
this.monitorItemName = monitorItemName;
}
public String getMonitorItemName()
{
return monitorItemName;
}
public void setTgId(Long tgId)
{
this.tgId = tgId;
}
public Long getTgId()
{
return tgId;
}
public void setThreshold(String threshold)
{
this.threshold = threshold;
}
public String getThreshold()
{
return threshold;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgId", getCfgId())
.append("srvId", getSrvId())
.append("alarmInfo", getAlarmInfo())
.append("alarmName", getAlarmName())
.append("intervalA", getIntervalA())
.append("intervalB", getIntervalB())
.append("level", getLevel())
.append("monitorElementId", getMonitorElementId())
.append("monitorItemId", getMonitorItemId())
.append("monitorItemName", getMonitorItemName())
.append("tgId", getTgId())
.append("threshold", getThreshold())
.append("type", getType())
.append("unit", getUnit())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,141 @@
package com.yanzhu.jh.device.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
*
sur_project_pit_monit_cfg
*
* @author ruoyi
* @date 2024-08-13
*/
public class ProjectPitMonitCfg extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 项目ID */
@Excel(name = "项目ID")
private Long projectId;
/** 总包单位ID */
@Excel(name = "总包单位ID")
private Long subDeptId;
/** 厂商编号参考字典pitmonit_vendors */
@Excel(name = "厂商编号参考字典pitmonit_vendors")
private String vendorCode;
/** 厂商参数 */
@Excel(name = "厂商参数")
private String vendorParamter;
/** 1-启用,0-停用 */
@Excel(name = "1-启用,0-停用")
private Long enabled;
/** 状态 */
@Excel(name = "状态")
private Long state;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setProjectId(Long projectId)
{
this.projectId = projectId;
}
public Long getProjectId()
{
return projectId;
}
public void setSubDeptId(Long subDeptId)
{
this.subDeptId = subDeptId;
}
public Long getSubDeptId()
{
return subDeptId;
}
public void setVendorCode(String vendorCode)
{
this.vendorCode = vendorCode;
}
public String getVendorCode()
{
return vendorCode;
}
public void setVendorParamter(String vendorParamter)
{
this.vendorParamter = vendorParamter;
}
public String getVendorParamter()
{
return vendorParamter;
}
public void setEnabled(Long enabled)
{
this.enabled = enabled;
}
public Long getEnabled()
{
return enabled;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("projectId", getProjectId())
.append("subDeptId", getSubDeptId())
.append("vendorCode", getVendorCode())
.append("vendorParamter", getVendorParamter())
.append("enabled", getEnabled())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.mapper;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosAlarm;
/**
* Mapper
*
* @author ruoyi
* @date 2024-08-13
*/
public interface PitmonitSouthsmosAlarmMapper
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosAlarm selectDevPitmonitSouthsmosAlarmById(Long id);
/**
*
*
* @param pitmonitSouthsmosAlarm
* @return
*/
public List<PitmonitSouthsmosAlarm> selectDevPitmonitSouthsmosAlarmList(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm);
/**
*
*
* @param pitmonitSouthsmosAlarm
* @return
*/
public int insertDevPitmonitSouthsmosAlarm(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm);
/**
*
*
* @param pitmonitSouthsmosAlarm
* @return
*/
public int updateDevPitmonitSouthsmosAlarm(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosAlarmById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosAlarmByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.mapper;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosData;
/**
* Mapper
*
* @author ruoyi
* @date 2024-08-13
*/
public interface PitmonitSouthsmosDataMapper
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosData selectDevPitmonitSouthsmosDataById(Long id);
/**
*
*
* @param pitmonitSouthsmosData
* @return
*/
public List<PitmonitSouthsmosData> selectDevPitmonitSouthsmosDataList(PitmonitSouthsmosData pitmonitSouthsmosData);
/**
*
*
* @param pitmonitSouthsmosData
* @return
*/
public int insertDevPitmonitSouthsmosData(PitmonitSouthsmosData pitmonitSouthsmosData);
/**
*
*
* @param pitmonitSouthsmosData
* @return
*/
public int updateDevPitmonitSouthsmosData(PitmonitSouthsmosData pitmonitSouthsmosData);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosDataById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosDataByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.mapper;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosDevSp;
/**
* Mapper
*
* @author ruoyi
* @date 2024-08-13
*/
public interface PitmonitSouthsmosDevSpMapper
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosDevSp selectDevPitmonitSouthsmosDevSpById(Long id);
/**
*
*
* @param pitmonitSouthsmosDevSp
* @return
*/
public List<PitmonitSouthsmosDevSp> selectDevPitmonitSouthsmosDevSpList(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp);
/**
*
*
* @param pitmonitSouthsmosDevSp
* @return
*/
public int insertDevPitmonitSouthsmosDevSp(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp);
/**
*
*
* @param pitmonitSouthsmosDevSp
* @return
*/
public int updateDevPitmonitSouthsmosDevSp(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosDevSpById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosDevSpByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.mapper;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosDevice;
/**
* Mapper
*
* @author ruoyi
* @date 2024-08-13
*/
public interface PitmonitSouthsmosDeviceMapper
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosDevice selectDevPitmonitSouthsmosDeviceById(Long id);
/**
*
*
* @param pitmonitSouthsmosDevice
* @return
*/
public List<PitmonitSouthsmosDevice> selectDevPitmonitSouthsmosDeviceList(PitmonitSouthsmosDevice pitmonitSouthsmosDevice);
/**
*
*
* @param pitmonitSouthsmosDevice
* @return
*/
public int insertDevPitmonitSouthsmosDevice(PitmonitSouthsmosDevice pitmonitSouthsmosDevice);
/**
*
*
* @param pitmonitSouthsmosDevice
* @return
*/
public int updateDevPitmonitSouthsmosDevice(PitmonitSouthsmosDevice pitmonitSouthsmosDevice);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosDeviceById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosDeviceByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.mapper;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosElementItem;
/**
* Mapper
*
* @author ruoyi
* @date 2024-08-13
*/
public interface PitmonitSouthsmosElementItemMapper
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosElementItem selectDevPitmonitSouthsmosElementItemById(Long id);
/**
*
*
* @param pitmonitSouthsmosElementItem
* @return
*/
public List<PitmonitSouthsmosElementItem> selectDevPitmonitSouthsmosElementItemList(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem);
/**
*
*
* @param pitmonitSouthsmosElementItem
* @return
*/
public int insertDevPitmonitSouthsmosElementItem(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem);
/**
*
*
* @param pitmonitSouthsmosElementItem
* @return
*/
public int updateDevPitmonitSouthsmosElementItem(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosElementItemById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosElementItemByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.mapper;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosElement;
/**
* Mapper
*
* @author ruoyi
* @date 2024-08-13
*/
public interface PitmonitSouthsmosElementMapper
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosElement selectDevPitmonitSouthsmosElementById(Long id);
/**
*
*
* @param pitmonitSouthsmosElement
* @return
*/
public List<PitmonitSouthsmosElement> selectDevPitmonitSouthsmosElementList(PitmonitSouthsmosElement pitmonitSouthsmosElement);
/**
*
*
* @param pitmonitSouthsmosElement
* @return
*/
public int insertDevPitmonitSouthsmosElement(PitmonitSouthsmosElement pitmonitSouthsmosElement);
/**
*
*
* @param pitmonitSouthsmosElement
* @return
*/
public int updateDevPitmonitSouthsmosElement(PitmonitSouthsmosElement pitmonitSouthsmosElement);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosElementById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosElementByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.mapper;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosSurveypoint;
/**
* Mapper
*
* @author ruoyi
* @date 2024-08-13
*/
public interface PitmonitSouthsmosSurveypointMapper
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosSurveypoint selectDevPitmonitSouthsmosSurveypointById(Long id);
/**
*
*
* @param pitmonitSouthsmosSurveypoint
* @return
*/
public List<PitmonitSouthsmosSurveypoint> selectDevPitmonitSouthsmosSurveypointList(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint);
/**
*
*
* @param pitmonitSouthsmosSurveypoint
* @return
*/
public int insertDevPitmonitSouthsmosSurveypoint(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint);
/**
*
*
* @param pitmonitSouthsmosSurveypoint
* @return
*/
public int updateDevPitmonitSouthsmosSurveypoint(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosSurveypointById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosSurveypointByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.mapper;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosThreshold;
/**
* Mapper
*
* @author ruoyi
* @date 2024-08-13
*/
public interface PitmonitSouthsmosThresholdMapper
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosThreshold selectDevPitmonitSouthsmosThresholdById(Long id);
/**
*
*
* @param pitmonitSouthsmosThreshold
* @return
*/
public List<PitmonitSouthsmosThreshold> selectDevPitmonitSouthsmosThresholdList(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold);
/**
*
*
* @param pitmonitSouthsmosThreshold
* @return
*/
public int insertDevPitmonitSouthsmosThreshold(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold);
/**
*
*
* @param pitmonitSouthsmosThreshold
* @return
*/
public int updateDevPitmonitSouthsmosThreshold(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosThresholdById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosThresholdByIds(Long[] ids);
}

View File

@ -0,0 +1,75 @@
package com.yanzhu.jh.device.mapper;
import java.util.List;
import com.yanzhu.jh.device.domain.ProjectPitMonitCfg;
/**
*
Mapper
*
* @author ruoyi
* @date 2024-08-13
*/
public interface ProjectPitMonitCfgMapper
{
/**
*
*
* @param id
* @return
*/
public ProjectPitMonitCfg selectSurProjectPitMonitCfgById(Long id);
/**
*
*
* @param projectPitMonitCfg
* @return
*/
public List<ProjectPitMonitCfg> selectSurProjectPitMonitCfgList(ProjectPitMonitCfg projectPitMonitCfg);
/**
*
*
* @param projectPitMonitCfg
* @return
*/
public int insertSurProjectPitMonitCfg(ProjectPitMonitCfg projectPitMonitCfg);
/**
*
*
* @param projectPitMonitCfg
* @return
*/
public int updateSurProjectPitMonitCfg(ProjectPitMonitCfg projectPitMonitCfg);
/**
*
*
* @param id
* @return
*/
public int deleteSurProjectPitMonitCfgById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteSurProjectPitMonitCfgByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.service;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosAlarm;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
public interface IPitmonitSouthsmosAlarmService
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosAlarm selectDevPitmonitSouthsmosAlarmById(Long id);
/**
*
*
* @param pitmonitSouthsmosAlarm
* @return
*/
public List<PitmonitSouthsmosAlarm> selectDevPitmonitSouthsmosAlarmList(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm);
/**
*
*
* @param pitmonitSouthsmosAlarm
* @return
*/
public int insertDevPitmonitSouthsmosAlarm(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm);
/**
*
*
* @param pitmonitSouthsmosAlarm
* @return
*/
public int updateDevPitmonitSouthsmosAlarm(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosAlarmByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosAlarmById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.service;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosData;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
public interface IPitmonitSouthsmosDataService
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosData selectDevPitmonitSouthsmosDataById(Long id);
/**
*
*
* @param pitmonitSouthsmosData
* @return
*/
public List<PitmonitSouthsmosData> selectDevPitmonitSouthsmosDataList(PitmonitSouthsmosData pitmonitSouthsmosData);
/**
*
*
* @param pitmonitSouthsmosData
* @return
*/
public int insertDevPitmonitSouthsmosData(PitmonitSouthsmosData pitmonitSouthsmosData);
/**
*
*
* @param pitmonitSouthsmosData
* @return
*/
public int updateDevPitmonitSouthsmosData(PitmonitSouthsmosData pitmonitSouthsmosData);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosDataByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosDataById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.service;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosDevSp;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
public interface IPitmonitSouthsmosDevSpService
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosDevSp selectDevPitmonitSouthsmosDevSpById(Long id);
/**
*
*
* @param pitmonitSouthsmosDevSp
* @return
*/
public List<PitmonitSouthsmosDevSp> selectDevPitmonitSouthsmosDevSpList(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp);
/**
*
*
* @param pitmonitSouthsmosDevSp
* @return
*/
public int insertDevPitmonitSouthsmosDevSp(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp);
/**
*
*
* @param pitmonitSouthsmosDevSp
* @return
*/
public int updateDevPitmonitSouthsmosDevSp(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosDevSpByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosDevSpById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.service;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosDevice;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
public interface IPitmonitSouthsmosDeviceService
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosDevice selectDevPitmonitSouthsmosDeviceById(Long id);
/**
*
*
* @param pitmonitSouthsmosDevice
* @return
*/
public List<PitmonitSouthsmosDevice> selectDevPitmonitSouthsmosDeviceList(PitmonitSouthsmosDevice pitmonitSouthsmosDevice);
/**
*
*
* @param pitmonitSouthsmosDevice
* @return
*/
public int insertDevPitmonitSouthsmosDevice(PitmonitSouthsmosDevice pitmonitSouthsmosDevice);
/**
*
*
* @param pitmonitSouthsmosDevice
* @return
*/
public int updateDevPitmonitSouthsmosDevice(PitmonitSouthsmosDevice pitmonitSouthsmosDevice);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosDeviceByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosDeviceById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.service;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosElementItem;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
public interface IPitmonitSouthsmosElementItemService
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosElementItem selectDevPitmonitSouthsmosElementItemById(Long id);
/**
*
*
* @param pitmonitSouthsmosElementItem
* @return
*/
public List<PitmonitSouthsmosElementItem> selectDevPitmonitSouthsmosElementItemList(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem);
/**
*
*
* @param pitmonitSouthsmosElementItem
* @return
*/
public int insertDevPitmonitSouthsmosElementItem(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem);
/**
*
*
* @param pitmonitSouthsmosElementItem
* @return
*/
public int updateDevPitmonitSouthsmosElementItem(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosElementItemByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosElementItemById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.service;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosElement;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
public interface IPitmonitSouthsmosElementService
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosElement selectDevPitmonitSouthsmosElementById(Long id);
/**
*
*
* @param pitmonitSouthsmosElement
* @return
*/
public List<PitmonitSouthsmosElement> selectDevPitmonitSouthsmosElementList(PitmonitSouthsmosElement pitmonitSouthsmosElement);
/**
*
*
* @param pitmonitSouthsmosElement
* @return
*/
public int insertDevPitmonitSouthsmosElement(PitmonitSouthsmosElement pitmonitSouthsmosElement);
/**
*
*
* @param pitmonitSouthsmosElement
* @return
*/
public int updateDevPitmonitSouthsmosElement(PitmonitSouthsmosElement pitmonitSouthsmosElement);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosElementByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosElementById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.service;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosSurveypoint;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
public interface IPitmonitSouthsmosSurveypointService
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosSurveypoint selectDevPitmonitSouthsmosSurveypointById(Long id);
/**
*
*
* @param pitmonitSouthsmosSurveypoint
* @return
*/
public List<PitmonitSouthsmosSurveypoint> selectDevPitmonitSouthsmosSurveypointList(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint);
/**
*
*
* @param pitmonitSouthsmosSurveypoint
* @return
*/
public int insertDevPitmonitSouthsmosSurveypoint(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint);
/**
*
*
* @param pitmonitSouthsmosSurveypoint
* @return
*/
public int updateDevPitmonitSouthsmosSurveypoint(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosSurveypointByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosSurveypointById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.yanzhu.jh.device.service;
import java.util.List;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosThreshold;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
public interface IPitmonitSouthsmosThresholdService
{
/**
*
*
* @param id
* @return
*/
public PitmonitSouthsmosThreshold selectDevPitmonitSouthsmosThresholdById(Long id);
/**
*
*
* @param pitmonitSouthsmosThreshold
* @return
*/
public List<PitmonitSouthsmosThreshold> selectDevPitmonitSouthsmosThresholdList(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold);
/**
*
*
* @param pitmonitSouthsmosThreshold
* @return
*/
public int insertDevPitmonitSouthsmosThreshold(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold);
/**
*
*
* @param pitmonitSouthsmosThreshold
* @return
*/
public int updateDevPitmonitSouthsmosThreshold(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold);
/**
*
*
* @param ids
* @return
*/
public int deleteDevPitmonitSouthsmosThresholdByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteDevPitmonitSouthsmosThresholdById(Long id);
}

View File

@ -0,0 +1,76 @@
package com.yanzhu.jh.device.service;
import java.util.List;
import com.yanzhu.jh.device.domain.ProjectPitMonitCfg;
/**
*
Service
*
* @author ruoyi
* @date 2024-08-13
*/
public interface IProjectPitMonitCfgService
{
/**
*
*
* @param id
* @return
*/
public ProjectPitMonitCfg selectSurProjectPitMonitCfgById(Long id);
/**
*
*
* @param projectPitMonitCfg
* @return
*/
public List<ProjectPitMonitCfg> selectSurProjectPitMonitCfgList(ProjectPitMonitCfg projectPitMonitCfg);
/**
*
*
* @param projectPitMonitCfg
* @return
*/
public int insertSurProjectPitMonitCfg(ProjectPitMonitCfg projectPitMonitCfg);
/**
*
*
* @param projectPitMonitCfg
* @return
*/
public int updateSurProjectPitMonitCfg(ProjectPitMonitCfg projectPitMonitCfg);
/**
*
*
* @param ids
* @return
*/
public int deleteSurProjectPitMonitCfgByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteSurProjectPitMonitCfgById(Long id);
}

View File

@ -0,0 +1,98 @@
package com.yanzhu.jh.device.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.jh.device.mapper.PitmonitSouthsmosAlarmMapper;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosAlarm;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosAlarmService;
import com.ruoyi.common.utils.SecurityUtils;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
@Service
public class PitmonitSouthsmosAlarmServiceImpl implements IPitmonitSouthsmosAlarmService
{
@Autowired
private PitmonitSouthsmosAlarmMapper pitmonitSouthsmosAlarmMapper;
/**
*
*
* @param id
* @return
*/
@Override
public PitmonitSouthsmosAlarm selectDevPitmonitSouthsmosAlarmById(Long id)
{
return pitmonitSouthsmosAlarmMapper.selectDevPitmonitSouthsmosAlarmById(id);
}
/**
*
*
* @param pitmonitSouthsmosAlarm
* @return
*/
@Override
public List<PitmonitSouthsmosAlarm> selectDevPitmonitSouthsmosAlarmList(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm)
{
return pitmonitSouthsmosAlarmMapper.selectDevPitmonitSouthsmosAlarmList(pitmonitSouthsmosAlarm);
}
/**
*
*
* @param pitmonitSouthsmosAlarm
* @return
*/
@Override
public int insertDevPitmonitSouthsmosAlarm(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm)
{
pitmonitSouthsmosAlarm.setCreateBy(SecurityUtils.getUsername());
pitmonitSouthsmosAlarm.setCreateTime(DateUtils.getNowDate());
return pitmonitSouthsmosAlarmMapper.insertDevPitmonitSouthsmosAlarm(pitmonitSouthsmosAlarm);
}
/**
*
*
* @param pitmonitSouthsmosAlarm
* @return
*/
@Override
public int updateDevPitmonitSouthsmosAlarm(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm)
{
pitmonitSouthsmosAlarm.setUpdateBy(SecurityUtils.getUsername());
pitmonitSouthsmosAlarm.setUpdateTime(DateUtils.getNowDate());
return pitmonitSouthsmosAlarmMapper.updateDevPitmonitSouthsmosAlarm(pitmonitSouthsmosAlarm);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosAlarmByIds(Long[] ids)
{
return pitmonitSouthsmosAlarmMapper.deleteDevPitmonitSouthsmosAlarmByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosAlarmById(Long id)
{
return pitmonitSouthsmosAlarmMapper.deleteDevPitmonitSouthsmosAlarmById(id);
}
}

View File

@ -0,0 +1,98 @@
package com.yanzhu.jh.device.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.jh.device.mapper.PitmonitSouthsmosDataMapper;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosData;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosDataService;
import com.ruoyi.common.utils.SecurityUtils;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
@Service
public class PitmonitSouthsmosDataServiceImpl implements IPitmonitSouthsmosDataService
{
@Autowired
private PitmonitSouthsmosDataMapper pitmonitSouthsmosDataMapper;
/**
*
*
* @param id
* @return
*/
@Override
public PitmonitSouthsmosData selectDevPitmonitSouthsmosDataById(Long id)
{
return pitmonitSouthsmosDataMapper.selectDevPitmonitSouthsmosDataById(id);
}
/**
*
*
* @param pitmonitSouthsmosData
* @return
*/
@Override
public List<PitmonitSouthsmosData> selectDevPitmonitSouthsmosDataList(PitmonitSouthsmosData pitmonitSouthsmosData)
{
return pitmonitSouthsmosDataMapper.selectDevPitmonitSouthsmosDataList(pitmonitSouthsmosData);
}
/**
*
*
* @param pitmonitSouthsmosData
* @return
*/
@Override
public int insertDevPitmonitSouthsmosData(PitmonitSouthsmosData pitmonitSouthsmosData)
{
pitmonitSouthsmosData.setCreateBy(SecurityUtils.getUsername());
pitmonitSouthsmosData.setCreateTime(DateUtils.getNowDate());
return pitmonitSouthsmosDataMapper.insertDevPitmonitSouthsmosData(pitmonitSouthsmosData);
}
/**
*
*
* @param pitmonitSouthsmosData
* @return
*/
@Override
public int updateDevPitmonitSouthsmosData(PitmonitSouthsmosData pitmonitSouthsmosData)
{
pitmonitSouthsmosData.setUpdateBy(SecurityUtils.getUsername());
pitmonitSouthsmosData.setUpdateTime(DateUtils.getNowDate());
return pitmonitSouthsmosDataMapper.updateDevPitmonitSouthsmosData(pitmonitSouthsmosData);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosDataByIds(Long[] ids)
{
return pitmonitSouthsmosDataMapper.deleteDevPitmonitSouthsmosDataByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosDataById(Long id)
{
return pitmonitSouthsmosDataMapper.deleteDevPitmonitSouthsmosDataById(id);
}
}

View File

@ -0,0 +1,98 @@
package com.yanzhu.jh.device.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.jh.device.mapper.PitmonitSouthsmosDevSpMapper;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosDevSp;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosDevSpService;
import com.ruoyi.common.utils.SecurityUtils;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
@Service
public class PitmonitSouthsmosDevSpServiceImpl implements IPitmonitSouthsmosDevSpService
{
@Autowired
private PitmonitSouthsmosDevSpMapper pitmonitSouthsmosDevSpMapper;
/**
*
*
* @param id
* @return
*/
@Override
public PitmonitSouthsmosDevSp selectDevPitmonitSouthsmosDevSpById(Long id)
{
return pitmonitSouthsmosDevSpMapper.selectDevPitmonitSouthsmosDevSpById(id);
}
/**
*
*
* @param pitmonitSouthsmosDevSp
* @return
*/
@Override
public List<PitmonitSouthsmosDevSp> selectDevPitmonitSouthsmosDevSpList(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp)
{
return pitmonitSouthsmosDevSpMapper.selectDevPitmonitSouthsmosDevSpList(pitmonitSouthsmosDevSp);
}
/**
*
*
* @param pitmonitSouthsmosDevSp
* @return
*/
@Override
public int insertDevPitmonitSouthsmosDevSp(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp)
{
pitmonitSouthsmosDevSp.setCreateBy(SecurityUtils.getUsername());
pitmonitSouthsmosDevSp.setCreateTime(DateUtils.getNowDate());
return pitmonitSouthsmosDevSpMapper.insertDevPitmonitSouthsmosDevSp(pitmonitSouthsmosDevSp);
}
/**
*
*
* @param pitmonitSouthsmosDevSp
* @return
*/
@Override
public int updateDevPitmonitSouthsmosDevSp(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp)
{
pitmonitSouthsmosDevSp.setUpdateBy(SecurityUtils.getUsername());
pitmonitSouthsmosDevSp.setUpdateTime(DateUtils.getNowDate());
return pitmonitSouthsmosDevSpMapper.updateDevPitmonitSouthsmosDevSp(pitmonitSouthsmosDevSp);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosDevSpByIds(Long[] ids)
{
return pitmonitSouthsmosDevSpMapper.deleteDevPitmonitSouthsmosDevSpByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosDevSpById(Long id)
{
return pitmonitSouthsmosDevSpMapper.deleteDevPitmonitSouthsmosDevSpById(id);
}
}

View File

@ -0,0 +1,98 @@
package com.yanzhu.jh.device.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.jh.device.mapper.PitmonitSouthsmosDeviceMapper;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosDevice;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosDeviceService;
import com.ruoyi.common.utils.SecurityUtils;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
@Service
public class PitmonitSouthsmosDeviceServiceImpl implements IPitmonitSouthsmosDeviceService
{
@Autowired
private PitmonitSouthsmosDeviceMapper pitmonitSouthsmosDeviceMapper;
/**
*
*
* @param id
* @return
*/
@Override
public PitmonitSouthsmosDevice selectDevPitmonitSouthsmosDeviceById(Long id)
{
return pitmonitSouthsmosDeviceMapper.selectDevPitmonitSouthsmosDeviceById(id);
}
/**
*
*
* @param pitmonitSouthsmosDevice
* @return
*/
@Override
public List<PitmonitSouthsmosDevice> selectDevPitmonitSouthsmosDeviceList(PitmonitSouthsmosDevice pitmonitSouthsmosDevice)
{
return pitmonitSouthsmosDeviceMapper.selectDevPitmonitSouthsmosDeviceList(pitmonitSouthsmosDevice);
}
/**
*
*
* @param pitmonitSouthsmosDevice
* @return
*/
@Override
public int insertDevPitmonitSouthsmosDevice(PitmonitSouthsmosDevice pitmonitSouthsmosDevice)
{
pitmonitSouthsmosDevice.setCreateBy(SecurityUtils.getUsername());
pitmonitSouthsmosDevice.setCreateTime(DateUtils.getNowDate());
return pitmonitSouthsmosDeviceMapper.insertDevPitmonitSouthsmosDevice(pitmonitSouthsmosDevice);
}
/**
*
*
* @param pitmonitSouthsmosDevice
* @return
*/
@Override
public int updateDevPitmonitSouthsmosDevice(PitmonitSouthsmosDevice pitmonitSouthsmosDevice)
{
pitmonitSouthsmosDevice.setUpdateBy(SecurityUtils.getUsername());
pitmonitSouthsmosDevice.setUpdateTime(DateUtils.getNowDate());
return pitmonitSouthsmosDeviceMapper.updateDevPitmonitSouthsmosDevice(pitmonitSouthsmosDevice);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosDeviceByIds(Long[] ids)
{
return pitmonitSouthsmosDeviceMapper.deleteDevPitmonitSouthsmosDeviceByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosDeviceById(Long id)
{
return pitmonitSouthsmosDeviceMapper.deleteDevPitmonitSouthsmosDeviceById(id);
}
}

View File

@ -0,0 +1,98 @@
package com.yanzhu.jh.device.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.jh.device.mapper.PitmonitSouthsmosElementItemMapper;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosElementItem;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosElementItemService;
import com.ruoyi.common.utils.SecurityUtils;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
@Service
public class PitmonitSouthsmosElementItemServiceImpl implements IPitmonitSouthsmosElementItemService
{
@Autowired
private PitmonitSouthsmosElementItemMapper pitmonitSouthsmosElementItemMapper;
/**
*
*
* @param id
* @return
*/
@Override
public PitmonitSouthsmosElementItem selectDevPitmonitSouthsmosElementItemById(Long id)
{
return pitmonitSouthsmosElementItemMapper.selectDevPitmonitSouthsmosElementItemById(id);
}
/**
*
*
* @param pitmonitSouthsmosElementItem
* @return
*/
@Override
public List<PitmonitSouthsmosElementItem> selectDevPitmonitSouthsmosElementItemList(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem)
{
return pitmonitSouthsmosElementItemMapper.selectDevPitmonitSouthsmosElementItemList(pitmonitSouthsmosElementItem);
}
/**
*
*
* @param pitmonitSouthsmosElementItem
* @return
*/
@Override
public int insertDevPitmonitSouthsmosElementItem(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem)
{
pitmonitSouthsmosElementItem.setCreateBy(SecurityUtils.getUsername());
pitmonitSouthsmosElementItem.setCreateTime(DateUtils.getNowDate());
return pitmonitSouthsmosElementItemMapper.insertDevPitmonitSouthsmosElementItem(pitmonitSouthsmosElementItem);
}
/**
*
*
* @param pitmonitSouthsmosElementItem
* @return
*/
@Override
public int updateDevPitmonitSouthsmosElementItem(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem)
{
pitmonitSouthsmosElementItem.setUpdateBy(SecurityUtils.getUsername());
pitmonitSouthsmosElementItem.setUpdateTime(DateUtils.getNowDate());
return pitmonitSouthsmosElementItemMapper.updateDevPitmonitSouthsmosElementItem(pitmonitSouthsmosElementItem);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosElementItemByIds(Long[] ids)
{
return pitmonitSouthsmosElementItemMapper.deleteDevPitmonitSouthsmosElementItemByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosElementItemById(Long id)
{
return pitmonitSouthsmosElementItemMapper.deleteDevPitmonitSouthsmosElementItemById(id);
}
}

View File

@ -0,0 +1,98 @@
package com.yanzhu.jh.device.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.jh.device.mapper.PitmonitSouthsmosElementMapper;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosElement;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosElementService;
import com.ruoyi.common.utils.SecurityUtils;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
@Service
public class PitmonitSouthsmosElementServiceImpl implements IPitmonitSouthsmosElementService
{
@Autowired
private PitmonitSouthsmosElementMapper pitmonitSouthsmosElementMapper;
/**
*
*
* @param id
* @return
*/
@Override
public PitmonitSouthsmosElement selectDevPitmonitSouthsmosElementById(Long id)
{
return pitmonitSouthsmosElementMapper.selectDevPitmonitSouthsmosElementById(id);
}
/**
*
*
* @param pitmonitSouthsmosElement
* @return
*/
@Override
public List<PitmonitSouthsmosElement> selectDevPitmonitSouthsmosElementList(PitmonitSouthsmosElement pitmonitSouthsmosElement)
{
return pitmonitSouthsmosElementMapper.selectDevPitmonitSouthsmosElementList(pitmonitSouthsmosElement);
}
/**
*
*
* @param pitmonitSouthsmosElement
* @return
*/
@Override
public int insertDevPitmonitSouthsmosElement(PitmonitSouthsmosElement pitmonitSouthsmosElement)
{
pitmonitSouthsmosElement.setCreateBy(SecurityUtils.getUsername());
pitmonitSouthsmosElement.setCreateTime(DateUtils.getNowDate());
return pitmonitSouthsmosElementMapper.insertDevPitmonitSouthsmosElement(pitmonitSouthsmosElement);
}
/**
*
*
* @param pitmonitSouthsmosElement
* @return
*/
@Override
public int updateDevPitmonitSouthsmosElement(PitmonitSouthsmosElement pitmonitSouthsmosElement)
{
pitmonitSouthsmosElement.setUpdateBy(SecurityUtils.getUsername());
pitmonitSouthsmosElement.setUpdateTime(DateUtils.getNowDate());
return pitmonitSouthsmosElementMapper.updateDevPitmonitSouthsmosElement(pitmonitSouthsmosElement);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosElementByIds(Long[] ids)
{
return pitmonitSouthsmosElementMapper.deleteDevPitmonitSouthsmosElementByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosElementById(Long id)
{
return pitmonitSouthsmosElementMapper.deleteDevPitmonitSouthsmosElementById(id);
}
}

View File

@ -0,0 +1,98 @@
package com.yanzhu.jh.device.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.jh.device.mapper.PitmonitSouthsmosSurveypointMapper;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosSurveypoint;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosSurveypointService;
import com.ruoyi.common.utils.SecurityUtils;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
@Service
public class PitmonitSouthsmosSurveypointServiceImpl implements IPitmonitSouthsmosSurveypointService
{
@Autowired
private PitmonitSouthsmosSurveypointMapper pitmonitSouthsmosSurveypointMapper;
/**
*
*
* @param id
* @return
*/
@Override
public PitmonitSouthsmosSurveypoint selectDevPitmonitSouthsmosSurveypointById(Long id)
{
return pitmonitSouthsmosSurveypointMapper.selectDevPitmonitSouthsmosSurveypointById(id);
}
/**
*
*
* @param pitmonitSouthsmosSurveypoint
* @return
*/
@Override
public List<PitmonitSouthsmosSurveypoint> selectDevPitmonitSouthsmosSurveypointList(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint)
{
return pitmonitSouthsmosSurveypointMapper.selectDevPitmonitSouthsmosSurveypointList(pitmonitSouthsmosSurveypoint);
}
/**
*
*
* @param pitmonitSouthsmosSurveypoint
* @return
*/
@Override
public int insertDevPitmonitSouthsmosSurveypoint(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint)
{
pitmonitSouthsmosSurveypoint.setCreateBy(SecurityUtils.getUsername());
pitmonitSouthsmosSurveypoint.setCreateTime(DateUtils.getNowDate());
return pitmonitSouthsmosSurveypointMapper.insertDevPitmonitSouthsmosSurveypoint(pitmonitSouthsmosSurveypoint);
}
/**
*
*
* @param pitmonitSouthsmosSurveypoint
* @return
*/
@Override
public int updateDevPitmonitSouthsmosSurveypoint(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint)
{
pitmonitSouthsmosSurveypoint.setUpdateBy(SecurityUtils.getUsername());
pitmonitSouthsmosSurveypoint.setUpdateTime(DateUtils.getNowDate());
return pitmonitSouthsmosSurveypointMapper.updateDevPitmonitSouthsmosSurveypoint(pitmonitSouthsmosSurveypoint);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosSurveypointByIds(Long[] ids)
{
return pitmonitSouthsmosSurveypointMapper.deleteDevPitmonitSouthsmosSurveypointByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosSurveypointById(Long id)
{
return pitmonitSouthsmosSurveypointMapper.deleteDevPitmonitSouthsmosSurveypointById(id);
}
}

View File

@ -0,0 +1,98 @@
package com.yanzhu.jh.device.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.jh.device.mapper.PitmonitSouthsmosThresholdMapper;
import com.yanzhu.jh.device.domain.PitmonitSouthsmosThreshold;
import com.yanzhu.jh.device.service.IPitmonitSouthsmosThresholdService;
import com.ruoyi.common.utils.SecurityUtils;
/**
* Service
*
* @author ruoyi
* @date 2024-08-13
*/
@Service
public class PitmonitSouthsmosThresholdServiceImpl implements IPitmonitSouthsmosThresholdService
{
@Autowired
private PitmonitSouthsmosThresholdMapper pitmonitSouthsmosThresholdMapper;
/**
*
*
* @param id
* @return
*/
@Override
public PitmonitSouthsmosThreshold selectDevPitmonitSouthsmosThresholdById(Long id)
{
return pitmonitSouthsmosThresholdMapper.selectDevPitmonitSouthsmosThresholdById(id);
}
/**
*
*
* @param pitmonitSouthsmosThreshold
* @return
*/
@Override
public List<PitmonitSouthsmosThreshold> selectDevPitmonitSouthsmosThresholdList(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold)
{
return pitmonitSouthsmosThresholdMapper.selectDevPitmonitSouthsmosThresholdList(pitmonitSouthsmosThreshold);
}
/**
*
*
* @param pitmonitSouthsmosThreshold
* @return
*/
@Override
public int insertDevPitmonitSouthsmosThreshold(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold)
{
pitmonitSouthsmosThreshold.setCreateBy(SecurityUtils.getUsername());
pitmonitSouthsmosThreshold.setCreateTime(DateUtils.getNowDate());
return pitmonitSouthsmosThresholdMapper.insertDevPitmonitSouthsmosThreshold(pitmonitSouthsmosThreshold);
}
/**
*
*
* @param pitmonitSouthsmosThreshold
* @return
*/
@Override
public int updateDevPitmonitSouthsmosThreshold(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold)
{
pitmonitSouthsmosThreshold.setUpdateBy(SecurityUtils.getUsername());
pitmonitSouthsmosThreshold.setUpdateTime(DateUtils.getNowDate());
return pitmonitSouthsmosThresholdMapper.updateDevPitmonitSouthsmosThreshold(pitmonitSouthsmosThreshold);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosThresholdByIds(Long[] ids)
{
return pitmonitSouthsmosThresholdMapper.deleteDevPitmonitSouthsmosThresholdByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteDevPitmonitSouthsmosThresholdById(Long id)
{
return pitmonitSouthsmosThresholdMapper.deleteDevPitmonitSouthsmosThresholdById(id);
}
}

View File

@ -0,0 +1,113 @@
package com.yanzhu.jh.device.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.jh.device.mapper.ProjectPitMonitCfgMapper;
import com.yanzhu.jh.device.domain.ProjectPitMonitCfg;
import com.yanzhu.jh.device.service.IProjectPitMonitCfgService;
import com.ruoyi.common.utils.SecurityUtils;
/**
*
Service
*
* @author ruoyi
* @date 2024-08-13
*/
@Service
public class ProjectPitMonitCfgServiceImpl implements IProjectPitMonitCfgService
{
@Autowired
private ProjectPitMonitCfgMapper projectPitMonitCfgMapper;
/**
*
*
* @param id
* @return
*/
@Override
public ProjectPitMonitCfg selectSurProjectPitMonitCfgById(Long id)
{
return projectPitMonitCfgMapper.selectSurProjectPitMonitCfgById(id);
}
/**
*
*
* @param projectPitMonitCfg
* @return
*/
@Override
public List<ProjectPitMonitCfg> selectSurProjectPitMonitCfgList(ProjectPitMonitCfg projectPitMonitCfg)
{
return projectPitMonitCfgMapper.selectSurProjectPitMonitCfgList(projectPitMonitCfg);
}
/**
*
*
* @param projectPitMonitCfg
* @return
*/
@Override
public int insertSurProjectPitMonitCfg(ProjectPitMonitCfg projectPitMonitCfg)
{
projectPitMonitCfg.setCreateBy(SecurityUtils.getUsername());
projectPitMonitCfg.setCreateTime(DateUtils.getNowDate());
return projectPitMonitCfgMapper.insertSurProjectPitMonitCfg(projectPitMonitCfg);
}
/**
*
*
* @param projectPitMonitCfg
* @return
*/
@Override
public int updateSurProjectPitMonitCfg(ProjectPitMonitCfg projectPitMonitCfg)
{
projectPitMonitCfg.setUpdateBy(SecurityUtils.getUsername());
projectPitMonitCfg.setUpdateTime(DateUtils.getNowDate());
return projectPitMonitCfgMapper.updateSurProjectPitMonitCfg(projectPitMonitCfg);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteSurProjectPitMonitCfgByIds(Long[] ids)
{
return projectPitMonitCfgMapper.deleteSurProjectPitMonitCfgByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteSurProjectPitMonitCfgById(Long id)
{
return projectPitMonitCfgMapper.deleteSurProjectPitMonitCfgById(id);
}
}

View File

@ -0,0 +1,211 @@
<?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.yanzhu.jh.device.mapper.PitmonitSouthsmosAlarmMapper">
<resultMap type="DevPitmonitSouthsmosAlarm" id="DevPitmonitSouthsmosAlarmResult">
<result property="id" column="id" />
<result property="cfgId" column="cfgId" />
<result property="srvId" column="srvId" />
<result property="alarmInfo" column="alarmInfo" />
<result property="alarmSource" column="alarmSource" />
<result property="gmtAlarm" column="gmtAlarm" />
<result property="gmtAlarmOver" column="gmtAlarmOver" />
<result property="gmtAlarmStart" column="gmtAlarmStart" />
<result property="gmtCreate" column="gmtCreate" />
<result property="gmtModified" column="gmtModified" />
<result property="level" column="level" />
<result property="meId" column="meId" />
<result property="meName" column="meName" />
<result property="monitorItemId" column="monitorItemId" />
<result property="numbers" column="numbers" />
<result property="result" column="result" />
<result property="resultUrl" column="resultUrl" />
<result property="spId" column="spId" />
<result property="spName" column="spName" />
<result property="staff" column="staff" />
<result property="staffPhone" column="staffPhone" />
<result property="status" column="status" />
<result property="structureId" column="structureId" />
<result property="structureName" column="structureName" />
<result property="threshold" column="threshold" />
<result property="type" column="type" />
<result property="variety" column="variety" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDevPitmonitSouthsmosAlarmVo">
select id, cfgId, srvId, alarmInfo, alarmSource, gmtAlarm, gmtAlarmOver, gmtAlarmStart, gmtCreate, gmtModified, level, meId, meName, monitorItemId, numbers, result, resultUrl, spId, spName, staff, staffPhone, status, structureId, structureName, threshold, type, variety, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_alarm
</sql>
<select id="selectDevPitmonitSouthsmosAlarmList" parameterType="PitmonitSouthsmosAlarm" resultMap="DevPitmonitSouthsmosAlarmResult">
<include refid="selectDevPitmonitSouthsmosAlarmVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
<if test="srvId != null "> and srvId = #{srvId}</if>
<if test="alarmInfo != null and alarmInfo != ''"> and alarmInfo = #{alarmInfo}</if>
<if test="alarmSource != null and alarmSource != ''"> and alarmSource = #{alarmSource}</if>
<if test="gmtAlarm != null "> and gmtAlarm = #{gmtAlarm}</if>
<if test="gmtAlarmOver != null "> and gmtAlarmOver = #{gmtAlarmOver}</if>
<if test="gmtAlarmStart != null "> and gmtAlarmStart = #{gmtAlarmStart}</if>
<if test="gmtCreate != null "> and gmtCreate = #{gmtCreate}</if>
<if test="gmtModified != null "> and gmtModified = #{gmtModified}</if>
<if test="level != null "> and level = #{level}</if>
<if test="meId != null "> and meId = #{meId}</if>
<if test="meName != null and meName != ''"> and meName like concat('%', #{meName}, '%')</if>
<if test="monitorItemId != null "> and monitorItemId = #{monitorItemId}</if>
<if test="numbers != null "> and numbers = #{numbers}</if>
<if test="result != null and result != ''"> and result = #{result}</if>
<if test="resultUrl != null and resultUrl != ''"> and resultUrl = #{resultUrl}</if>
<if test="spId != null "> and spId = #{spId}</if>
<if test="spName != null and spName != ''"> and spName like concat('%', #{spName}, '%')</if>
<if test="staff != null and staff != ''"> and staff = #{staff}</if>
<if test="staffPhone != null and staffPhone != ''"> and staffPhone = #{staffPhone}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="structureId != null "> and structureId = #{structureId}</if>
<if test="structureName != null and structureName != ''"> and structureName like concat('%', #{structureName}, '%')</if>
<if test="threshold != null and threshold != ''"> and threshold = #{threshold}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="variety != null and variety != ''"> and variety = #{variety}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectDevPitmonitSouthsmosAlarmById" parameterType="Long" resultMap="DevPitmonitSouthsmosAlarmResult">
<include refid="selectDevPitmonitSouthsmosAlarmVo"/>
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosAlarm" parameterType="PitmonitSouthsmosAlarm" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_alarm
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
<if test="srvId != null">srvId,</if>
<if test="alarmInfo != null">alarmInfo,</if>
<if test="alarmSource != null">alarmSource,</if>
<if test="gmtAlarm != null">gmtAlarm,</if>
<if test="gmtAlarmOver != null">gmtAlarmOver,</if>
<if test="gmtAlarmStart != null">gmtAlarmStart,</if>
<if test="gmtCreate != null">gmtCreate,</if>
<if test="gmtModified != null">gmtModified,</if>
<if test="level != null">level,</if>
<if test="meId != null">meId,</if>
<if test="meName != null">meName,</if>
<if test="monitorItemId != null">monitorItemId,</if>
<if test="numbers != null">numbers,</if>
<if test="result != null">result,</if>
<if test="resultUrl != null">resultUrl,</if>
<if test="spId != null">spId,</if>
<if test="spName != null">spName,</if>
<if test="staff != null">staff,</if>
<if test="staffPhone != null">staffPhone,</if>
<if test="status != null">status,</if>
<if test="structureId != null">structureId,</if>
<if test="structureName != null">structureName,</if>
<if test="threshold != null">threshold,</if>
<if test="type != null">type,</if>
<if test="variety != null">variety,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgId != null">#{cfgId},</if>
<if test="srvId != null">#{srvId},</if>
<if test="alarmInfo != null">#{alarmInfo},</if>
<if test="alarmSource != null">#{alarmSource},</if>
<if test="gmtAlarm != null">#{gmtAlarm},</if>
<if test="gmtAlarmOver != null">#{gmtAlarmOver},</if>
<if test="gmtAlarmStart != null">#{gmtAlarmStart},</if>
<if test="gmtCreate != null">#{gmtCreate},</if>
<if test="gmtModified != null">#{gmtModified},</if>
<if test="level != null">#{level},</if>
<if test="meId != null">#{meId},</if>
<if test="meName != null">#{meName},</if>
<if test="monitorItemId != null">#{monitorItemId},</if>
<if test="numbers != null">#{numbers},</if>
<if test="result != null">#{result},</if>
<if test="resultUrl != null">#{resultUrl},</if>
<if test="spId != null">#{spId},</if>
<if test="spName != null">#{spName},</if>
<if test="staff != null">#{staff},</if>
<if test="staffPhone != null">#{staffPhone},</if>
<if test="status != null">#{status},</if>
<if test="structureId != null">#{structureId},</if>
<if test="structureName != null">#{structureName},</if>
<if test="threshold != null">#{threshold},</if>
<if test="type != null">#{type},</if>
<if test="variety != null">#{variety},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosAlarm" parameterType="PitmonitSouthsmosAlarm">
update dev_pitmonit_southsmos_alarm
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>
<if test="srvId != null">srvId = #{srvId},</if>
<if test="alarmInfo != null">alarmInfo = #{alarmInfo},</if>
<if test="alarmSource != null">alarmSource = #{alarmSource},</if>
<if test="gmtAlarm != null">gmtAlarm = #{gmtAlarm},</if>
<if test="gmtAlarmOver != null">gmtAlarmOver = #{gmtAlarmOver},</if>
<if test="gmtAlarmStart != null">gmtAlarmStart = #{gmtAlarmStart},</if>
<if test="gmtCreate != null">gmtCreate = #{gmtCreate},</if>
<if test="gmtModified != null">gmtModified = #{gmtModified},</if>
<if test="level != null">level = #{level},</if>
<if test="meId != null">meId = #{meId},</if>
<if test="meName != null">meName = #{meName},</if>
<if test="monitorItemId != null">monitorItemId = #{monitorItemId},</if>
<if test="numbers != null">numbers = #{numbers},</if>
<if test="result != null">result = #{result},</if>
<if test="resultUrl != null">resultUrl = #{resultUrl},</if>
<if test="spId != null">spId = #{spId},</if>
<if test="spName != null">spName = #{spName},</if>
<if test="staff != null">staff = #{staff},</if>
<if test="staffPhone != null">staffPhone = #{staffPhone},</if>
<if test="status != null">status = #{status},</if>
<if test="structureId != null">structureId = #{structureId},</if>
<if test="structureName != null">structureName = #{structureName},</if>
<if test="threshold != null">threshold = #{threshold},</if>
<if test="type != null">type = #{type},</if>
<if test="variety != null">variety = #{variety},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteDevPitmonitSouthsmosAlarmById" parameterType="Long">
delete from dev_pitmonit_southsmos_alarm where id = #{id}
</delete>
<delete id="deleteDevPitmonitSouthsmosAlarmByIds" parameterType="String">
delete from dev_pitmonit_southsmos_alarm where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,151 @@
<?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.yanzhu.jh.device.mapper.PitmonitSouthsmosDataMapper">
<resultMap type="DevPitmonitSouthsmosData" id="DevPitmonitSouthsmosDataResult">
<result property="id" column="id" />
<result property="cfgId" column="cfgId" />
<result property="dataType" column="dataType" />
<result property="dataId" column="dataId" />
<result property="spId" column="spId" />
<result property="spName" column="spName" />
<result property="collectTime" column="collectTime" />
<result property="changeRate" column="changeRate" />
<result property="changeRate2" column="changeRate2" />
<result property="displace" column="displace" />
<result property="displace2" column="displace2" />
<result property="totalize" column="totalize" />
<result property="totalize2" column="totalize2" />
<result property="variation" column="variation" />
<result property="variation2" column="variation2" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDevPitmonitSouthsmosDataVo">
select id, cfgId, dataType, dataId, spId, spName, collectTime, changeRate, changeRate2, displace, displace2, totalize, totalize2, variation, variation2, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_data
</sql>
<select id="selectDevPitmonitSouthsmosDataList" parameterType="PitmonitSouthsmosData" resultMap="DevPitmonitSouthsmosDataResult">
<include refid="selectDevPitmonitSouthsmosDataVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
<if test="dataType != null and dataType != ''"> and dataType = #{dataType}</if>
<if test="dataId != null "> and dataId = #{dataId}</if>
<if test="spId != null "> and spId = #{spId}</if>
<if test="spName != null and spName != ''"> and spName like concat('%', #{spName}, '%')</if>
<if test="collectTime != null "> and collectTime = #{collectTime}</if>
<if test="changeRate != null "> and changeRate = #{changeRate}</if>
<if test="changeRate2 != null "> and changeRate2 = #{changeRate2}</if>
<if test="displace != null "> and displace = #{displace}</if>
<if test="displace2 != null "> and displace2 = #{displace2}</if>
<if test="totalize != null "> and totalize = #{totalize}</if>
<if test="totalize2 != null "> and totalize2 = #{totalize2}</if>
<if test="variation != null "> and variation = #{variation}</if>
<if test="variation2 != null "> and variation2 = #{variation2}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectDevPitmonitSouthsmosDataById" parameterType="Long" resultMap="DevPitmonitSouthsmosDataResult">
<include refid="selectDevPitmonitSouthsmosDataVo"/>
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosData" parameterType="DevPitmonitSouthsmosData" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
<if test="dataType != null">dataType,</if>
<if test="dataId != null">dataId,</if>
<if test="spId != null">spId,</if>
<if test="spName != null">spName,</if>
<if test="collectTime != null">collectTime,</if>
<if test="changeRate != null">changeRate,</if>
<if test="changeRate2 != null">changeRate2,</if>
<if test="displace != null">displace,</if>
<if test="displace2 != null">displace2,</if>
<if test="totalize != null">totalize,</if>
<if test="totalize2 != null">totalize2,</if>
<if test="variation != null">variation,</if>
<if test="variation2 != null">variation2,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgId != null">#{cfgId},</if>
<if test="dataType != null">#{dataType},</if>
<if test="dataId != null">#{dataId},</if>
<if test="spId != null">#{spId},</if>
<if test="spName != null">#{spName},</if>
<if test="collectTime != null">#{collectTime},</if>
<if test="changeRate != null">#{changeRate},</if>
<if test="changeRate2 != null">#{changeRate2},</if>
<if test="displace != null">#{displace},</if>
<if test="displace2 != null">#{displace2},</if>
<if test="totalize != null">#{totalize},</if>
<if test="totalize2 != null">#{totalize2},</if>
<if test="variation != null">#{variation},</if>
<if test="variation2 != null">#{variation2},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosData" parameterType="PitmonitSouthsmosData">
update dev_pitmonit_southsmos_data
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>
<if test="dataType != null">dataType = #{dataType},</if>
<if test="dataId != null">dataId = #{dataId},</if>
<if test="spId != null">spId = #{spId},</if>
<if test="spName != null">spName = #{spName},</if>
<if test="collectTime != null">collectTime = #{collectTime},</if>
<if test="changeRate != null">changeRate = #{changeRate},</if>
<if test="changeRate2 != null">changeRate2 = #{changeRate2},</if>
<if test="displace != null">displace = #{displace},</if>
<if test="displace2 != null">displace2 = #{displace2},</if>
<if test="totalize != null">totalize = #{totalize},</if>
<if test="totalize2 != null">totalize2 = #{totalize2},</if>
<if test="variation != null">variation = #{variation},</if>
<if test="variation2 != null">variation2 = #{variation2},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteDevPitmonitSouthsmosDataById" parameterType="Long">
delete from dev_pitmonit_southsmos_data where id = #{id}
</delete>
<delete id="deleteDevPitmonitSouthsmosDataByIds" parameterType="String">
delete from dev_pitmonit_southsmos_data where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,96 @@
<?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.yanzhu.jh.device.mapper.PitmonitSouthsmosDevSpMapper">
<resultMap type="PitmonitSouthsmosDevSp" id="DevPitmonitSouthsmosDevSpResult">
<result property="id" column="id" />
<result property="cfgId" column="cfgId" />
<result property="devId" column="devId" />
<result property="spId" column="spId" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDevPitmonitSouthsmosDevSpVo">
select id, cfgId, devId, spId, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_dev_sp
</sql>
<select id="selectDevPitmonitSouthsmosDevSpList" parameterType="PitmonitSouthsmosDevSp" resultMap="DevPitmonitSouthsmosDevSpResult">
<include refid="selectDevPitmonitSouthsmosDevSpVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
<if test="devId != null "> and devId = #{devId}</if>
<if test="spId != null "> and spId = #{spId}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectDevPitmonitSouthsmosDevSpById" parameterType="Long" resultMap="DevPitmonitSouthsmosDevSpResult">
<include refid="selectDevPitmonitSouthsmosDevSpVo"/>
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosDevSp" parameterType="PitmonitSouthsmosDevSp" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_dev_sp
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
<if test="devId != null">devId,</if>
<if test="spId != null">spId,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgId != null">#{cfgId},</if>
<if test="devId != null">#{devId},</if>
<if test="spId != null">#{spId},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosDevSp" parameterType="PitmonitSouthsmosDevSp">
update dev_pitmonit_southsmos_dev_sp
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>
<if test="devId != null">devId = #{devId},</if>
<if test="spId != null">spId = #{spId},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteDevPitmonitSouthsmosDevSpById" parameterType="Long">
delete from dev_pitmonit_southsmos_dev_sp where id = #{id}
</delete>
<delete id="deleteDevPitmonitSouthsmosDevSpByIds" parameterType="String">
delete from dev_pitmonit_southsmos_dev_sp where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,196 @@
<?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.yanzhu.jh.device.mapper.PitmonitSouthsmosDeviceMapper">
<resultMap type="DevPitmonitSouthsmosDevice" id="DevPitmonitSouthsmosDeviceResult">
<result property="id" column="id" />
<result property="cfgId" column="cfgId" />
<result property="devId" column="devId" />
<result property="autoType" column="autoType" />
<result property="certUrl" column="certUrl" />
<result property="checkDate" column="checkDate" />
<result property="devCode" column="devCode" />
<result property="devShadow" column="devShadow" />
<result property="devType" column="devType" />
<result property="devTypeName" column="devTypeName" />
<result property="key" column="key" />
<result property="manufacturer" column="manufacturer" />
<result property="name" column="name" />
<result property="orgId" column="orgId" />
<result property="parent" column="parent" />
<result property="parentIds" column="parentIds" />
<result property="productType" column="productType" />
<result property="position" column="position" />
<result property="status" column="status" />
<result property="structureId" column="structureId" />
<result property="structureName" column="structureName" />
<result property="typeCategory" column="typeCategory" />
<result property="typeName" column="typeName" />
<result property="verifyDate" column="verifyDate" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDevPitmonitSouthsmosDeviceVo">
select id, cfgId, devId, autoType, certUrl, checkDate, devCode, devShadow, devType, devTypeName, key, manufacturer, name, orgId, parent, parentIds, productType, position, status, structureId, structureName, typeCategory, typeName, verifyDate, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_device
</sql>
<select id="selectDevPitmonitSouthsmosDeviceList" parameterType="DevPitmonitSouthsmosDevice" resultMap="DevPitmonitSouthsmosDeviceResult">
<include refid="selectDevPitmonitSouthsmosDeviceVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
<if test="devId != null "> and devId = #{devId}</if>
<if test="autoType != null and autoType != ''"> and autoType = #{autoType}</if>
<if test="certUrl != null and certUrl != ''"> and certUrl = #{certUrl}</if>
<if test="checkDate != null "> and checkDate = #{checkDate}</if>
<if test="devCode != null and devCode != ''"> and devCode = #{devCode}</if>
<if test="devShadow != null and devShadow != ''"> and devShadow = #{devShadow}</if>
<if test="devType != null and devType != ''"> and devType = #{devType}</if>
<if test="devTypeName != null and devTypeName != ''"> and devTypeName like concat('%', #{devTypeName}, '%')</if>
<if test="key != null and key != ''"> and key = #{key}</if>
<if test="manufacturer != null and manufacturer != ''"> and manufacturer = #{manufacturer}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="orgId != null "> and orgId = #{orgId}</if>
<if test="parent != null and parent != ''"> and parent = #{parent}</if>
<if test="parentIds != null and parentIds != ''"> and parentIds = #{parentIds}</if>
<if test="productType != null and productType != ''"> and productType = #{productType}</if>
<if test="position != null and position != ''"> and position = #{position}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="structureId != null "> and structureId = #{structureId}</if>
<if test="structureName != null and structureName != ''"> and structureName like concat('%', #{structureName}, '%')</if>
<if test="typeCategory != null and typeCategory != ''"> and typeCategory = #{typeCategory}</if>
<if test="typeName != null and typeName != ''"> and typeName like concat('%', #{typeName}, '%')</if>
<if test="verifyDate != null and verifyDate != ''"> and verifyDate = #{verifyDate}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectDevPitmonitSouthsmosDeviceById" parameterType="Long" resultMap="DevPitmonitSouthsmosDeviceResult">
<include refid="selectDevPitmonitSouthsmosDeviceVo"/>
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosDevice" parameterType="PitmonitSouthsmosDevice" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_device
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
<if test="devId != null">devId,</if>
<if test="autoType != null">autoType,</if>
<if test="certUrl != null">certUrl,</if>
<if test="checkDate != null">checkDate,</if>
<if test="devCode != null">devCode,</if>
<if test="devShadow != null">devShadow,</if>
<if test="devType != null">devType,</if>
<if test="devTypeName != null">devTypeName,</if>
<if test="key != null">key,</if>
<if test="manufacturer != null">manufacturer,</if>
<if test="name != null">name,</if>
<if test="orgId != null">orgId,</if>
<if test="parent != null">parent,</if>
<if test="parentIds != null">parentIds,</if>
<if test="productType != null">productType,</if>
<if test="position != null">position,</if>
<if test="status != null">status,</if>
<if test="structureId != null">structureId,</if>
<if test="structureName != null">structureName,</if>
<if test="typeCategory != null">typeCategory,</if>
<if test="typeName != null">typeName,</if>
<if test="verifyDate != null">verifyDate,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgId != null">#{cfgId},</if>
<if test="devId != null">#{devId},</if>
<if test="autoType != null">#{autoType},</if>
<if test="certUrl != null">#{certUrl},</if>
<if test="checkDate != null">#{checkDate},</if>
<if test="devCode != null">#{devCode},</if>
<if test="devShadow != null">#{devShadow},</if>
<if test="devType != null">#{devType},</if>
<if test="devTypeName != null">#{devTypeName},</if>
<if test="key != null">#{key},</if>
<if test="manufacturer != null">#{manufacturer},</if>
<if test="name != null">#{name},</if>
<if test="orgId != null">#{orgId},</if>
<if test="parent != null">#{parent},</if>
<if test="parentIds != null">#{parentIds},</if>
<if test="productType != null">#{productType},</if>
<if test="position != null">#{position},</if>
<if test="status != null">#{status},</if>
<if test="structureId != null">#{structureId},</if>
<if test="structureName != null">#{structureName},</if>
<if test="typeCategory != null">#{typeCategory},</if>
<if test="typeName != null">#{typeName},</if>
<if test="verifyDate != null">#{verifyDate},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosDevice" parameterType="DevPitmonitSouthsmosDevice">
update dev_pitmonit_southsmos_device
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>
<if test="devId != null">devId = #{devId},</if>
<if test="autoType != null">autoType = #{autoType},</if>
<if test="certUrl != null">certUrl = #{certUrl},</if>
<if test="checkDate != null">checkDate = #{checkDate},</if>
<if test="devCode != null">devCode = #{devCode},</if>
<if test="devShadow != null">devShadow = #{devShadow},</if>
<if test="devType != null">devType = #{devType},</if>
<if test="devTypeName != null">devTypeName = #{devTypeName},</if>
<if test="key != null">key = #{key},</if>
<if test="manufacturer != null">manufacturer = #{manufacturer},</if>
<if test="name != null">name = #{name},</if>
<if test="orgId != null">orgId = #{orgId},</if>
<if test="parent != null">parent = #{parent},</if>
<if test="parentIds != null">parentIds = #{parentIds},</if>
<if test="productType != null">productType = #{productType},</if>
<if test="position != null">position = #{position},</if>
<if test="status != null">status = #{status},</if>
<if test="structureId != null">structureId = #{structureId},</if>
<if test="structureName != null">structureName = #{structureName},</if>
<if test="typeCategory != null">typeCategory = #{typeCategory},</if>
<if test="typeName != null">typeName = #{typeName},</if>
<if test="verifyDate != null">verifyDate = #{verifyDate},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteDevPitmonitSouthsmosDeviceById" parameterType="Long">
delete from dev_pitmonit_southsmos_device where id = #{id}
</delete>
<delete id="deleteDevPitmonitSouthsmosDeviceByIds" parameterType="String">
delete from dev_pitmonit_southsmos_device where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,126 @@
<?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.yanzhu.jh.device.mapper.PitmonitSouthsmosElementItemMapper">
<resultMap type="PitmonitSouthsmosElementItem" id="DevPitmonitSouthsmosElementItemResult">
<result property="id" column="id" />
<result property="cfgId" column="cfgId" />
<result property="srvId" column="srvId" />
<result property="monitorElementId" column="monitorElementId" />
<result property="name" column="name" />
<result property="step" column="step" />
<result property="unit" column="unit" />
<result property="valueRange" column="valueRange" />
<result property="gmtCreate" column="gmtCreate" />
<result property="gmtModified" column="gmtModified" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDevPitmonitSouthsmosElementItemVo">
select id, cfgId, srvId, monitorElementId, name, step, unit, valueRange, gmtCreate, gmtModified, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_element_item
</sql>
<select id="selectDevPitmonitSouthsmosElementItemList" parameterType="DevPitmonitSouthsmosElementItem" resultMap="DevPitmonitSouthsmosElementItemResult">
<include refid="selectDevPitmonitSouthsmosElementItemVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
<if test="srvId != null "> and srvId = #{srvId}</if>
<if test="monitorElementId != null "> and monitorElementId = #{monitorElementId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="step != null "> and step = #{step}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="valueRange != null and valueRange != ''"> and valueRange = #{valueRange}</if>
<if test="gmtCreate != null and gmtCreate != ''"> and gmtCreate = #{gmtCreate}</if>
<if test="gmtModified != null and gmtModified != ''"> and gmtModified = #{gmtModified}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectDevPitmonitSouthsmosElementItemById" parameterType="Long" resultMap="DevPitmonitSouthsmosElementItemResult">
<include refid="selectDevPitmonitSouthsmosElementItemVo"/>
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosElementItem" parameterType="DevPitmonitSouthsmosElementItem" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_element_item
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
<if test="srvId != null">srvId,</if>
<if test="monitorElementId != null">monitorElementId,</if>
<if test="name != null">name,</if>
<if test="step != null">step,</if>
<if test="unit != null">unit,</if>
<if test="valueRange != null">valueRange,</if>
<if test="gmtCreate != null">gmtCreate,</if>
<if test="gmtModified != null">gmtModified,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgId != null">#{cfgId},</if>
<if test="srvId != null">#{srvId},</if>
<if test="monitorElementId != null">#{monitorElementId},</if>
<if test="name != null">#{name},</if>
<if test="step != null">#{step},</if>
<if test="unit != null">#{unit},</if>
<if test="valueRange != null">#{valueRange},</if>
<if test="gmtCreate != null">#{gmtCreate},</if>
<if test="gmtModified != null">#{gmtModified},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosElementItem" parameterType="PitmonitSouthsmosElementItem">
update dev_pitmonit_southsmos_element_item
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>
<if test="srvId != null">srvId = #{srvId},</if>
<if test="monitorElementId != null">monitorElementId = #{monitorElementId},</if>
<if test="name != null">name = #{name},</if>
<if test="step != null">step = #{step},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="valueRange != null">valueRange = #{valueRange},</if>
<if test="gmtCreate != null">gmtCreate = #{gmtCreate},</if>
<if test="gmtModified != null">gmtModified = #{gmtModified},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteDevPitmonitSouthsmosElementItemById" parameterType="Long">
delete from dev_pitmonit_southsmos_element_item where id = #{id}
</delete>
<delete id="deleteDevPitmonitSouthsmosElementItemByIds" parameterType="String">
delete from dev_pitmonit_southsmos_element_item where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,116 @@
<?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.yanzhu.jh.device.mapper.PitmonitSouthsmosElementMapper">
<resultMap type="PitmonitSouthsmosElement" id="DevPitmonitSouthsmosElementResult">
<result property="id" column="id" />
<result property="cfgId" column="cfgId" />
<result property="srvId" column="srvId" />
<result property="maxSp" column="maxSp" />
<result property="monitorStatus" column="monitorStatus" />
<result property="name" column="name" />
<result property="nameEn" column="nameEn" />
<result property="type" column="type" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDevPitmonitSouthsmosElementVo">
select id, cfgId, srvId, maxSp, monitorStatus, name, nameEn, type, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_element
</sql>
<select id="selectDevPitmonitSouthsmosElementList" parameterType="PitmonitSouthsmosElement" resultMap="DevPitmonitSouthsmosElementResult">
<include refid="selectDevPitmonitSouthsmosElementVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
<if test="srvId != null "> and srvId = #{srvId}</if>
<if test="maxSp != null and maxSp != ''"> and maxSp = #{maxSp}</if>
<if test="monitorStatus != null and monitorStatus != ''"> and monitorStatus = #{monitorStatus}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="nameEn != null and nameEn != ''"> and nameEn = #{nameEn}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectDevPitmonitSouthsmosElementById" parameterType="Long" resultMap="DevPitmonitSouthsmosElementResult">
<include refid="selectDevPitmonitSouthsmosElementVo"/>
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosElement" parameterType="DevPitmonitSouthsmosElement" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_element
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
<if test="srvId != null">srvId,</if>
<if test="maxSp != null">maxSp,</if>
<if test="monitorStatus != null">monitorStatus,</if>
<if test="name != null">name,</if>
<if test="nameEn != null">nameEn,</if>
<if test="type != null">type,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgId != null">#{cfgId},</if>
<if test="srvId != null">#{srvId},</if>
<if test="maxSp != null">#{maxSp},</if>
<if test="monitorStatus != null">#{monitorStatus},</if>
<if test="name != null">#{name},</if>
<if test="nameEn != null">#{nameEn},</if>
<if test="type != null">#{type},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosElement" parameterType="DevPitmonitSouthsmosElement">
update dev_pitmonit_southsmos_element
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>
<if test="srvId != null">srvId = #{srvId},</if>
<if test="maxSp != null">maxSp = #{maxSp},</if>
<if test="monitorStatus != null">monitorStatus = #{monitorStatus},</if>
<if test="name != null">name = #{name},</if>
<if test="nameEn != null">nameEn = #{nameEn},</if>
<if test="type != null">type = #{type},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteDevPitmonitSouthsmosElementById" parameterType="Long">
delete from dev_pitmonit_southsmos_element where id = #{id}
</delete>
<delete id="deleteDevPitmonitSouthsmosElementByIds" parameterType="String">
delete from dev_pitmonit_southsmos_element where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,146 @@
<?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.yanzhu.jh.device.mapper.PitmonitSouthsmosSurveypointMapper">
<resultMap type="DevPitmonitSouthsmosSurveypoint" id="DevPitmonitSouthsmosSurveypointResult">
<result property="id" column="id" />
<result property="cfgId" column="cfgId" />
<result property="spId" column="spId" />
<result property="groupId" column="groupId" />
<result property="groupName" column="groupName" />
<result property="meId" column="meId" />
<result property="meName" column="meName" />
<result property="meNameEn" column="meNameEn" />
<result property="modifyDate" column="modifyDate" />
<result property="name" column="name" />
<result property="position" column="position" />
<result property="dataSource" column="dataSource" />
<result property="createDate" column="createDate" />
<result property="status" column="status" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDevPitmonitSouthsmosSurveypointVo">
select id, cfgId, spId, groupId, groupName, meId, meName, meNameEn, modifyDate, name, position, dataSource, createDate, status, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_surveypoint
</sql>
<select id="selectDevPitmonitSouthsmosSurveypointList" parameterType="PitmonitSouthsmosSurveypoint" resultMap="DevPitmonitSouthsmosSurveypointResult">
<include refid="selectDevPitmonitSouthsmosSurveypointVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
<if test="spId != null "> and spId = #{spId}</if>
<if test="groupId != null "> and groupId = #{groupId}</if>
<if test="groupName != null and groupName != ''"> and groupName like concat('%', #{groupName}, '%')</if>
<if test="meId != null "> and meId = #{meId}</if>
<if test="meName != null and meName != ''"> and meName like concat('%', #{meName}, '%')</if>
<if test="meNameEn != null and meNameEn != ''"> and meNameEn = #{meNameEn}</if>
<if test="modifyDate != null "> and modifyDate = #{modifyDate}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="position != null and position != ''"> and position = #{position}</if>
<if test="dataSource != null "> and dataSource = #{dataSource}</if>
<if test="createDate != null "> and createDate = #{createDate}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectDevPitmonitSouthsmosSurveypointById" parameterType="Long" resultMap="DevPitmonitSouthsmosSurveypointResult">
<include refid="selectDevPitmonitSouthsmosSurveypointVo"/>
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosSurveypoint" parameterType="DevPitmonitSouthsmosSurveypoint" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_surveypoint
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
<if test="spId != null">spId,</if>
<if test="groupId != null">groupId,</if>
<if test="groupName != null">groupName,</if>
<if test="meId != null">meId,</if>
<if test="meName != null">meName,</if>
<if test="meNameEn != null">meNameEn,</if>
<if test="modifyDate != null">modifyDate,</if>
<if test="name != null">name,</if>
<if test="position != null">position,</if>
<if test="dataSource != null">dataSource,</if>
<if test="createDate != null">createDate,</if>
<if test="status != null">status,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgId != null">#{cfgId},</if>
<if test="spId != null">#{spId},</if>
<if test="groupId != null">#{groupId},</if>
<if test="groupName != null">#{groupName},</if>
<if test="meId != null">#{meId},</if>
<if test="meName != null">#{meName},</if>
<if test="meNameEn != null">#{meNameEn},</if>
<if test="modifyDate != null">#{modifyDate},</if>
<if test="name != null">#{name},</if>
<if test="position != null">#{position},</if>
<if test="dataSource != null">#{dataSource},</if>
<if test="createDate != null">#{createDate},</if>
<if test="status != null">#{status},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosSurveypoint" parameterType="PitmonitSouthsmosSurveypoint">
update dev_pitmonit_southsmos_surveypoint
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>
<if test="spId != null">spId = #{spId},</if>
<if test="groupId != null">groupId = #{groupId},</if>
<if test="groupName != null">groupName = #{groupName},</if>
<if test="meId != null">meId = #{meId},</if>
<if test="meName != null">meName = #{meName},</if>
<if test="meNameEn != null">meNameEn = #{meNameEn},</if>
<if test="modifyDate != null">modifyDate = #{modifyDate},</if>
<if test="name != null">name = #{name},</if>
<if test="position != null">position = #{position},</if>
<if test="dataSource != null">dataSource = #{dataSource},</if>
<if test="createDate != null">createDate = #{createDate},</if>
<if test="status != null">status = #{status},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteDevPitmonitSouthsmosSurveypointById" parameterType="Long">
delete from dev_pitmonit_southsmos_surveypoint where id = #{id}
</delete>
<delete id="deleteDevPitmonitSouthsmosSurveypointByIds" parameterType="String">
delete from dev_pitmonit_southsmos_surveypoint where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,151 @@
<?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.yanzhu.jh.device.mapper.PitmonitSouthsmosThresholdMapper">
<resultMap type="DevPitmonitSouthsmosThreshold" id="DevPitmonitSouthsmosThresholdResult">
<result property="id" column="id" />
<result property="cfgId" column="cfgId" />
<result property="srvId" column="srvId" />
<result property="alarmInfo" column="alarmInfo" />
<result property="alarmName" column="alarmName" />
<result property="intervalA" column="intervalA" />
<result property="intervalB" column="intervalB" />
<result property="level" column="level" />
<result property="monitorElementId" column="monitorElementId" />
<result property="monitorItemId" column="monitorItemId" />
<result property="monitorItemName" column="monitorItemName" />
<result property="tgId" column="tgId" />
<result property="threshold" column="threshold" />
<result property="type" column="type" />
<result property="unit" column="unit" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDevPitmonitSouthsmosThresholdVo">
select id, cfgId, srvId, alarmInfo, alarmName, intervalA, intervalB, level, monitorElementId, monitorItemId, monitorItemName, tgId, threshold, type, unit, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_threshold
</sql>
<select id="selectDevPitmonitSouthsmosThresholdList" parameterType="DevPitmonitSouthsmosThreshold" resultMap="DevPitmonitSouthsmosThresholdResult">
<include refid="selectDevPitmonitSouthsmosThresholdVo"/>
<where>
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
<if test="srvId != null "> and srvId = #{srvId}</if>
<if test="alarmInfo != null and alarmInfo != ''"> and alarmInfo = #{alarmInfo}</if>
<if test="alarmName != null and alarmName != ''"> and alarmName like concat('%', #{alarmName}, '%')</if>
<if test="intervalA != null "> and intervalA = #{intervalA}</if>
<if test="intervalB != null "> and intervalB = #{intervalB}</if>
<if test="level != null "> and level = #{level}</if>
<if test="monitorElementId != null "> and monitorElementId = #{monitorElementId}</if>
<if test="monitorItemId != null "> and monitorItemId = #{monitorItemId}</if>
<if test="monitorItemName != null and monitorItemName != ''"> and monitorItemName like concat('%', #{monitorItemName}, '%')</if>
<if test="tgId != null "> and tgId = #{tgId}</if>
<if test="threshold != null and threshold != ''"> and threshold = #{threshold}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectDevPitmonitSouthsmosThresholdById" parameterType="Long" resultMap="DevPitmonitSouthsmosThresholdResult">
<include refid="selectDevPitmonitSouthsmosThresholdVo"/>
where id = #{id}
</select>
<insert id="insertDevPitmonitSouthsmosThreshold" parameterType="DevPitmonitSouthsmosThreshold" useGeneratedKeys="true" keyProperty="id">
insert into dev_pitmonit_southsmos_threshold
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgId != null">cfgId,</if>
<if test="srvId != null">srvId,</if>
<if test="alarmInfo != null">alarmInfo,</if>
<if test="alarmName != null">alarmName,</if>
<if test="intervalA != null">intervalA,</if>
<if test="intervalB != null">intervalB,</if>
<if test="level != null">level,</if>
<if test="monitorElementId != null">monitorElementId,</if>
<if test="monitorItemId != null">monitorItemId,</if>
<if test="monitorItemName != null">monitorItemName,</if>
<if test="tgId != null">tgId,</if>
<if test="threshold != null">threshold,</if>
<if test="type != null">type,</if>
<if test="unit != null">unit,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgId != null">#{cfgId},</if>
<if test="srvId != null">#{srvId},</if>
<if test="alarmInfo != null">#{alarmInfo},</if>
<if test="alarmName != null">#{alarmName},</if>
<if test="intervalA != null">#{intervalA},</if>
<if test="intervalB != null">#{intervalB},</if>
<if test="level != null">#{level},</if>
<if test="monitorElementId != null">#{monitorElementId},</if>
<if test="monitorItemId != null">#{monitorItemId},</if>
<if test="monitorItemName != null">#{monitorItemName},</if>
<if test="tgId != null">#{tgId},</if>
<if test="threshold != null">#{threshold},</if>
<if test="type != null">#{type},</if>
<if test="unit != null">#{unit},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateDevPitmonitSouthsmosThreshold" parameterType="PitmonitSouthsmosThreshold">
update dev_pitmonit_southsmos_threshold
<trim prefix="SET" suffixOverrides=",">
<if test="cfgId != null">cfgId = #{cfgId},</if>
<if test="srvId != null">srvId = #{srvId},</if>
<if test="alarmInfo != null">alarmInfo = #{alarmInfo},</if>
<if test="alarmName != null">alarmName = #{alarmName},</if>
<if test="intervalA != null">intervalA = #{intervalA},</if>
<if test="intervalB != null">intervalB = #{intervalB},</if>
<if test="level != null">level = #{level},</if>
<if test="monitorElementId != null">monitorElementId = #{monitorElementId},</if>
<if test="monitorItemId != null">monitorItemId = #{monitorItemId},</if>
<if test="monitorItemName != null">monitorItemName = #{monitorItemName},</if>
<if test="tgId != null">tgId = #{tgId},</if>
<if test="threshold != null">threshold = #{threshold},</if>
<if test="type != null">type = #{type},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteDevPitmonitSouthsmosThresholdById" parameterType="Long">
delete from dev_pitmonit_southsmos_threshold where id = #{id}
</delete>
<delete id="deleteDevPitmonitSouthsmosThresholdByIds" parameterType="String">
delete from dev_pitmonit_southsmos_threshold where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,106 @@
<?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.yanzhu.jh.device.mapper.ProjectPitMonitCfgMapper">
<resultMap type="ProjectPitMonitCfg" id="SurProjectPitMonitCfgResult">
<result property="id" column="id" />
<result property="projectId" column="project_id" />
<result property="subDeptId" column="sub_dept_id" />
<result property="vendorCode" column="vendor_code" />
<result property="vendorParamter" column="vendor_paramter" />
<result property="enabled" column="enabled" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSurProjectPitMonitCfgVo">
select id, project_id, sub_dept_id, vendor_code, vendor_paramter, enabled, state, remark, is_del, create_by, create_time, update_by, update_time from sur_project_pit_monit_cfg
</sql>
<select id="selectSurProjectPitMonitCfgList" parameterType="SurProjectPitMonitCfg" resultMap="SurProjectPitMonitCfgResult">
<include refid="selectSurProjectPitMonitCfgVo"/>
<where>
<if test="projectId != null "> and project_id = #{projectId}</if>
<if test="subDeptId != null "> and sub_dept_id = #{subDeptId}</if>
<if test="vendorCode != null and vendorCode != ''"> and vendor_code = #{vendorCode}</if>
<if test="vendorParamter != null and vendorParamter != ''"> and vendor_paramter = #{vendorParamter}</if>
<if test="enabled != null "> and enabled = #{enabled}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectSurProjectPitMonitCfgById" parameterType="Long" resultMap="SurProjectPitMonitCfgResult">
<include refid="selectSurProjectPitMonitCfgVo"/>
where id = #{id}
</select>
<insert id="insertSurProjectPitMonitCfg" parameterType="SurProjectPitMonitCfg" useGeneratedKeys="true" keyProperty="id">
insert into sur_project_pit_monit_cfg
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="projectId != null">project_id,</if>
<if test="subDeptId != null">sub_dept_id,</if>
<if test="vendorCode != null">vendor_code,</if>
<if test="vendorParamter != null">vendor_paramter,</if>
<if test="enabled != null">enabled,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="projectId != null">#{projectId},</if>
<if test="subDeptId != null">#{subDeptId},</if>
<if test="vendorCode != null">#{vendorCode},</if>
<if test="vendorParamter != null">#{vendorParamter},</if>
<if test="enabled != null">#{enabled},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</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>
</trim>
</insert>
<update id="updateSurProjectPitMonitCfg" parameterType="ProjectPitMonitCfg">
update sur_project_pit_monit_cfg
<trim prefix="SET" suffixOverrides=",">
<if test="projectId != null">project_id = #{projectId},</if>
<if test="subDeptId != null">sub_dept_id = #{subDeptId},</if>
<if test="vendorCode != null">vendor_code = #{vendorCode},</if>
<if test="vendorParamter != null">vendor_paramter = #{vendorParamter},</if>
<if test="enabled != null">enabled = #{enabled},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteSurProjectPitMonitCfgById" parameterType="Long">
delete from sur_project_pit_monit_cfg where id = #{id}
</delete>
<delete id="deleteSurProjectPitMonitCfgByIds" parameterType="String">
delete from sur_project_pit_monit_cfg where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>