Compare commits
5 Commits
f9ade243f9
...
3039785cde
Author | SHA1 | Date |
---|---|---|
|
3039785cde | |
|
66e8b5a0a8 | |
|
e05df432fa | |
|
4e5c54a732 | |
|
723d9307ff |
|
@ -191,9 +191,9 @@
|
|||
</div>
|
||||
<div class="afoot-content">
|
||||
<div class="afoot-overflow process-afoot-overflow" style="height: 530px" id="afootOverflow" @mouseout="listMinMouseout" @mouseover="listMinMouseover">
|
||||
<div v-if="warningData.length == 0" class="not-data">暂无预警数据</div>
|
||||
<template v-if="warningData.length > 0">
|
||||
<div :key="i" :class="forIndex == i ? 'afoot-con-for active' : 'afoot-con-for '" v-for="(item, i) in warningData">
|
||||
<div v-if="warningDataList.length == 0" class="not-data">暂无预警数据</div>
|
||||
<template v-if="warningDataList.length > 0">
|
||||
<div :key="i" :class="forIndex == i ? 'afoot-con-for active' : 'afoot-con-for '" v-for="(item, i) in warningDataList">
|
||||
<div class="afoot-machinery-nam" v-cloak>{{ item.warningType }}</div>
|
||||
<div class="afoot-machinery-info">
|
||||
<div class="afoot-machinery-data">
|
||||
|
@ -258,7 +258,7 @@ export default {
|
|||
},
|
||||
init() {
|
||||
if (!this.selProject) {
|
||||
return
|
||||
return false;
|
||||
}
|
||||
this.$api.powerIot.findProAllConfigPoint(this.selProject.id).then((res) => {
|
||||
if (res.data.length > 0) {
|
||||
|
|
|
@ -0,0 +1,481 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 报警信息对象 dev_pitmonit_southsmos_alarm
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public class PitmonitSouthsmosAlarm extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
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 HH:mm:ss")
|
||||
@Excel(name = "报警时间,如果数据回落至正常范围或被处理,则报警结束", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date gmtAlarmOver;
|
||||
|
||||
/** 开始后第一次产生报警的时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "开始后第一次产生报警的时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date gmtAlarmStart;
|
||||
|
||||
/** 数据库记录创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "数据库记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date gmtCreate;
|
||||
|
||||
/** 报警更新时间,该报警每产生一次都会更新该时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@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;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效", readConverterExp = "0=有效,1=无效")
|
||||
private Long isDel;
|
||||
|
||||
|
||||
private Long projectId;
|
||||
private Long subDeptId;
|
||||
|
||||
public Long getSubDeptId() {
|
||||
return subDeptId;
|
||||
}
|
||||
|
||||
public void setSubDeptId(Long subDeptId) {
|
||||
this.subDeptId = subDeptId;
|
||||
}
|
||||
|
||||
private String prjName;
|
||||
private String deptName;
|
||||
public Long getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public String getPrjName() {
|
||||
return prjName;
|
||||
}
|
||||
|
||||
public void setPrjName(String prjName) {
|
||||
this.prjName = prjName;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,308 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 测点数据对象 dev_pitmonit_southsmos_data
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public class PitmonitSouthsmosData extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
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 HH:mm:ss")
|
||||
@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 = "是否有效", readConverterExp = "0=有效,1=无效")
|
||||
private Long isDel;
|
||||
|
||||
|
||||
public Long getSubDeptId() {
|
||||
return subDeptId;
|
||||
}
|
||||
|
||||
public void setSubDeptId(Long subDeptId) {
|
||||
this.subDeptId = subDeptId;
|
||||
}
|
||||
private Long subDeptId;
|
||||
private Long projectId;
|
||||
private String prjName;
|
||||
private String deptName;
|
||||
|
||||
public Long getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public String getPrjName() {
|
||||
return prjName;
|
||||
}
|
||||
|
||||
public void setPrjName(String prjName) {
|
||||
this.prjName = prjName;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,112 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 设测点关系对象 dev_pitmonit_southsmos_dev_sp
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public class PitmonitSouthsmosDevSp extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private Long id;
|
||||
|
||||
/** 配置ID */
|
||||
@Excel(name = "配置ID")
|
||||
private Long cfgId;
|
||||
|
||||
/** 设备ID */
|
||||
@Excel(name = "设备ID")
|
||||
private Long devId;
|
||||
|
||||
/** 测点ID */
|
||||
@Excel(name = "测点ID")
|
||||
private Long spId;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Long state;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效", readConverterExp = "0=有效,1=无效")
|
||||
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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,444 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备管理对象 dev_pitmonit_southsmos_device
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public class PitmonitSouthsmosDevice extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
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;
|
||||
|
||||
private Long subDeptId;
|
||||
private Long projectId;
|
||||
private String prjName;
|
||||
private String deptName;
|
||||
|
||||
private List<PitmonitSouthsmosSurveypoint> surveypoints;
|
||||
|
||||
public List<PitmonitSouthsmosSurveypoint> getSurveypoints() {
|
||||
return surveypoints;
|
||||
}
|
||||
|
||||
public void setSurveypoints(List<PitmonitSouthsmosSurveypoint> surveypoints) {
|
||||
this.surveypoints = surveypoints;
|
||||
}
|
||||
|
||||
public Long getSubDeptId() {
|
||||
return subDeptId;
|
||||
}
|
||||
|
||||
public void setSubDeptId(Long subDeptId) {
|
||||
this.subDeptId = subDeptId;
|
||||
}
|
||||
|
||||
public Long getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public String getPrjName() {
|
||||
return prjName;
|
||||
}
|
||||
|
||||
public void setPrjName(String prjName) {
|
||||
this.prjName = prjName;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,216 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 监测项管理对象 dev_pitmonit_southsmos_element
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public class PitmonitSouthsmosElement extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
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;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效", readConverterExp = "0=有效,1=无效")
|
||||
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;
|
||||
}
|
||||
private Long subDeptId;
|
||||
private Long projectId;
|
||||
private String prjName;
|
||||
private String deptName;
|
||||
|
||||
private List<com.yanzhu.device.domain.PitmonitSouthsmosElementItem> children;
|
||||
|
||||
public List<com.yanzhu.device.domain.PitmonitSouthsmosElementItem> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
public void setChildren(List<com.yanzhu.device.domain.PitmonitSouthsmosElementItem> children) {
|
||||
this.children = children;
|
||||
}
|
||||
|
||||
public Long getSubDeptId() {
|
||||
return subDeptId;
|
||||
}
|
||||
|
||||
public void setSubDeptId(Long subDeptId) {
|
||||
this.subDeptId = subDeptId;
|
||||
}
|
||||
|
||||
public Long getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public String getPrjName() {
|
||||
return prjName;
|
||||
}
|
||||
|
||||
public void setPrjName(String prjName) {
|
||||
this.prjName = prjName;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
@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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,196 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 测项明细对象 dev_pitmonit_southsmos_element_item
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public class PitmonitSouthsmosElementItem extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private Long id;
|
||||
|
||||
/** 配置ID */
|
||||
@Excel(name = "配置ID")
|
||||
private Long cfgId;
|
||||
|
||||
/** 服务端ID */
|
||||
@Excel(name = "服务端ID")
|
||||
private Long srvId;
|
||||
|
||||
/** dev_pitmonit_southsmos_element表srvId */
|
||||
@Excel(name = "monitorElementId")
|
||||
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;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效", readConverterExp = "0=有效,1=无效")
|
||||
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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,281 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 测点管理对象 dev_pitmonit_southsmos_surveypoint
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public class PitmonitSouthsmosSurveypoint extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
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;
|
||||
|
||||
/** 创建时间 */
|
||||
@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;
|
||||
private Long subDeptId;
|
||||
private Long projectId;
|
||||
|
||||
public Long getSubDeptId() {
|
||||
return subDeptId;
|
||||
}
|
||||
|
||||
public void setSubDeptId(Long subDeptId) {
|
||||
this.subDeptId = subDeptId;
|
||||
}
|
||||
|
||||
public Long getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public String getPrjName() {
|
||||
return prjName;
|
||||
}
|
||||
|
||||
public void setPrjName(String prjName) {
|
||||
this.prjName = prjName;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
private String prjName;
|
||||
private String deptName;
|
||||
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 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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,312 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 报警阈值对象 dev_pitmonit_southsmos_threshold
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public class PitmonitSouthsmosThreshold extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
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;
|
||||
|
||||
private Long subDeptId;
|
||||
private Long projectId;
|
||||
private String prjName;
|
||||
private String deptName;
|
||||
private String elName;
|
||||
|
||||
public Long getSubDeptId() {
|
||||
return subDeptId;
|
||||
}
|
||||
|
||||
public void setSubDeptId(Long subDeptId) {
|
||||
this.subDeptId = subDeptId;
|
||||
}
|
||||
|
||||
public Long getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public String getPrjName() {
|
||||
return prjName;
|
||||
}
|
||||
|
||||
public void setPrjName(String prjName) {
|
||||
this.prjName = prjName;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getElName() {
|
||||
return elName;
|
||||
}
|
||||
|
||||
public void setElName(String elName) {
|
||||
this.elName = elName;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,160 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 项目基坑监测配置
|
||||
对象 sur_project_pit_monit_cfg
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public class ProjectPitMonitCfg extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
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;
|
||||
|
||||
private String projectName;
|
||||
private String deptName;
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
/** 状态 */
|
||||
@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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosAlarm;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报警信息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);
|
||||
|
||||
public List<PitmonitSouthsmosAlarm> queryByState(PitmonitSouthsmosAlarm where);
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosData;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测点数据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);
|
||||
|
||||
public int getCountByPrjId(Long prjId);
|
||||
|
||||
/**
|
||||
* 获取项目中测点最后一条数据
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public List<PitmonitSouthsmosData> getLastDataForElement(Long id);
|
||||
/**
|
||||
* 按收集日期和数据类型查询数据
|
||||
* @param where
|
||||
* @return
|
||||
*/
|
||||
List<PitmonitSouthsmosData> selectByDate(PitmonitSouthsmosData where);
|
||||
|
||||
public Date monitDays(Long id);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosDevSp;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设测点关系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);
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosDevice;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备管理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);
|
||||
|
||||
public int getCountByPrjId(Long id);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosElementItem;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测项明细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);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosElement;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 监测项管理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);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosSurveypoint;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测点管理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);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosThreshold;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报警阈值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);
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.ProjectPitMonitCfg;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目基坑监测配置
|
||||
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);
|
||||
}
|
|
@ -0,0 +1,230 @@
|
|||
<?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.device.mapper.PitmonitSouthsmosAlarmMapper">
|
||||
|
||||
<resultMap type="PitmonitSouthsmosAlarm" id="PitmonitSouthsmosAlarmResult">
|
||||
<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" />
|
||||
<result property="deptName" column="deptName"/>
|
||||
<result property="prjName" column="prjName"/>
|
||||
<result property="projectId" column="projectId"/>
|
||||
<result property="subDeptId" column=""/>
|
||||
</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="PitmonitSouthsmosAlarmResult">
|
||||
SELECT a.*,c.unitName AS deptName,b.project_id as projectId,p.projectName prjName,c.unitName as deptName,b.sub_dept_id subDeptId
|
||||
FROM dev_pitmonit_southsmos_alarm a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
|
||||
JOIN sur_project p on b.project_id =p.id
|
||||
JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId
|
||||
WHERE a.is_del = 0
|
||||
<if test="cfgId != null "> and a.cfgId = #{cfgId}</if>
|
||||
<if test="srvId != null "> and a.srvId = #{srvId}</if>
|
||||
<if test="alarmInfo != null and alarmInfo != ''"> and a.alarmInfo = #{alarmInfo}</if>
|
||||
<if test="alarmSource != null and alarmSource != ''"> and a.alarmSource = #{alarmSource}</if>
|
||||
<if test="gmtAlarm != null "> and a.gmtAlarm = #{gmtAlarm}</if>
|
||||
<if test="gmtAlarmOver != null "> and a.gmtAlarmOver = #{gmtAlarmOver}</if>
|
||||
<if test="gmtAlarmStart != null "> and a.gmtAlarmStart = #{gmtAlarmStart}</if>
|
||||
<if test="gmtCreate != null "> and a.gmtCreate = #{gmtCreate}</if>
|
||||
<if test="gmtModified != null "> and a.gmtModified = #{gmtModified}</if>
|
||||
<if test="level != null "> and a.level = #{level}</if>
|
||||
<if test="meId != null "> and a.meId = #{meId}</if>
|
||||
<if test="meName != null and meName != ''"> and a.meName like concat('%', #{meName}, '%')</if>
|
||||
<if test="monitorItemId != null "> and a.monitorItemId = #{monitorItemId}</if>
|
||||
<if test="numbers != null "> and a.numbers = #{numbers}</if>
|
||||
<if test="result != null and result != ''"> and a.result = #{result}</if>
|
||||
<if test="resultUrl != null and resultUrl != ''"> and a.resultUrl = #{resultUrl}</if>
|
||||
<if test="spId != null "> and a.spId = #{spId}</if>
|
||||
<if test="spName != null and spName != ''"> and a.spName like concat('%', #{spName}, '%')</if>
|
||||
<if test="staff != null and staff != ''"> and a.staff = #{staff}</if>
|
||||
<if test="staffPhone != null and staffPhone != ''"> and a.staffPhone = #{staffPhone}</if>
|
||||
<if test="status != null and status != ''"> and a.status = #{status}</if>
|
||||
<if test="structureId != null "> and a.structureId = #{structureId}</if>
|
||||
<if test="structureName != null and structureName != ''"> and a.structureName like concat('%', #{structureName}, '%')</if>
|
||||
<if test="threshold != null and threshold != ''"> and a.threshold = #{threshold}</if>
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
<if test="variety != null and variety != ''"> and a.variety = #{variety}</if>
|
||||
<if test="state != null "> and a.state = #{state}</if>
|
||||
<if test="projectId != null and projectId>0 "> and b.project_id= #{projectId}</if>
|
||||
<if test="subDeptId != null and subDeptId>0 "> and b.sub_dept_id= #{subDeptId}</if>
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosAlarmById" parameterType="Long" resultMap="PitmonitSouthsmosAlarmResult">
|
||||
<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">
|
||||
update dev_pitmonit_southsmos_alarm set is_del=1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<select id="queryByState" parameterType="PitmonitSouthsmosAlarm" resultMap="PitmonitSouthsmosAlarmResult">
|
||||
SELECT a.*,c.unitName AS deptName,b.project_id as projectId
|
||||
FROM dev_pitmonit_southsmos_alarm a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
|
||||
JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId
|
||||
WHERE
|
||||
a.is_del = 0
|
||||
<if test="status != null and status != ''"> and a.status = #{status}</if>
|
||||
<if test="projectId != null and projectId >0"> and b.project_id = #{projectId}</if>
|
||||
</select>
|
||||
</mapper>
|
|
@ -0,0 +1,226 @@
|
|||
<?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.device.mapper.PitmonitSouthsmosDataMapper">
|
||||
|
||||
<resultMap type="PitmonitSouthsmosData" id="PitmonitSouthsmosDataResult">
|
||||
<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" />
|
||||
<result property="deptName" column="deptName"/>
|
||||
<result property="projectId" column="projectId"/>
|
||||
<result property="subDeptId" column="subDeptId"/>
|
||||
<result property="prjName" column="prjName"/>
|
||||
</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="PitmonitSouthsmosDataResult">
|
||||
SELECT a.*,c.unitName AS deptName,b.project_id AS projectId,p.projectName prjName,c.unitName AS deptName,b.sub_dept_id subDeptId
|
||||
FROM dev_pitmonit_southsmos_data a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
|
||||
JOIN sur_project p ON b.project_id =p.id
|
||||
JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId
|
||||
WHERE a.is_del = 0
|
||||
<if test="cfgId != null "> and a.cfgId = #{cfgId}</if>
|
||||
<if test="dataType != null and dataType != ''"> and a.dataType = #{dataType}</if>
|
||||
<if test="dataId != null "> and a.dataId = #{dataId}</if>
|
||||
<if test="spId != null "> and a.spId = #{spId}</if>
|
||||
<if test="spName != null and spName != ''"> and a.spName like concat('%', #{spName}, '%')</if>
|
||||
<if test="collectTime != null "> and a.collectTime = #{collectTime}</if>
|
||||
<if test="changeRate != null "> and a.changeRate = #{changeRate}</if>
|
||||
<if test="changeRate2 != null "> and a.changeRate2 = #{changeRate2}</if>
|
||||
<if test="displace != null "> and a.displace = #{displace}</if>
|
||||
<if test="displace2 != null "> and a.displace2 = #{displace2}</if>
|
||||
<if test="totalize != null "> and a.totalize = #{totalize}</if>
|
||||
<if test="totalize2 != null "> and a.totalize2 = #{totalize2}</if>
|
||||
<if test="variation != null "> and a.variation = #{variation}</if>
|
||||
<if test="variation2 != null "> and a.variation2 = #{variation2}</if>
|
||||
<if test="state != null "> and a.state = #{state}</if>
|
||||
<if test="createTime!=null">and date(a.collectTime) >= date(#{createTime})</if>
|
||||
<if test="updateTime!=null">and date(a.collectTime) <= date(#{updateTime})</if>
|
||||
<if test="projectId != null and projectId>0 "> and b.project_id= #{projectId}</if>
|
||||
<if test="subDeptId != null and subDeptId>0 "> and b.sub_dept_id= #{subDeptId}</if>
|
||||
order by a.collectTime desc
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosDataById" parameterType="Long" resultMap="PitmonitSouthsmosDataResult">
|
||||
<include refid="selectDevPitmonitSouthsmosDataVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosData" parameterType="PitmonitSouthsmosData" 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>
|
||||
|
||||
<select id="getCountByPrjId" resultType="Integer" parameterType="Long">
|
||||
SELECT COUNT(1)
|
||||
FROM dev_pitmonit_southsmos_data d
|
||||
JOIN sur_project_pit_monit_cfg s ON d.cfgid = s.id
|
||||
WHERE s.project_id = #{prjId}
|
||||
AND d.is_del = 0
|
||||
</select>
|
||||
|
||||
<select id="getLastDataForElement" parameterType="Long" resultMap="PitmonitSouthsmosDataResult">
|
||||
WITH LatestData AS (
|
||||
SELECT a.spid, MAX(a.id) AS max_id
|
||||
FROM dev_pitmonit_southsmos_data a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
|
||||
WHERE b.project_id = #{id}
|
||||
AND a.is_del = 0
|
||||
GROUP BY a.spid
|
||||
),
|
||||
FilteredData AS (
|
||||
SELECT a.*, c.unitName AS deptName, b.project_id AS projectId
|
||||
FROM dev_pitmonit_southsmos_data a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
|
||||
JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId
|
||||
JOIN LatestData ld ON a.id = ld.max_id
|
||||
WHERE b.project_id = #{id}
|
||||
AND a.is_del = 0
|
||||
),
|
||||
SurveyPoints AS (
|
||||
SELECT a.cfgid, a.spId, a.NAME, a.meNameEn,c.unitName AS deptName,c.projectId,a.position as remark
|
||||
FROM dev_pitmonit_southsmos_surveypoint a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
|
||||
JOIN sur_project_unit_info c ON b.sub_dept_id=c.unitId AND b.project_id=c.projectId
|
||||
WHERE b.project_id = #{id}
|
||||
)
|
||||
SELECT sp.cfgid, sp.spId, sp.NAME AS spName, sp.meNameEn AS datatype,
|
||||
fd.id, fd.dataid, fd.collecttime, fd.changeRate, fd.changeRate2,
|
||||
fd.displace, fd.displace2, fd.totalize, fd.totalize2, fd.variation,
|
||||
fd.variation2, fd.state, sp.remark, fd.is_del, fd.create_by,
|
||||
fd.create_time, fd.update_by, fd.update_time, sp.deptName, sp.projectId
|
||||
FROM SurveyPoints sp
|
||||
LEFT JOIN FilteredData fd ON sp.spId = fd.spid;
|
||||
</select>
|
||||
|
||||
<select id="selectByDate" parameterType="PitmonitSouthsmosData" resultMap="PitmonitSouthsmosDataResult">
|
||||
select
|
||||
a.id, a.cfgId, a.dataType, a.dataId, a.spId, a.spName, a.collectTime, a.changeRate, a.changeRate2, a.displace, a.displace2, a.totalize,
|
||||
a.totalize2, a.variation, a.variation2, a.state, a.remark, a.is_del, a.create_by, a.create_time, a.update_by, a.update_time
|
||||
from dev_pitmonit_southsmos_data a
|
||||
JOIN sur_project_pit_monit_cfg b on a.cfgId=b.id
|
||||
WHERE b.project_id = #{projectId}
|
||||
AND a.is_del = 0
|
||||
<if test="dataType != null and dataType != ''"> and a.dataType = #{dataType}</if>
|
||||
<if test="createTime != null">and a.collectTime >= #{createTime}</if>
|
||||
<if test="updateTime != null">and a.collectTime <= #{updateTime}</if>
|
||||
order by a.collectTime desc
|
||||
</select>
|
||||
|
||||
<select id="monitDays" parameterType="Long" resultType="Date">
|
||||
select min(collectTime) collectTime
|
||||
from dev_pitmonit_southsmos_data a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId=b.id
|
||||
WHERE b.project_id= #{id}
|
||||
</select>
|
||||
|
||||
</mapper>
|
|
@ -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.device.mapper.PitmonitSouthsmosDevSpMapper">
|
||||
|
||||
<resultMap type="PitmonitSouthsmosDevSp" id="PitmonitSouthsmosDevSpResult">
|
||||
<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="PitmonitSouthsmosDevSpResult">
|
||||
<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="PitmonitSouthsmosDevSpResult">
|
||||
<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>
|
|
@ -0,0 +1,223 @@
|
|||
<?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.device.mapper.PitmonitSouthsmosDeviceMapper">
|
||||
|
||||
<resultMap type="PitmonitSouthsmosDevice" id="PitmonitSouthsmosDeviceResult">
|
||||
<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" />
|
||||
<result property="deptName" column="deptName"/>
|
||||
<result property="projectId" column="projectId"/>
|
||||
<result property="subDeptId" column="subDeptId"/>
|
||||
<result property="prjName" column="prjName"/>
|
||||
<collection property="surveypoints" ofType="pitmonitSouthsmosSurveypoint">
|
||||
<id property="spId" column="spId"></id>
|
||||
<result property="meName" column="meName"></result>
|
||||
<result property="meNameEn" column="meNameEn"></result>
|
||||
<result property="name" column="spName"></result>
|
||||
<result property="position" column="spPosition"></result>
|
||||
<result property="groupName" column="groupName"></result>
|
||||
</collection>
|
||||
</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="PitmonitSouthsmosDevice" resultMap="PitmonitSouthsmosDeviceResult">
|
||||
SELECT a.*,c.unitName AS deptName,b.project_id AS projectId,p.projectName prjName,c.unitName AS deptName,b.sub_dept_id subDeptId,
|
||||
sp.meName,sp.meNameEn,sp.name spName,sp.position spPosition,sp.groupName
|
||||
FROM dev_pitmonit_southsmos_device a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
|
||||
JOIN sur_project p ON b.project_id =p.id
|
||||
JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId
|
||||
left join dev_pitmonit_southsmos_dev_sp ds on a.devId=ds.devId
|
||||
left Join dev_pitmonit_southsmos_surveypoint sp on ds.spId=sp.spId
|
||||
WHERE a.is_del = 0
|
||||
<if test="cfgId != null "> and a.cfgId = #{cfgId}</if>
|
||||
<if test="devId != null "> and a.devId = #{devId}</if>
|
||||
<if test="autoType != null and autoType != ''"> and a.autoType = #{autoType}</if>
|
||||
<if test="certUrl != null and certUrl != ''"> and a.certUrl = #{certUrl}</if>
|
||||
<if test="checkDate != null "> and a.checkDate = #{checkDate}</if>
|
||||
<if test="devCode != null and devCode != ''"> and a.devCode = #{devCode}</if>
|
||||
<if test="devShadow != null and devShadow != ''"> and a.devShadow = #{devShadow}</if>
|
||||
<if test="devType != null and devType != ''"> and a.devType = #{devType}</if>
|
||||
<if test="devTypeName != null and devTypeName != ''"> and a.devTypeName like concat('%', #{devTypeName}, '%')</if>
|
||||
<if test="key != null and key != ''"> and `a.key` = #{key}</if>
|
||||
<if test="manufacturer != null and manufacturer != ''"> and a.manufacturer = #{manufacturer}</if>
|
||||
<if test="name != null and name != ''"> and a.name like concat('%', #{name}, '%')</if>
|
||||
<if test="orgId != null "> and a.orgId = #{orgId}</if>
|
||||
<if test="parent != null and parent != ''"> and a.parent = #{parent}</if>
|
||||
<if test="parentIds != null and parentIds != ''"> and a.parentIds = #{parentIds}</if>
|
||||
<if test="productType != null and productType != ''"> and a.productType = #{productType}</if>
|
||||
<if test="position != null and position != ''"> and a.position = #{position}</if>
|
||||
<if test="status != null and status != ''"> and a.status = #{status}</if>
|
||||
<if test="structureId != null "> and a.structureId = #{structureId}</if>
|
||||
<if test="structureName != null and structureName != ''"> and a.structureName like concat('%', #{structureName}, '%')</if>
|
||||
<if test="typeCategory != null and typeCategory != ''"> and a.typeCategory = #{typeCategory}</if>
|
||||
<if test="typeName != null and typeName != ''"> and a.typeName like concat('%', #{typeName}, '%')</if>
|
||||
<if test="verifyDate != null and verifyDate != ''"> and a.verifyDate = #{verifyDate}</if>
|
||||
<if test="state != null "> and a.state = #{state}</if>
|
||||
<if test="projectId != null and projectId>0 "> and b.project_id= #{projectId}</if>
|
||||
<if test="subDeptId != null and subDeptId>0 "> and b.sub_dept_id= #{subDeptId}</if>
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosDeviceById" parameterType="Long" resultMap="PitmonitSouthsmosDeviceResult">
|
||||
<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="PitmonitSouthsmosDevice">
|
||||
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">
|
||||
update dev_pitmonit_southsmos_device set is_del=1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<select id="getCountByPrjId" resultType="Integer" parameterType="Long">
|
||||
SELECT COUNT(1)
|
||||
FROM dev_pitmonit_southsmos_device d
|
||||
JOIN sur_project_pit_monit_cfg s ON d.cfgid = s.id
|
||||
WHERE s.project_id = #{id}
|
||||
AND d.is_del = 0
|
||||
</select>
|
||||
</mapper>
|
|
@ -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.device.mapper.PitmonitSouthsmosElementItemMapper">
|
||||
|
||||
<resultMap type="PitmonitSouthsmosElementItem" id="PitmonitSouthsmosElementItemResult">
|
||||
<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="PitmonitSouthsmosElementItem" resultMap="PitmonitSouthsmosElementItemResult">
|
||||
<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="PitmonitSouthsmosElementItemResult">
|
||||
<include refid="selectDevPitmonitSouthsmosElementItemVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosElementItem" parameterType="PitmonitSouthsmosElementItem" 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>
|
|
@ -0,0 +1,136 @@
|
|||
<?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.device.mapper.PitmonitSouthsmosElementMapper">
|
||||
|
||||
<resultMap type="PitmonitSouthsmosElement" id="PitmonitSouthsmosElementResult">
|
||||
<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" />
|
||||
<result property="deptName" column="deptName"/>
|
||||
<result property="projectId" column="projectId"/>
|
||||
<result property="subDeptId" column="subDeptId"/>
|
||||
<result property="prjName" column="prjName"/>
|
||||
<collection property="children" ofType="pitmonitSouthsmosElementItem">
|
||||
<id property="id" column="itemId"/>
|
||||
<result column="itemName" property="name"/>
|
||||
<result column="itemStep" property="step"/>
|
||||
<result column="itemUnit" property="unit"/>
|
||||
<result column="itemValueRange" property="valueRange"/>
|
||||
<result column="itemGmtCreate" property="gmtCreate"/>
|
||||
<result column="itemGmtModified" property="gmtModified"/>
|
||||
</collection>
|
||||
</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="PitmonitSouthsmosElementResult">
|
||||
SELECT a.*,c.unitName AS deptName,b.project_id AS projectId,p.projectName prjName,c.unitName AS deptName,b.sub_dept_id subDeptId,
|
||||
it.id itemId,it.name itemName,it.step itemStep,it.unit itemUnit,it.valueRange itemValueRange,it.gmtCreate itemGmtCreate,it.gmtModified itemGmtModified
|
||||
FROM dev_pitmonit_southsmos_element a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
|
||||
JOIN sur_project p ON b.project_id =p.id
|
||||
JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId
|
||||
JOIN dev_pitmonit_southsmos_element_item it ON a.srvId=monitorElementId AND it.is_del=0
|
||||
WHERE a.is_del = 0
|
||||
<if test="cfgId != null "> and a.cfgId = #{cfgId}</if>
|
||||
<if test="srvId != null "> and a.srvId = #{srvId}</if>
|
||||
<if test="maxSp != null and maxSp != ''"> and a.maxSp = #{maxSp}</if>
|
||||
<if test="monitorStatus != null and monitorStatus != ''"> and a.monitorStatus = #{monitorStatus}</if>
|
||||
<if test="name != null and name != ''"> and a.name like concat('%', #{name}, '%')</if>
|
||||
<if test="nameEn != null and nameEn != ''"> and a.nameEn = #{nameEn}</if>
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
<if test="state != null "> and a.state = #{state}</if>
|
||||
<if test="projectId != null and projectId>0 "> and b.project_id= #{projectId}</if>
|
||||
<if test="subDeptId != null and subDeptId>0 "> and b.sub_dept_id= #{subDeptId}</if>
|
||||
order by srvId desc
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosElementById" parameterType="Long" resultMap="PitmonitSouthsmosElementResult">
|
||||
<include refid="selectDevPitmonitSouthsmosElementVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosElement" parameterType="PitmonitSouthsmosElement" 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="PitmonitSouthsmosElement">
|
||||
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>
|
|
@ -0,0 +1,150 @@
|
|||
<?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.device.mapper.PitmonitSouthsmosSurveypointMapper">
|
||||
|
||||
<resultMap type="PitmonitSouthsmosSurveypoint" id="PitmonitSouthsmosSurveypointResult">
|
||||
<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="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" />
|
||||
<result property="deptName" column="deptName"/>
|
||||
<result property="projectId" column="projectId"/>
|
||||
<result property="subDeptId" column="subDeptId"/>
|
||||
<result property="prjName" column="prjName"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevPitmonitSouthsmosSurveypointVo">
|
||||
select id, cfgId, spId, groupId, groupName, meId, meName, meNameEn, modifyDate, name, position, 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="PitmonitSouthsmosSurveypointResult">
|
||||
SELECT a.*,c.unitName AS deptName,b.project_id AS projectId,p.projectName prjName,c.unitName AS deptName,b.sub_dept_id subDeptId
|
||||
FROM dev_pitmonit_southsmos_surveypoint a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
|
||||
JOIN sur_project p ON b.project_id =p.id
|
||||
JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId
|
||||
WHERE a.is_del = 0
|
||||
<if test="cfgId != null "> and a.cfgId = #{cfgId}</if>
|
||||
<if test="spId != null "> and a.spId = #{spId}</if>
|
||||
<if test="groupId != null "> and a.groupId = #{groupId}</if>
|
||||
<if test="groupName != null and groupName != ''"> and a.groupName like concat('%', #{groupName}, '%')</if>
|
||||
<if test="meId != null "> and a.meId = #{meId}</if>
|
||||
<if test="meName != null and meName != ''"> and a.meName like concat('%', #{meName}, '%')</if>
|
||||
<if test="meNameEn != null and meNameEn != ''"> and a.meNameEn = #{meNameEn}</if>
|
||||
<if test="modifyDate != null "> and a.modifyDate = #{modifyDate}</if>
|
||||
<if test="name != null and name != ''"> and a.name like concat('%', #{name}, '%')</if>
|
||||
<if test="position != null and position != ''"> and a.position = #{position}</if>
|
||||
<if test="status != null and status != ''"> and a.status = #{status}</if>
|
||||
<if test="state != null "> and a.state = #{state}</if>
|
||||
<if test="projectId != null and projectId>0 "> and b.project_id= #{projectId}</if>
|
||||
<if test="subDeptId != null and subDeptId>0 "> and b.sub_dept_id= #{subDeptId}</if>
|
||||
order by spId
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosSurveypointById" parameterType="Long" resultMap="PitmonitSouthsmosSurveypointResult">
|
||||
<include refid="selectDevPitmonitSouthsmosSurveypointVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosSurveypoint" parameterType="PitmonitSouthsmosSurveypoint" 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="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="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="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>
|
|
@ -0,0 +1,161 @@
|
|||
<?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.device.mapper.PitmonitSouthsmosThresholdMapper">
|
||||
|
||||
<resultMap type="PitmonitSouthsmosThreshold" id="PitmonitSouthsmosThresholdResult">
|
||||
<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" />
|
||||
<result property="deptName" column="deptName"/>
|
||||
<result property="projectId" column="projectId"/>
|
||||
<result property="subDeptId" column="subDeptId"/>
|
||||
<result property="prjName" column="prjName"/>
|
||||
<result property="elName" column="elName"/>
|
||||
</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="PitmonitSouthsmosThreshold" resultMap="PitmonitSouthsmosThresholdResult">
|
||||
SELECT a.*,e.name AS elName,c.unitName AS deptName,b.project_id AS projectId,p.projectName prjName,c.unitName AS deptName,b.sub_dept_id subDeptId
|
||||
FROM dev_pitmonit_southsmos_threshold a
|
||||
JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id
|
||||
JOIN sur_project p ON b.project_id =p.id
|
||||
JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId
|
||||
JOIN dev_pitmonit_southsmos_element e ON e.srvId=a.monitorElementId
|
||||
WHERE a.is_del=0
|
||||
<if test="cfgId != null "> and a.cfgId = #{cfgId}</if>
|
||||
<if test="srvId != null "> and a.srvId = #{srvId}</if>
|
||||
<if test="alarmInfo != null and alarmInfo != ''"> and a.alarmInfo = #{alarmInfo}</if>
|
||||
<if test="alarmName != null and alarmName != ''"> and a.alarmName like concat('%', #{alarmName}, '%')</if>
|
||||
<if test="intervalA != null "> and a.intervalA = #{intervalA}</if>
|
||||
<if test="intervalB != null "> and a.intervalB = #{intervalB}</if>
|
||||
<if test="level != null "> and a.level = #{level}</if>
|
||||
<if test="monitorElementId != null "> and a.monitorElementId = #{monitorElementId}</if>
|
||||
<if test="monitorItemId != null "> and a.monitorItemId = #{monitorItemId}</if>
|
||||
<if test="monitorItemName != null and monitorItemName != ''"> and a.monitorItemName like concat('%', #{monitorItemName}, '%')</if>
|
||||
<if test="tgId != null "> and a.tgId = #{tgId}</if>
|
||||
<if test="threshold != null and threshold != ''"> and a.threshold = #{threshold}</if>
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
<if test="unit != null and unit != ''"> and a.unit = #{unit}</if>
|
||||
<if test="state != null "> and a.state = #{state}</if>
|
||||
<if test="projectId != null and projectId>0 "> and b.project_id= #{projectId}</if>
|
||||
<if test="subDeptId != null and subDeptId>0 "> and b.sub_dept_id= #{subDeptId}</if>
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosThresholdById" parameterType="Long" resultMap="PitmonitSouthsmosThresholdResult">
|
||||
<include refid="selectDevPitmonitSouthsmosThresholdVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosThreshold" parameterType="PitmonitSouthsmosThreshold" 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>
|
|
@ -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.device.mapper.ProjectPitMonitCfgMapper">
|
||||
|
||||
<resultMap type="ProjectPitMonitCfg" id="ProjectPitMonitCfgResult">
|
||||
<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" />
|
||||
<result property="projectName" column="projectName"/>
|
||||
<result property="deptName" column="deptName"/>
|
||||
</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,projectName,deptName
|
||||
from (
|
||||
|
||||
select a.*,p.projectName,b.unitName as deptName
|
||||
from sur_project_pit_monit_cfg a
|
||||
JOIN sur_project p on a.project_id =p.id
|
||||
join sur_project_unit_info b on a.sub_dept_id=b.unitId and a.project_id=b.projectId ) sur_project_pit_monit_cfg
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectSurProjectPitMonitCfgList" parameterType="ProjectPitMonitCfg" resultMap="ProjectPitMonitCfgResult">
|
||||
<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="ProjectPitMonitCfgResult">
|
||||
<include refid="selectSurProjectPitMonitCfgVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSurProjectPitMonitCfg" parameterType="ProjectPitMonitCfg" 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>
|
|
@ -3,11 +3,9 @@
|
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.flowable.mapper.FlowDeployMapper">
|
||||
|
||||
|
||||
<select id="selectDeployList" resultType="FlowProcDefDto">
|
||||
|
||||
SELECT
|
||||
select
|
||||
rp.id_ as id,
|
||||
rp.deployment_id_ as deploymentId,
|
||||
rd.name_ as name,
|
||||
|
@ -20,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
sd.dept_name as deptName,
|
||||
pi.id as projectId,
|
||||
pi.project_name as projectName
|
||||
FROM
|
||||
from
|
||||
act_re_procdef rp
|
||||
LEFT JOIN act_re_deployment rd ON rp.deployment_id_ = rd.id_
|
||||
LEFT JOIN act_re_procdef_dept rpd ON rpd.PROCDEF_ID_ = rp.ID_
|
||||
|
|
|
@ -0,0 +1,98 @@
|
|||
package com.yanzhu.manage.controller.device;
|
||||
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosAlarm;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosAlarmService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报警信息Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/pitAlarm")
|
||||
public class PitmonitSouthsmosAlarmController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPitmonitSouthsmosAlarmService devPitmonitSouthsmosAlarmService;
|
||||
|
||||
/**
|
||||
* 查询报警信息列表
|
||||
*/
|
||||
@RequiresPermissions("device:pitAlarm:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm)
|
||||
{
|
||||
startPage();
|
||||
List<PitmonitSouthsmosAlarm> list = devPitmonitSouthsmosAlarmService.selectDevPitmonitSouthsmosAlarmList(pitmonitSouthsmosAlarm);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出报警信息列表
|
||||
*/
|
||||
@RequiresPermissions("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, "报警信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取报警信息详细信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitAlarm:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(devPitmonitSouthsmosAlarmService.selectDevPitmonitSouthsmosAlarmById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增报警信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitAlarm:add")
|
||||
@Log(title = "报警信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosAlarmService.insertDevPitmonitSouthsmosAlarm(pitmonitSouthsmosAlarm));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改报警信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitAlarm:edit")
|
||||
@Log(title = "报警信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PitmonitSouthsmosAlarm pitmonitSouthsmosAlarm)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosAlarmService.updateDevPitmonitSouthsmosAlarm(pitmonitSouthsmosAlarm));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除报警信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitAlarm:remove")
|
||||
@Log(title = "报警信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosAlarmService.deleteDevPitmonitSouthsmosAlarmByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.yanzhu.manage.controller.device;
|
||||
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosData;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosDataService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测点数据Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/pitData")
|
||||
public class PitmonitSouthsmosDataController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPitmonitSouthsmosDataService devPitmonitSouthsmosDataService;
|
||||
|
||||
/**
|
||||
* 查询测点数据列表
|
||||
*/
|
||||
@RequiresPermissions("device:pitData:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PitmonitSouthsmosData pitmonitSouthsmosData)
|
||||
{
|
||||
startPage();
|
||||
List<PitmonitSouthsmosData> list = devPitmonitSouthsmosDataService.selectDevPitmonitSouthsmosDataList(pitmonitSouthsmosData);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出测点数据列表
|
||||
*/
|
||||
@RequiresPermissions("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, "测点数据数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取测点数据详细信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitData:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(devPitmonitSouthsmosDataService.selectDevPitmonitSouthsmosDataById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增测点数据
|
||||
*/
|
||||
@RequiresPermissions("device:pitData:add")
|
||||
@Log(title = "测点数据", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PitmonitSouthsmosData pitmonitSouthsmosData)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosDataService.insertDevPitmonitSouthsmosData(pitmonitSouthsmosData));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改测点数据
|
||||
*/
|
||||
@RequiresPermissions("device:pitData:edit")
|
||||
@Log(title = "测点数据", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PitmonitSouthsmosData pitmonitSouthsmosData)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosDataService.updateDevPitmonitSouthsmosData(pitmonitSouthsmosData));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除测点数据
|
||||
*/
|
||||
@RequiresPermissions("device:pitData:remove")
|
||||
@Log(title = "测点数据", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosDataService.deleteDevPitmonitSouthsmosDataByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.yanzhu.manage.controller.device;
|
||||
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosDevSp;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosDevSpService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设测点关系Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/pitDeviceSurveyPoint")
|
||||
public class PitmonitSouthsmosDevSpController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPitmonitSouthsmosDevSpService devPitmonitSouthsmosDevSpService;
|
||||
|
||||
/**
|
||||
* 查询设测点关系列表
|
||||
*/
|
||||
@RequiresPermissions("device:pitDeviceSurveyPoint:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp)
|
||||
{
|
||||
startPage();
|
||||
List<PitmonitSouthsmosDevSp> list = devPitmonitSouthsmosDevSpService.selectDevPitmonitSouthsmosDevSpList(pitmonitSouthsmosDevSp);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设测点关系列表
|
||||
*/
|
||||
@RequiresPermissions("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, "设测点关系数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设测点关系详细信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitDeviceSurveyPoint:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(devPitmonitSouthsmosDevSpService.selectDevPitmonitSouthsmosDevSpById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设测点关系
|
||||
*/
|
||||
@RequiresPermissions("device:pitDeviceSurveyPoint:add")
|
||||
@Log(title = "设测点关系", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosDevSpService.insertDevPitmonitSouthsmosDevSp(pitmonitSouthsmosDevSp));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设测点关系
|
||||
*/
|
||||
@RequiresPermissions("device:pitDeviceSurveyPoint:edit")
|
||||
@Log(title = "设测点关系", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PitmonitSouthsmosDevSp pitmonitSouthsmosDevSp)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosDevSpService.updateDevPitmonitSouthsmosDevSp(pitmonitSouthsmosDevSp));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设测点关系
|
||||
*/
|
||||
@RequiresPermissions("device:pitDeviceSurveyPoint:remove")
|
||||
@Log(title = "设测点关系", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosDevSpService.deleteDevPitmonitSouthsmosDevSpByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.yanzhu.manage.controller.device;
|
||||
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosDevice;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosDeviceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备管理Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/pitDevice")
|
||||
public class PitmonitSouthsmosDeviceController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPitmonitSouthsmosDeviceService devPitmonitSouthsmosDeviceService;
|
||||
|
||||
/**
|
||||
* 查询设备管理列表
|
||||
*/
|
||||
@RequiresPermissions("device:pitDevice:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PitmonitSouthsmosDevice pitmonitSouthsmosDevice)
|
||||
{
|
||||
startPage();
|
||||
List<PitmonitSouthsmosDevice> list = devPitmonitSouthsmosDeviceService.selectDevPitmonitSouthsmosDeviceList(pitmonitSouthsmosDevice);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备管理列表
|
||||
*/
|
||||
@RequiresPermissions("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, "设备管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备管理详细信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitDevice:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(devPitmonitSouthsmosDeviceService.selectDevPitmonitSouthsmosDeviceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备管理
|
||||
*/
|
||||
@RequiresPermissions("device:pitDevice:add")
|
||||
@Log(title = "设备管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PitmonitSouthsmosDevice pitmonitSouthsmosDevice)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosDeviceService.insertDevPitmonitSouthsmosDevice(pitmonitSouthsmosDevice));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备管理
|
||||
*/
|
||||
@RequiresPermissions("device:pitDevice:edit")
|
||||
@Log(title = "设备管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PitmonitSouthsmosDevice pitmonitSouthsmosDevice)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosDeviceService.updateDevPitmonitSouthsmosDevice(pitmonitSouthsmosDevice));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备管理
|
||||
*/
|
||||
@RequiresPermissions("device:pitDevice:remove")
|
||||
@Log(title = "设备管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosDeviceService.deleteDevPitmonitSouthsmosDeviceByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.yanzhu.manage.controller.device;
|
||||
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosElement;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosElementService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 监测项管理Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/pitElement")
|
||||
public class PitmonitSouthsmosElementController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPitmonitSouthsmosElementService devPitmonitSouthsmosElementService;
|
||||
|
||||
/**
|
||||
* 查询监测项管理列表
|
||||
*/
|
||||
@RequiresPermissions("device:pitElement:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PitmonitSouthsmosElement pitmonitSouthsmosElement)
|
||||
{
|
||||
startPage();
|
||||
List<PitmonitSouthsmosElement> list = devPitmonitSouthsmosElementService.selectDevPitmonitSouthsmosElementList(pitmonitSouthsmosElement);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出监测项管理列表
|
||||
*/
|
||||
@RequiresPermissions("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, "监测项管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取监测项管理详细信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitElement:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(devPitmonitSouthsmosElementService.selectDevPitmonitSouthsmosElementById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增监测项管理
|
||||
*/
|
||||
@RequiresPermissions("device:pitElement:add")
|
||||
@Log(title = "监测项管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PitmonitSouthsmosElement pitmonitSouthsmosElement)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosElementService.insertDevPitmonitSouthsmosElement(pitmonitSouthsmosElement));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改监测项管理
|
||||
*/
|
||||
@RequiresPermissions("device:pitElement:edit")
|
||||
@Log(title = "监测项管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PitmonitSouthsmosElement pitmonitSouthsmosElement)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosElementService.updateDevPitmonitSouthsmosElement(pitmonitSouthsmosElement));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除监测项管理
|
||||
*/
|
||||
@RequiresPermissions("device:pitElement:remove")
|
||||
@Log(title = "监测项管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosElementService.deleteDevPitmonitSouthsmosElementByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.yanzhu.manage.controller.device;
|
||||
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosElementItem;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosElementItemService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测项明细Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/pitElementItem")
|
||||
public class PitmonitSouthsmosElementItemController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPitmonitSouthsmosElementItemService devPitmonitSouthsmosElementItemService;
|
||||
|
||||
/**
|
||||
* 查询测项明细列表
|
||||
*/
|
||||
@RequiresPermissions("device:pitElementItem:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem)
|
||||
{
|
||||
startPage();
|
||||
List<PitmonitSouthsmosElementItem> list = devPitmonitSouthsmosElementItemService.selectDevPitmonitSouthsmosElementItemList(pitmonitSouthsmosElementItem);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出测项明细列表
|
||||
*/
|
||||
@RequiresPermissions("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, "测项明细数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取测项明细详细信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitElementItem:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(devPitmonitSouthsmosElementItemService.selectDevPitmonitSouthsmosElementItemById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增测项明细
|
||||
*/
|
||||
@RequiresPermissions("device:pitElementItem:add")
|
||||
@Log(title = "测项明细", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosElementItemService.insertDevPitmonitSouthsmosElementItem(pitmonitSouthsmosElementItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改测项明细
|
||||
*/
|
||||
@RequiresPermissions("device:pitElementItem:edit")
|
||||
@Log(title = "测项明细", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PitmonitSouthsmosElementItem pitmonitSouthsmosElementItem)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosElementItemService.updateDevPitmonitSouthsmosElementItem(pitmonitSouthsmosElementItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除测项明细
|
||||
*/
|
||||
@RequiresPermissions("device:pitElementItem:remove")
|
||||
@Log(title = "测项明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosElementItemService.deleteDevPitmonitSouthsmosElementItemByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.yanzhu.manage.controller.device;
|
||||
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosSurveypoint;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosSurveypointService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测点管理Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/pitSurveyPoint")
|
||||
public class PitmonitSouthsmosSurveypointController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPitmonitSouthsmosSurveypointService devPitmonitSouthsmosSurveypointService;
|
||||
|
||||
/**
|
||||
* 查询测点管理列表
|
||||
*/
|
||||
@RequiresPermissions("device:pitSurveyPoint:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint)
|
||||
{
|
||||
startPage();
|
||||
List<PitmonitSouthsmosSurveypoint> list = devPitmonitSouthsmosSurveypointService.selectDevPitmonitSouthsmosSurveypointList(pitmonitSouthsmosSurveypoint);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出测点管理列表
|
||||
*/
|
||||
@RequiresPermissions("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, "测点管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取测点管理详细信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitSurveyPoint:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(devPitmonitSouthsmosSurveypointService.selectDevPitmonitSouthsmosSurveypointById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增测点管理
|
||||
*/
|
||||
@RequiresPermissions("device:pitSurveyPoint:add")
|
||||
@Log(title = "测点管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosSurveypointService.insertDevPitmonitSouthsmosSurveypoint(pitmonitSouthsmosSurveypoint));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改测点管理
|
||||
*/
|
||||
@RequiresPermissions("device:pitSurveyPoint:edit")
|
||||
@Log(title = "测点管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PitmonitSouthsmosSurveypoint pitmonitSouthsmosSurveypoint)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosSurveypointService.updateDevPitmonitSouthsmosSurveypoint(pitmonitSouthsmosSurveypoint));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除测点管理
|
||||
*/
|
||||
@RequiresPermissions("device:pitSurveyPoint:remove")
|
||||
@Log(title = "测点管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosSurveypointService.deleteDevPitmonitSouthsmosSurveypointByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.yanzhu.manage.controller.device;
|
||||
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosThreshold;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosThresholdService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报警阈值Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/pitThreshold")
|
||||
public class PitmonitSouthsmosThresholdController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPitmonitSouthsmosThresholdService devPitmonitSouthsmosThresholdService;
|
||||
|
||||
/**
|
||||
* 查询报警阈值列表
|
||||
*/
|
||||
@RequiresPermissions("device:pitThreshold:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold)
|
||||
{
|
||||
startPage();
|
||||
List<PitmonitSouthsmosThreshold> list = devPitmonitSouthsmosThresholdService.selectDevPitmonitSouthsmosThresholdList(pitmonitSouthsmosThreshold);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出报警阈值列表
|
||||
*/
|
||||
@RequiresPermissions("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, "报警阈值数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取报警阈值详细信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitThreshold:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(devPitmonitSouthsmosThresholdService.selectDevPitmonitSouthsmosThresholdById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增报警阈值
|
||||
*/
|
||||
@RequiresPermissions("device:pitThreshold:add")
|
||||
@Log(title = "报警阈值", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosThresholdService.insertDevPitmonitSouthsmosThreshold(pitmonitSouthsmosThreshold));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改报警阈值
|
||||
*/
|
||||
@RequiresPermissions("device:pitThreshold:edit")
|
||||
@Log(title = "报警阈值", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PitmonitSouthsmosThreshold pitmonitSouthsmosThreshold)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosThresholdService.updateDevPitmonitSouthsmosThreshold(pitmonitSouthsmosThreshold));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除报警阈值
|
||||
*/
|
||||
@RequiresPermissions("device:pitThreshold:remove")
|
||||
@Log(title = "报警阈值", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(devPitmonitSouthsmosThresholdService.deleteDevPitmonitSouthsmosThresholdByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
package com.yanzhu.manage.controller.device;
|
||||
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
import com.yanzhu.device.domain.ProjectPitMonitCfg;
|
||||
import com.yanzhu.manage.service.IProjectPitMonitCfgService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目基坑监测配置
|
||||
Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/pitConfig")
|
||||
public class ProjectPitMonitCfgController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IProjectPitMonitCfgService surProjectPitMonitCfgService;
|
||||
|
||||
/**
|
||||
* 查询项目基坑监测配置
|
||||
列表
|
||||
*/
|
||||
@RequiresPermissions("device:pitConfig:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ProjectPitMonitCfg projectPitMonitCfg)
|
||||
{
|
||||
startPage();
|
||||
List<ProjectPitMonitCfg> list = surProjectPitMonitCfgService.selectSurProjectPitMonitCfgList(projectPitMonitCfg);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出项目基坑监测配置
|
||||
列表
|
||||
*/
|
||||
@RequiresPermissions("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, "项目基坑监测配置数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取项目基坑监测配置
|
||||
详细信息
|
||||
*/
|
||||
@RequiresPermissions("device:pitConfig:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(surProjectPitMonitCfgService.selectSurProjectPitMonitCfgById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增项目基坑监测配置
|
||||
|
||||
*/
|
||||
@RequiresPermissions("device:pitConfig:add")
|
||||
@Log(title = "项目基坑监测配置", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ProjectPitMonitCfg surProjectPitMonitCfg)
|
||||
{
|
||||
return toAjax(surProjectPitMonitCfgService.insertSurProjectPitMonitCfg(surProjectPitMonitCfg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改项目基坑监测配置
|
||||
|
||||
*/
|
||||
@RequiresPermissions("device:pitConfig:edit")
|
||||
@Log(title = "项目基坑监测配置", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ProjectPitMonitCfg surProjectPitMonitCfg)
|
||||
{
|
||||
return toAjax(surProjectPitMonitCfgService.updateSurProjectPitMonitCfg(surProjectPitMonitCfg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除项目基坑监测配置
|
||||
|
||||
*/
|
||||
@RequiresPermissions("device:pitConfig:remove")
|
||||
@Log(title = "项目基坑监测配置", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(surProjectPitMonitCfgService.deleteSurProjectPitMonitCfgByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosAlarm;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报警信息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);
|
||||
|
||||
/**
|
||||
* 按项目和状态来查询
|
||||
* @param prjId
|
||||
* @param status
|
||||
* @return
|
||||
*/
|
||||
public List<PitmonitSouthsmosAlarm> queryByState(Long prjId, String status);
|
||||
}
|
|
@ -0,0 +1,82 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测点数据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);
|
||||
|
||||
public int getCountByPrjId(Long prjId);
|
||||
|
||||
/**
|
||||
* 获取项目中测点最后一条数据
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public List<PitmonitSouthsmosData> getLastDataForElement(Long id);
|
||||
|
||||
/**
|
||||
* 按收集日期和数据类型查询数据
|
||||
* @param where
|
||||
* @return
|
||||
*/
|
||||
public List<PitmonitSouthsmosData> selectByDate(PitmonitSouthsmosData where);
|
||||
/**
|
||||
* 数据监控天数
|
||||
*/
|
||||
public Long monitDays(Long prjId);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosDevSp;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设测点关系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);
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosDevice;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备管理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);
|
||||
|
||||
public int getCountByPrjId(Long prjId);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosElementItem;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测项明细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);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosElement;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 监测项管理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);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosSurveypoint;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测点管理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);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosThreshold;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报警阈值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);
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import com.yanzhu.device.domain.ProjectPitMonitCfg;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目基坑监测配置
|
||||
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);
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import com.yanzhu.common.security.utils.SecurityUtils;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosAlarm;
|
||||
import com.yanzhu.device.mapper.PitmonitSouthsmosAlarmMapper;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosAlarmService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报警信息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);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PitmonitSouthsmosAlarm> queryByState(Long prjId, String status) {
|
||||
PitmonitSouthsmosAlarm where=new PitmonitSouthsmosAlarm();
|
||||
where.setProjectId(prjId);
|
||||
where.setStatus(status);
|
||||
return pitmonitSouthsmosAlarmMapper.queryByState(where);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,133 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUnit;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import com.yanzhu.common.security.utils.SecurityUtils;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosData;
|
||||
import com.yanzhu.device.mapper.PitmonitSouthsmosDataMapper;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosDataService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测点数据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);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCountByPrjId(Long prjId) {
|
||||
return pitmonitSouthsmosDataMapper.getCountByPrjId(prjId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取项目中测点最后一条数据
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<PitmonitSouthsmosData> getLastDataForElement(Long id) {
|
||||
return pitmonitSouthsmosDataMapper.getLastDataForElement(id);
|
||||
}
|
||||
/**
|
||||
* 按收集日期和数据类型查询数据
|
||||
* @param where
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<PitmonitSouthsmosData> selectByDate(PitmonitSouthsmosData where) {
|
||||
return pitmonitSouthsmosDataMapper.selectByDate(where);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long monitDays(Long id) {
|
||||
Date dt= pitmonitSouthsmosDataMapper.monitDays(id);
|
||||
return dt==null?0: DateUtil.between(new Date(),dt, DateUnit.DAY);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,100 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import com.yanzhu.common.security.utils.SecurityUtils;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosDevSp;
|
||||
import com.yanzhu.device.mapper.PitmonitSouthsmosDevSpMapper;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosDevSpService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设测点关系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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import com.yanzhu.common.security.utils.SecurityUtils;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosDevice;
|
||||
import com.yanzhu.device.mapper.PitmonitSouthsmosDeviceMapper;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosDeviceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备管理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);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCountByPrjId(Long prjId) {
|
||||
return pitmonitSouthsmosDeviceMapper.getCountByPrjId(prjId);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,100 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import com.yanzhu.common.security.utils.SecurityUtils;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosElementItem;
|
||||
import com.yanzhu.device.mapper.PitmonitSouthsmosElementItemMapper;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosElementItemService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测项明细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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,100 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import com.yanzhu.common.security.utils.SecurityUtils;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosElement;
|
||||
import com.yanzhu.device.mapper.PitmonitSouthsmosElementMapper;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosElementService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 监测项管理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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,100 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import com.yanzhu.common.security.utils.SecurityUtils;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosSurveypoint;
|
||||
import com.yanzhu.device.mapper.PitmonitSouthsmosSurveypointMapper;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosSurveypointService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测点管理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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,100 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import com.yanzhu.common.security.utils.SecurityUtils;
|
||||
import com.yanzhu.device.domain.PitmonitSouthsmosThreshold;
|
||||
import com.yanzhu.device.mapper.PitmonitSouthsmosThresholdMapper;
|
||||
import com.yanzhu.manage.service.IPitmonitSouthsmosThresholdService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报警阈值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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,115 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import com.yanzhu.common.security.utils.SecurityUtils;
|
||||
import com.yanzhu.device.domain.ProjectPitMonitCfg;
|
||||
import com.yanzhu.device.mapper.ProjectPitMonitCfgMapper;
|
||||
import com.yanzhu.manage.service.IProjectPitMonitCfgService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目基坑监测配置
|
||||
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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue