Merge branch 'dev' of http://62.234.3.186:3000/sxyanzhu/jhprjv2 into dev
commit
78df575406
|
@ -2,6 +2,7 @@ package com.ruoyi.common.utils;
|
|||
|
||||
import com.ruoyi.common.core.domain.entity.SysRole;
|
||||
import org.springframework.security.core.Authentication;
|
||||
import org.springframework.security.core.context.SecurityContext;
|
||||
import org.springframework.security.core.context.SecurityContextHolder;
|
||||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||||
import com.ruoyi.common.constant.HttpStatus;
|
||||
|
@ -72,7 +73,8 @@ public class SecurityUtils
|
|||
{
|
||||
try
|
||||
{
|
||||
return getLoginUser().getUsername();
|
||||
LoginUser loginUser=getLoginUser();
|
||||
return loginUser!=null?loginUser.getUsername():null;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -87,7 +89,11 @@ public class SecurityUtils
|
|||
{
|
||||
try
|
||||
{
|
||||
return (LoginUser) getAuthentication().getPrincipal();
|
||||
Authentication auth=getAuthentication();
|
||||
if(auth!=null) {
|
||||
return (LoginUser) auth.getPrincipal();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -100,7 +106,8 @@ public class SecurityUtils
|
|||
*/
|
||||
public static Authentication getAuthentication()
|
||||
{
|
||||
return SecurityContextHolder.getContext().getAuthentication();
|
||||
SecurityContext ctx=SecurityContextHolder.getContext();
|
||||
return ctx!=null? SecurityContextHolder.getContext().getAuthentication():null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,440 @@
|
|||
package com.ruoyi.quartz.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-报警信息对象 dev_pitmonit_southsmos_alarm
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public class DevPitmonitSouthsmosAlarm extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 配置ID */
|
||||
@Excel(name = "配置ID")
|
||||
private Long cfgId;
|
||||
|
||||
/** 服务端ID */
|
||||
@Excel(name = "服务端ID")
|
||||
private Long srvId;
|
||||
|
||||
/** 该条报警信息的一个描述 */
|
||||
@Excel(name = "该条报警信息的一个描述")
|
||||
private String alarmInfo;
|
||||
|
||||
/** 产生报警的来源,格式:点名-监测分项名 */
|
||||
@Excel(name = "产生报警的来源,格式:点名-监测分项名")
|
||||
private String alarmSource;
|
||||
|
||||
/** 次产生报警的时间(暂时没用上) */
|
||||
@Excel(name = "次产生报警的时间", readConverterExp = "次产生报警的时间(暂时没用上)")
|
||||
private Date gmtAlarm;
|
||||
|
||||
/** 报警时间,如果数据回落至正常范围或被处理,则报警结束 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd 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;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCfgId(Long cfgId)
|
||||
{
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public Long getCfgId()
|
||||
{
|
||||
return cfgId;
|
||||
}
|
||||
public void setSrvId(Long srvId)
|
||||
{
|
||||
this.srvId = srvId;
|
||||
}
|
||||
|
||||
public Long getSrvId()
|
||||
{
|
||||
return srvId;
|
||||
}
|
||||
public void setAlarmInfo(String alarmInfo)
|
||||
{
|
||||
this.alarmInfo = alarmInfo;
|
||||
}
|
||||
|
||||
public String getAlarmInfo()
|
||||
{
|
||||
return alarmInfo;
|
||||
}
|
||||
public void setAlarmSource(String alarmSource)
|
||||
{
|
||||
this.alarmSource = alarmSource;
|
||||
}
|
||||
|
||||
public String getAlarmSource()
|
||||
{
|
||||
return alarmSource;
|
||||
}
|
||||
public void setGmtAlarm(Date gmtAlarm)
|
||||
{
|
||||
this.gmtAlarm = gmtAlarm;
|
||||
}
|
||||
|
||||
public Date getGmtAlarm()
|
||||
{
|
||||
return gmtAlarm;
|
||||
}
|
||||
public void setGmtAlarmOver(Date gmtAlarmOver)
|
||||
{
|
||||
this.gmtAlarmOver = gmtAlarmOver;
|
||||
}
|
||||
|
||||
public Date getGmtAlarmOver()
|
||||
{
|
||||
return gmtAlarmOver;
|
||||
}
|
||||
public void setGmtAlarmStart(Date gmtAlarmStart)
|
||||
{
|
||||
this.gmtAlarmStart = gmtAlarmStart;
|
||||
}
|
||||
|
||||
public Date getGmtAlarmStart()
|
||||
{
|
||||
return gmtAlarmStart;
|
||||
}
|
||||
public void setGmtCreate(Date gmtCreate)
|
||||
{
|
||||
this.gmtCreate = gmtCreate;
|
||||
}
|
||||
|
||||
public Date getGmtCreate()
|
||||
{
|
||||
return gmtCreate;
|
||||
}
|
||||
public void setGmtModified(Date gmtModified)
|
||||
{
|
||||
this.gmtModified = gmtModified;
|
||||
}
|
||||
|
||||
public Date getGmtModified()
|
||||
{
|
||||
return gmtModified;
|
||||
}
|
||||
public void setLevel(Long level)
|
||||
{
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public Long getLevel()
|
||||
{
|
||||
return level;
|
||||
}
|
||||
public void setMeId(Long meId)
|
||||
{
|
||||
this.meId = meId;
|
||||
}
|
||||
|
||||
public Long getMeId()
|
||||
{
|
||||
return meId;
|
||||
}
|
||||
public void setMeName(String meName)
|
||||
{
|
||||
this.meName = meName;
|
||||
}
|
||||
|
||||
public String getMeName()
|
||||
{
|
||||
return meName;
|
||||
}
|
||||
public void setMonitorItemId(Long monitorItemId)
|
||||
{
|
||||
this.monitorItemId = monitorItemId;
|
||||
}
|
||||
|
||||
public Long getMonitorItemId()
|
||||
{
|
||||
return monitorItemId;
|
||||
}
|
||||
public void setNumbers(Long numbers)
|
||||
{
|
||||
this.numbers = numbers;
|
||||
}
|
||||
|
||||
public Long getNumbers()
|
||||
{
|
||||
return numbers;
|
||||
}
|
||||
public void setResult(String result)
|
||||
{
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public String getResult()
|
||||
{
|
||||
return result;
|
||||
}
|
||||
public void setResultUrl(String resultUrl)
|
||||
{
|
||||
this.resultUrl = resultUrl;
|
||||
}
|
||||
|
||||
public String getResultUrl()
|
||||
{
|
||||
return resultUrl;
|
||||
}
|
||||
public void setSpId(Long spId)
|
||||
{
|
||||
this.spId = spId;
|
||||
}
|
||||
|
||||
public Long getSpId()
|
||||
{
|
||||
return spId;
|
||||
}
|
||||
public void setSpName(String spName)
|
||||
{
|
||||
this.spName = spName;
|
||||
}
|
||||
|
||||
public String getSpName()
|
||||
{
|
||||
return spName;
|
||||
}
|
||||
public void setStaff(String staff)
|
||||
{
|
||||
this.staff = staff;
|
||||
}
|
||||
|
||||
public String getStaff()
|
||||
{
|
||||
return staff;
|
||||
}
|
||||
public void setStaffPhone(String staffPhone)
|
||||
{
|
||||
this.staffPhone = staffPhone;
|
||||
}
|
||||
|
||||
public String getStaffPhone()
|
||||
{
|
||||
return staffPhone;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setStructureId(Long structureId)
|
||||
{
|
||||
this.structureId = structureId;
|
||||
}
|
||||
|
||||
public Long getStructureId()
|
||||
{
|
||||
return structureId;
|
||||
}
|
||||
public void setStructureName(String structureName)
|
||||
{
|
||||
this.structureName = structureName;
|
||||
}
|
||||
|
||||
public String getStructureName()
|
||||
{
|
||||
return structureName;
|
||||
}
|
||||
public void setThreshold(String threshold)
|
||||
{
|
||||
this.threshold = threshold;
|
||||
}
|
||||
|
||||
public String getThreshold()
|
||||
{
|
||||
return threshold;
|
||||
}
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setVariety(String variety)
|
||||
{
|
||||
this.variety = variety;
|
||||
}
|
||||
|
||||
public String getVariety()
|
||||
{
|
||||
return variety;
|
||||
}
|
||||
public void setState(Long state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Long getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("cfgId", getCfgId())
|
||||
.append("srvId", getSrvId())
|
||||
.append("alarmInfo", getAlarmInfo())
|
||||
.append("alarmSource", getAlarmSource())
|
||||
.append("gmtAlarm", getGmtAlarm())
|
||||
.append("gmtAlarmOver", getGmtAlarmOver())
|
||||
.append("gmtAlarmStart", getGmtAlarmStart())
|
||||
.append("gmtCreate", getGmtCreate())
|
||||
.append("gmtModified", getGmtModified())
|
||||
.append("level", getLevel())
|
||||
.append("meId", getMeId())
|
||||
.append("meName", getMeName())
|
||||
.append("monitorItemId", getMonitorItemId())
|
||||
.append("numbers", getNumbers())
|
||||
.append("result", getResult())
|
||||
.append("resultUrl", getResultUrl())
|
||||
.append("spId", getSpId())
|
||||
.append("spName", getSpName())
|
||||
.append("staff", getStaff())
|
||||
.append("staffPhone", getStaffPhone())
|
||||
.append("status", getStatus())
|
||||
.append("structureId", getStructureId())
|
||||
.append("structureName", getStructureName())
|
||||
.append("threshold", getThreshold())
|
||||
.append("type", getType())
|
||||
.append("variety", getVariety())
|
||||
.append("state", getState())
|
||||
.append("remark", getRemark())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,288 @@
|
|||
package com.ruoyi.quartz.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-测点数据对象 dev_pitmonit_southsmos_data
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
public class DevPitmonitSouthsmosData extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
private Long id;
|
||||
|
||||
/** 配置ID */
|
||||
@Excel(name = "配置ID")
|
||||
private Long cfgId;
|
||||
|
||||
/** 数据类型:horizontal-水平位移(x,y),presureWallsideSoil-围护墙侧向土压力,waterLevel-地下水位 */
|
||||
@Excel(name = "数据类型:horizontal-水平位移(x,y),presureWallsideSoil-围护墙侧向土压力,waterLevel-地下水位")
|
||||
private String dataType;
|
||||
|
||||
/** 服务端dataId */
|
||||
@Excel(name = "服务端dataId")
|
||||
private Long dataId;
|
||||
|
||||
/** 测点Id */
|
||||
@Excel(name = "测点Id")
|
||||
private Long spId;
|
||||
|
||||
/** 测点名 */
|
||||
@Excel(name = "测点名")
|
||||
private String spName;
|
||||
|
||||
/** 收集时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd 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 = "")
|
||||
private Long isDel;
|
||||
public void convertToHorizontal(JSONObject o) {
|
||||
changeRate=o.getBigDecimal("changeRateX");
|
||||
changeRate2=o.getBigDecimal("changeRateY");
|
||||
displace=o.getBigDecimal("displaceX");
|
||||
displace2=o.getBigDecimal("displaceY");
|
||||
totalize=o.getBigDecimal("totalizeX");
|
||||
totalize2=o.getBigDecimal("totalizeY");
|
||||
variation=o.getBigDecimal("variationX");
|
||||
variation2=o.getBigDecimal("variationY");
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
||||
//围护墙侧向土压力
|
||||
public void convertToPresureWallsideSoil(JSONObject jsonObject) {
|
||||
}
|
||||
//地下水位
|
||||
public void convertToWaterLevel(JSONObject jsonObject) {
|
||||
}
|
||||
}
|
|
@ -0,0 +1,182 @@
|
|||
package com.ruoyi.quartz.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-监测项对象 dev_pitmonit_southsmos_element
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public class DevPitmonitSouthsmosElement extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 配置ID */
|
||||
@Excel(name = "配置ID")
|
||||
private Long cfgId;
|
||||
|
||||
/** 服务端ID */
|
||||
@Excel(name = "服务端ID")
|
||||
private Long srvId;
|
||||
|
||||
/** 服务端参数maxSp */
|
||||
@Excel(name = "服务端参数maxSp")
|
||||
private String maxSp;
|
||||
|
||||
/** 服务端参数monitorStatus */
|
||||
@Excel(name = "服务端参数monitorStatus")
|
||||
private String monitorStatus;
|
||||
|
||||
/** 服务端参数name */
|
||||
@Excel(name = "服务端参数name")
|
||||
private String name;
|
||||
|
||||
/** 服务端参数nameEn */
|
||||
@Excel(name = "服务端参数nameEn")
|
||||
private String nameEn;
|
||||
|
||||
/** 服务端参数type */
|
||||
@Excel(name = "服务端参数type")
|
||||
private String type;
|
||||
|
||||
|
||||
public List<DevPitmonitSouthsmosElementItem> getItems() {
|
||||
return items;
|
||||
}
|
||||
|
||||
public void setItems(List<DevPitmonitSouthsmosElementItem> items) {
|
||||
this.items = items;
|
||||
}
|
||||
|
||||
private List<DevPitmonitSouthsmosElementItem> items=new ArrayList<>();
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Long state;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCfgId(Long cfgId)
|
||||
{
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public Long getCfgId()
|
||||
{
|
||||
return cfgId;
|
||||
}
|
||||
public void setSrvId(Long srvId)
|
||||
{
|
||||
this.srvId = srvId;
|
||||
}
|
||||
|
||||
public Long getSrvId()
|
||||
{
|
||||
return srvId;
|
||||
}
|
||||
public void setMaxSp(String maxSp)
|
||||
{
|
||||
this.maxSp = maxSp;
|
||||
}
|
||||
|
||||
public String getMaxSp()
|
||||
{
|
||||
return maxSp;
|
||||
}
|
||||
public void setMonitorStatus(String monitorStatus)
|
||||
{
|
||||
this.monitorStatus = monitorStatus;
|
||||
}
|
||||
|
||||
public String getMonitorStatus()
|
||||
{
|
||||
return monitorStatus;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setNameEn(String nameEn)
|
||||
{
|
||||
this.nameEn = nameEn;
|
||||
}
|
||||
|
||||
public String getNameEn()
|
||||
{
|
||||
return nameEn;
|
||||
}
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setState(Long state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Long getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("cfgId", getCfgId())
|
||||
.append("srvId", getSrvId())
|
||||
.append("maxSp", getMaxSp())
|
||||
.append("monitorStatus", getMonitorStatus())
|
||||
.append("name", getName())
|
||||
.append("nameEn", getNameEn())
|
||||
.append("type", getType())
|
||||
.append("state", getState())
|
||||
.append("remark", getRemark())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,196 @@
|
|||
package com.ruoyi.quartz.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-监测项-明细对象 dev_pitmonit_southsmos_element_item
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public class DevPitmonitSouthsmosElementItem extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 配置ID */
|
||||
@Excel(name = "配置ID")
|
||||
private Long cfgId;
|
||||
|
||||
/** 服务端ID */
|
||||
@Excel(name = "服务端ID")
|
||||
private Long srvId;
|
||||
|
||||
/** dev_pitmonit_southsmos_element表srvId */
|
||||
@Excel(name = "dev_pitmonit_southsmos_element表srvId")
|
||||
private Long monitorElementId;
|
||||
|
||||
/** 服务端name */
|
||||
@Excel(name = "服务端name")
|
||||
private String name;
|
||||
|
||||
/** 服务端step */
|
||||
@Excel(name = "服务端step")
|
||||
private Long step;
|
||||
|
||||
/** 服务端unit */
|
||||
@Excel(name = "服务端unit")
|
||||
private String unit;
|
||||
|
||||
/** 服务端valueRange */
|
||||
@Excel(name = "服务端valueRange")
|
||||
private String valueRange;
|
||||
|
||||
/** 服务端gmtCreate */
|
||||
@Excel(name = "服务端gmtCreate")
|
||||
private String gmtCreate;
|
||||
|
||||
/** 服务端gmtModified */
|
||||
@Excel(name = "服务端gmtModified")
|
||||
private String gmtModified;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Long state;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCfgId(Long cfgId)
|
||||
{
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public Long getCfgId()
|
||||
{
|
||||
return cfgId;
|
||||
}
|
||||
public void setSrvId(Long srvId)
|
||||
{
|
||||
this.srvId = srvId;
|
||||
}
|
||||
|
||||
public Long getSrvId()
|
||||
{
|
||||
return srvId;
|
||||
}
|
||||
public void setMonitorElementId(Long monitorElementId)
|
||||
{
|
||||
this.monitorElementId = monitorElementId;
|
||||
}
|
||||
|
||||
public Long getMonitorElementId()
|
||||
{
|
||||
return monitorElementId;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setStep(Long step)
|
||||
{
|
||||
this.step = step;
|
||||
}
|
||||
|
||||
public Long getStep()
|
||||
{
|
||||
return step;
|
||||
}
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return unit;
|
||||
}
|
||||
public void setValueRange(String valueRange)
|
||||
{
|
||||
this.valueRange = valueRange;
|
||||
}
|
||||
|
||||
public String getValueRange()
|
||||
{
|
||||
return valueRange;
|
||||
}
|
||||
public void setGmtCreate(String gmtCreate)
|
||||
{
|
||||
this.gmtCreate = gmtCreate;
|
||||
}
|
||||
|
||||
public String getGmtCreate()
|
||||
{
|
||||
return gmtCreate;
|
||||
}
|
||||
public void setGmtModified(String gmtModified)
|
||||
{
|
||||
this.gmtModified = gmtModified;
|
||||
}
|
||||
|
||||
public String getGmtModified()
|
||||
{
|
||||
return gmtModified;
|
||||
}
|
||||
public void setState(Long state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Long getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("cfgId", getCfgId())
|
||||
.append("srvId", getSrvId())
|
||||
.append("monitorElementId", getMonitorElementId())
|
||||
.append("name", getName())
|
||||
.append("step", getStep())
|
||||
.append("unit", getUnit())
|
||||
.append("valueRange", getValueRange())
|
||||
.append("gmtCreate", getGmtCreate())
|
||||
.append("gmtModified", getGmtModified())
|
||||
.append("state", getState())
|
||||
.append("remark", getRemark())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,247 @@
|
|||
package com.ruoyi.quartz.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.alibaba.fastjson2.annotation.JSONField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.quartz.util.JsonTextToDate;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-测点对象 dev_pitmonit_southsmos_surveypoint
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public class DevPitmonitSouthsmosSurveypoint extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
private Long id;
|
||||
|
||||
/** 配置ID */
|
||||
@Excel(name = "配置ID")
|
||||
private Long cfgId;
|
||||
|
||||
/** 测点ID */
|
||||
@Excel(name = "测点ID")
|
||||
private Long spId;
|
||||
|
||||
/** 所属监测点组ID */
|
||||
@Excel(name = "所属监测点组ID")
|
||||
private Long groupId;
|
||||
|
||||
/** 所属监测点组名称 */
|
||||
@Excel(name = "所属监测点组名称")
|
||||
private String groupName;
|
||||
|
||||
/** 监测项Id */
|
||||
@Excel(name = "监测项Id")
|
||||
private Long meId;
|
||||
|
||||
/** 监测项名称 */
|
||||
@Excel(name = "监测项名称")
|
||||
private String meName;
|
||||
|
||||
/** 监测项英文标识名 */
|
||||
@Excel(name = "监测项英文标识名")
|
||||
private String meNameEn;
|
||||
|
||||
/** 改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JSONField(deserializeUsing = JsonTextToDate.class)
|
||||
@Excel(name = "改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyDate;
|
||||
|
||||
/** 测点名称 */
|
||||
@Excel(name = "测点名称")
|
||||
private String name;
|
||||
|
||||
/** 数据来源形式0:人工上传;1:设备 */
|
||||
@Excel(name = "数据来源形式0:人工上传;1:设备")
|
||||
private Long dataSource;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JSONField(deserializeUsing = JsonTextToDate.class)
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createDate;
|
||||
|
||||
/** 服务器status */
|
||||
@Excel(name = "服务器status")
|
||||
private String status;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Long state;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCfgId(Long cfgId)
|
||||
{
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public Long getCfgId()
|
||||
{
|
||||
return cfgId;
|
||||
}
|
||||
public void setSpId(Long spId)
|
||||
{
|
||||
this.spId = spId;
|
||||
}
|
||||
|
||||
public Long getSpId()
|
||||
{
|
||||
return spId;
|
||||
}
|
||||
public void setGroupId(Long groupId)
|
||||
{
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public Long getGroupId()
|
||||
{
|
||||
return groupId;
|
||||
}
|
||||
public void setGroupName(String groupName)
|
||||
{
|
||||
this.groupName = groupName;
|
||||
}
|
||||
|
||||
public String getGroupName()
|
||||
{
|
||||
return groupName;
|
||||
}
|
||||
public void setMeId(Long meId)
|
||||
{
|
||||
this.meId = meId;
|
||||
}
|
||||
|
||||
public Long getMeId()
|
||||
{
|
||||
return meId;
|
||||
}
|
||||
public void setMeName(String meName)
|
||||
{
|
||||
this.meName = meName;
|
||||
}
|
||||
|
||||
public String getMeName()
|
||||
{
|
||||
return meName;
|
||||
}
|
||||
public void setMeNameEn(String meNameEn)
|
||||
{
|
||||
this.meNameEn = meNameEn;
|
||||
}
|
||||
|
||||
public String getMeNameEn()
|
||||
{
|
||||
return meNameEn;
|
||||
}
|
||||
public void setModifyDate(Date modifyDate)
|
||||
{
|
||||
this.modifyDate = modifyDate;
|
||||
}
|
||||
|
||||
public Date getModifyDate()
|
||||
{
|
||||
return modifyDate;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setDataSource(Long dataSource)
|
||||
{
|
||||
this.dataSource = dataSource;
|
||||
}
|
||||
|
||||
public Long getDataSource()
|
||||
{
|
||||
return dataSource;
|
||||
}
|
||||
public void setCreateDate(Date createDate)
|
||||
{
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
public Date getCreateDate()
|
||||
{
|
||||
return createDate;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setState(Long state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Long getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("cfgId", getCfgId())
|
||||
.append("spId", getSpId())
|
||||
.append("groupId", getGroupId())
|
||||
.append("groupName", getGroupName())
|
||||
.append("meId", getMeId())
|
||||
.append("meName", getMeName())
|
||||
.append("meNameEn", getMeNameEn())
|
||||
.append("modifyDate", getModifyDate())
|
||||
.append("name", getName())
|
||||
.append("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,266 @@
|
|||
package com.ruoyi.quartz.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 报警阈值对象 dev_pitmonit_southsmos_threshold
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
public class DevPitmonitSouthsmosThreshold extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
private Long id;
|
||||
|
||||
/** 配置ID */
|
||||
@Excel(name = "配置ID")
|
||||
private Long cfgId;
|
||||
|
||||
/** 服务端ID */
|
||||
@Excel(name = "服务端ID")
|
||||
private Long srvId;
|
||||
|
||||
/** 报警信息 */
|
||||
@Excel(name = "报警信息")
|
||||
private String alarmInfo;
|
||||
|
||||
/** 报警名称 */
|
||||
@Excel(name = "报警名称")
|
||||
private String alarmName;
|
||||
|
||||
/** 时间段起始点 */
|
||||
@Excel(name = "时间段起始点")
|
||||
private Long intervalA;
|
||||
|
||||
/** 时间段终止点 */
|
||||
@Excel(name = "时间段终止点")
|
||||
private Long intervalB;
|
||||
|
||||
/** 报警值等级0:正常 1:超预警2:超报警3:超控制 */
|
||||
@Excel(name = "报警值等级0:正常 1:超预警2:超报警3:超控制")
|
||||
private Long level;
|
||||
|
||||
/** 监测项ID */
|
||||
@Excel(name = "监测项ID")
|
||||
private Long monitorElementId;
|
||||
|
||||
/** 监测分项Id */
|
||||
@Excel(name = "监测分项Id")
|
||||
private Long monitorItemId;
|
||||
|
||||
/** 监测分项名称 */
|
||||
@Excel(name = "监测分项名称")
|
||||
private String monitorItemName;
|
||||
|
||||
/** 报警值组Id */
|
||||
@Excel(name = "报警值组Id")
|
||||
private Long tgId;
|
||||
|
||||
/** 报警值 */
|
||||
@Excel(name = "报警值")
|
||||
private String threshold;
|
||||
|
||||
/** 类型 */
|
||||
@Excel(name = "类型")
|
||||
private String type;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Long state;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCfgId(Long cfgId)
|
||||
{
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public Long getCfgId()
|
||||
{
|
||||
return cfgId;
|
||||
}
|
||||
public void setSrvId(Long srvId)
|
||||
{
|
||||
this.srvId = srvId;
|
||||
}
|
||||
|
||||
public Long getSrvId()
|
||||
{
|
||||
return srvId;
|
||||
}
|
||||
public void setAlarmInfo(String alarmInfo)
|
||||
{
|
||||
this.alarmInfo = alarmInfo;
|
||||
}
|
||||
|
||||
public String getAlarmInfo()
|
||||
{
|
||||
return alarmInfo;
|
||||
}
|
||||
public void setAlarmName(String alarmName)
|
||||
{
|
||||
this.alarmName = alarmName;
|
||||
}
|
||||
|
||||
public String getAlarmName()
|
||||
{
|
||||
return alarmName;
|
||||
}
|
||||
public void setIntervalA(Long intervalA)
|
||||
{
|
||||
this.intervalA = intervalA;
|
||||
}
|
||||
|
||||
public Long getIntervalA()
|
||||
{
|
||||
return intervalA;
|
||||
}
|
||||
public void setIntervalB(Long intervalB)
|
||||
{
|
||||
this.intervalB = intervalB;
|
||||
}
|
||||
|
||||
public Long getIntervalB()
|
||||
{
|
||||
return intervalB;
|
||||
}
|
||||
public void setLevel(Long level)
|
||||
{
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public Long getLevel()
|
||||
{
|
||||
return level;
|
||||
}
|
||||
public void setMonitorElementId(Long monitorElementId)
|
||||
{
|
||||
this.monitorElementId = monitorElementId;
|
||||
}
|
||||
|
||||
public Long getMonitorElementId()
|
||||
{
|
||||
return monitorElementId;
|
||||
}
|
||||
public void setMonitorItemId(Long monitorItemId)
|
||||
{
|
||||
this.monitorItemId = monitorItemId;
|
||||
}
|
||||
|
||||
public Long getMonitorItemId()
|
||||
{
|
||||
return monitorItemId;
|
||||
}
|
||||
public void setMonitorItemName(String monitorItemName)
|
||||
{
|
||||
this.monitorItemName = monitorItemName;
|
||||
}
|
||||
|
||||
public String getMonitorItemName()
|
||||
{
|
||||
return monitorItemName;
|
||||
}
|
||||
public void setTgId(Long tgId)
|
||||
{
|
||||
this.tgId = tgId;
|
||||
}
|
||||
|
||||
public Long getTgId()
|
||||
{
|
||||
return tgId;
|
||||
}
|
||||
public void setThreshold(String threshold)
|
||||
{
|
||||
this.threshold = threshold;
|
||||
}
|
||||
|
||||
public String getThreshold()
|
||||
{
|
||||
return threshold;
|
||||
}
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return unit;
|
||||
}
|
||||
public void setState(Long state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Long getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("cfgId", getCfgId())
|
||||
.append("srvId", getSrvId())
|
||||
.append("alarmInfo", getAlarmInfo())
|
||||
.append("alarmName", getAlarmName())
|
||||
.append("intervalA", getIntervalA())
|
||||
.append("intervalB", getIntervalB())
|
||||
.append("level", getLevel())
|
||||
.append("monitorElementId", getMonitorElementId())
|
||||
.append("monitorItemId", getMonitorItemId())
|
||||
.append("monitorItemName", getMonitorItemName())
|
||||
.append("tgId", getTgId())
|
||||
.append("threshold", getThreshold())
|
||||
.append("type", getType())
|
||||
.append("unit", getUnit())
|
||||
.append("state", getState())
|
||||
.append("remark", getRemark())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,141 @@
|
|||
package com.ruoyi.quartz.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 项目基坑监测配置
|
||||
对象 sur_project_pit_monit_cfg
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public class SurProjectPitMonitCfg extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 项目ID */
|
||||
@Excel(name = "项目ID")
|
||||
private Long projectId;
|
||||
|
||||
/** 总包单位ID */
|
||||
@Excel(name = "总包单位ID")
|
||||
private Long subDeptId;
|
||||
|
||||
/** 厂商编号参考字典pitmonit_vendors */
|
||||
@Excel(name = "厂商编号参考字典pitmonit_vendors")
|
||||
private String vendorCode;
|
||||
|
||||
/** 厂商参数 */
|
||||
@Excel(name = "厂商参数")
|
||||
private String vendorParamter;
|
||||
|
||||
/** 1-启用,0-停用 */
|
||||
@Excel(name = "1-启用,0-停用")
|
||||
private Long enabled;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Long state;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setSubDeptId(Long subDeptId)
|
||||
{
|
||||
this.subDeptId = subDeptId;
|
||||
}
|
||||
|
||||
public Long getSubDeptId()
|
||||
{
|
||||
return subDeptId;
|
||||
}
|
||||
public void setVendorCode(String vendorCode)
|
||||
{
|
||||
this.vendorCode = vendorCode;
|
||||
}
|
||||
|
||||
public String getVendorCode()
|
||||
{
|
||||
return vendorCode;
|
||||
}
|
||||
public void setVendorParamter(String vendorParamter)
|
||||
{
|
||||
this.vendorParamter = vendorParamter;
|
||||
}
|
||||
|
||||
public String getVendorParamter()
|
||||
{
|
||||
return vendorParamter;
|
||||
}
|
||||
public void setEnabled(Long enabled)
|
||||
{
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public Long getEnabled()
|
||||
{
|
||||
return enabled;
|
||||
}
|
||||
public void setState(Long state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Long getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("subDeptId", getSubDeptId())
|
||||
.append("vendorCode", getVendorCode())
|
||||
.append("vendorParamter", getVendorParamter())
|
||||
.append("enabled", getEnabled())
|
||||
.append("state", getState())
|
||||
.append("remark", getRemark())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.quartz.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosAlarm;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-报警信息Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public interface DevPitmonitSouthsmosAlarmMapper
|
||||
{
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-报警信息主键
|
||||
* @return 基坑监测-南方测绘-报警信息
|
||||
*/
|
||||
public DevPitmonitSouthsmosAlarm selectDevPitmonitSouthsmosAlarmById(Long id);
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-报警信息列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosAlarm 基坑监测-南方测绘-报警信息
|
||||
* @return 基坑监测-南方测绘-报警信息集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosAlarm> selectDevPitmonitSouthsmosAlarmList(DevPitmonitSouthsmosAlarm devPitmonitSouthsmosAlarm);
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param devPitmonitSouthsmosAlarm 基坑监测-南方测绘-报警信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosAlarm(DevPitmonitSouthsmosAlarm devPitmonitSouthsmosAlarm);
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param devPitmonitSouthsmosAlarm 基坑监测-南方测绘-报警信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosAlarm(DevPitmonitSouthsmosAlarm devPitmonitSouthsmosAlarm);
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-报警信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosAlarmById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosAlarmByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.quartz.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosData;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-测点数据Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
public interface DevPitmonitSouthsmosDataMapper
|
||||
{
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点数据主键
|
||||
* @return 基坑监测-南方测绘-测点数据
|
||||
*/
|
||||
public DevPitmonitSouthsmosData selectDevPitmonitSouthsmosDataById(Long id);
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点数据列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosData 基坑监测-南方测绘-测点数据
|
||||
* @return 基坑监测-南方测绘-测点数据集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosData> selectDevPitmonitSouthsmosDataList(DevPitmonitSouthsmosData devPitmonitSouthsmosData);
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param devPitmonitSouthsmosData 基坑监测-南方测绘-测点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosData(DevPitmonitSouthsmosData devPitmonitSouthsmosData);
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param devPitmonitSouthsmosData 基坑监测-南方测绘-测点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosData(DevPitmonitSouthsmosData devPitmonitSouthsmosData);
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosDataById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosDataByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.quartz.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosElementItem;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-监测项-明细Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public interface DevPitmonitSouthsmosElementItemMapper
|
||||
{
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项-明细主键
|
||||
* @return 基坑监测-南方测绘-监测项-明细
|
||||
*/
|
||||
public DevPitmonitSouthsmosElementItem selectDevPitmonitSouthsmosElementItemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项-明细列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosElementItem 基坑监测-南方测绘-监测项-明细
|
||||
* @return 基坑监测-南方测绘-监测项-明细集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosElementItem> selectDevPitmonitSouthsmosElementItemList(DevPitmonitSouthsmosElementItem devPitmonitSouthsmosElementItem);
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param devPitmonitSouthsmosElementItem 基坑监测-南方测绘-监测项-明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosElementItem(DevPitmonitSouthsmosElementItem devPitmonitSouthsmosElementItem);
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param devPitmonitSouthsmosElementItem 基坑监测-南方测绘-监测项-明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosElementItem(DevPitmonitSouthsmosElementItem devPitmonitSouthsmosElementItem);
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项-明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosElementItemById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosElementItemByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.quartz.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosElement;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-监测项Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public interface DevPitmonitSouthsmosElementMapper
|
||||
{
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项主键
|
||||
* @return 基坑监测-南方测绘-监测项
|
||||
*/
|
||||
public DevPitmonitSouthsmosElement selectDevPitmonitSouthsmosElementById(Long id);
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosElement 基坑监测-南方测绘-监测项
|
||||
* @return 基坑监测-南方测绘-监测项集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosElement> selectDevPitmonitSouthsmosElementList(DevPitmonitSouthsmosElement devPitmonitSouthsmosElement);
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param devPitmonitSouthsmosElement 基坑监测-南方测绘-监测项
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosElement(DevPitmonitSouthsmosElement devPitmonitSouthsmosElement);
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param devPitmonitSouthsmosElement 基坑监测-南方测绘-监测项
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosElement(DevPitmonitSouthsmosElement devPitmonitSouthsmosElement);
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosElementById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosElementByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.quartz.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosSurveypoint;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-测点Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public interface DevPitmonitSouthsmosSurveypointMapper
|
||||
{
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点主键
|
||||
* @return 基坑监测-南方测绘-测点
|
||||
*/
|
||||
public DevPitmonitSouthsmosSurveypoint selectDevPitmonitSouthsmosSurveypointById(Long id);
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosSurveypoint 基坑监测-南方测绘-测点
|
||||
* @return 基坑监测-南方测绘-测点集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosSurveypoint> selectDevPitmonitSouthsmosSurveypointList(DevPitmonitSouthsmosSurveypoint devPitmonitSouthsmosSurveypoint);
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param devPitmonitSouthsmosSurveypoint 基坑监测-南方测绘-测点
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosSurveypoint(DevPitmonitSouthsmosSurveypoint devPitmonitSouthsmosSurveypoint);
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param devPitmonitSouthsmosSurveypoint 基坑监测-南方测绘-测点
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosSurveypoint(DevPitmonitSouthsmosSurveypoint devPitmonitSouthsmosSurveypoint);
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosSurveypointById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosSurveypointByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.quartz.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosThreshold;
|
||||
|
||||
/**
|
||||
* 报警阈值Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
public interface DevPitmonitSouthsmosThresholdMapper
|
||||
{
|
||||
/**
|
||||
* 查询报警阈值
|
||||
*
|
||||
* @param id 报警阈值主键
|
||||
* @return 报警阈值
|
||||
*/
|
||||
public DevPitmonitSouthsmosThreshold selectDevPitmonitSouthsmosThresholdById(Long id);
|
||||
|
||||
/**
|
||||
* 查询报警阈值列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosThreshold 报警阈值
|
||||
* @return 报警阈值集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosThreshold> selectDevPitmonitSouthsmosThresholdList(DevPitmonitSouthsmosThreshold devPitmonitSouthsmosThreshold);
|
||||
|
||||
/**
|
||||
* 新增报警阈值
|
||||
*
|
||||
* @param devPitmonitSouthsmosThreshold 报警阈值
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosThreshold(DevPitmonitSouthsmosThreshold devPitmonitSouthsmosThreshold);
|
||||
|
||||
/**
|
||||
* 修改报警阈值
|
||||
*
|
||||
* @param devPitmonitSouthsmosThreshold 报警阈值
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosThreshold(DevPitmonitSouthsmosThreshold devPitmonitSouthsmosThreshold);
|
||||
|
||||
/**
|
||||
* 删除报警阈值
|
||||
*
|
||||
* @param id 报警阈值主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosThresholdById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除报警阈值
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosThresholdByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
package com.ruoyi.quartz.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
|
||||
/**
|
||||
* 项目基坑监测配置
|
||||
Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public interface SurProjectPitMonitCfgMapper
|
||||
{
|
||||
/**
|
||||
* 查询项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param id 项目基坑监测配置
|
||||
主键
|
||||
* @return 项目基坑监测配置
|
||||
|
||||
*/
|
||||
public SurProjectPitMonitCfg selectSurProjectPitMonitCfgById(Long id);
|
||||
|
||||
/**
|
||||
* 查询项目基坑监测配置
|
||||
列表
|
||||
*
|
||||
* @param surProjectPitMonitCfg 项目基坑监测配置
|
||||
|
||||
* @return 项目基坑监测配置
|
||||
集合
|
||||
*/
|
||||
public List<SurProjectPitMonitCfg> selectSurProjectPitMonitCfgList(SurProjectPitMonitCfg surProjectPitMonitCfg);
|
||||
|
||||
/**
|
||||
* 新增项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param surProjectPitMonitCfg 项目基坑监测配置
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSurProjectPitMonitCfg(SurProjectPitMonitCfg surProjectPitMonitCfg);
|
||||
|
||||
/**
|
||||
* 修改项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param surProjectPitMonitCfg 项目基坑监测配置
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSurProjectPitMonitCfg(SurProjectPitMonitCfg surProjectPitMonitCfg);
|
||||
|
||||
/**
|
||||
* 删除项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param id 项目基坑监测配置
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSurProjectPitMonitCfgById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSurProjectPitMonitCfgByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.ruoyi.quartz.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosAlarm;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-报警信息Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public interface IDevPitmonitSouthsmosAlarmService
|
||||
{
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-报警信息主键
|
||||
* @return 基坑监测-南方测绘-报警信息
|
||||
*/
|
||||
public DevPitmonitSouthsmosAlarm selectDevPitmonitSouthsmosAlarmById(Long id);
|
||||
public DevPitmonitSouthsmosAlarm selectDevPitmonitSouthsmosAlarmBySrvId(Long id);
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-报警信息列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosAlarm 基坑监测-南方测绘-报警信息
|
||||
* @return 基坑监测-南方测绘-报警信息集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosAlarm> selectDevPitmonitSouthsmosAlarmList(DevPitmonitSouthsmosAlarm devPitmonitSouthsmosAlarm);
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param devPitmonitSouthsmosAlarm 基坑监测-南方测绘-报警信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosAlarm(DevPitmonitSouthsmosAlarm devPitmonitSouthsmosAlarm);
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param devPitmonitSouthsmosAlarm 基坑监测-南方测绘-报警信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosAlarm(DevPitmonitSouthsmosAlarm devPitmonitSouthsmosAlarm);
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param ids 需要删除的基坑监测-南方测绘-报警信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosAlarmByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-报警信息信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-报警信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosAlarmById(Long id);
|
||||
|
||||
public void addList(List<DevPitmonitSouthsmosAlarm> alarmList, SurProjectPitMonitCfg cfg);
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.ruoyi.quartz.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosData;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-测点数据Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
public interface IDevPitmonitSouthsmosDataService
|
||||
{
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点数据主键
|
||||
* @return 基坑监测-南方测绘-测点数据
|
||||
*/
|
||||
public DevPitmonitSouthsmosData selectDevPitmonitSouthsmosDataById(Long id);
|
||||
public DevPitmonitSouthsmosData selectDevPitmonitSouthsmosDataByDataId(Long id);
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点数据列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosData 基坑监测-南方测绘-测点数据
|
||||
* @return 基坑监测-南方测绘-测点数据集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosData> selectDevPitmonitSouthsmosDataList(DevPitmonitSouthsmosData devPitmonitSouthsmosData);
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param devPitmonitSouthsmosData 基坑监测-南方测绘-测点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosData(DevPitmonitSouthsmosData devPitmonitSouthsmosData);
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param devPitmonitSouthsmosData 基坑监测-南方测绘-测点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosData(DevPitmonitSouthsmosData devPitmonitSouthsmosData);
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param ids 需要删除的基坑监测-南方测绘-测点数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosDataByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-测点数据信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosDataById(Long id);
|
||||
|
||||
public void addList(List<DevPitmonitSouthsmosData> dataList, SurProjectPitMonitCfg cfg);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.quartz.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosElementItem;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-监测项-明细Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public interface IDevPitmonitSouthsmosElementItemService
|
||||
{
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项-明细主键
|
||||
* @return 基坑监测-南方测绘-监测项-明细
|
||||
*/
|
||||
public DevPitmonitSouthsmosElementItem selectDevPitmonitSouthsmosElementItemById(Long id);
|
||||
public DevPitmonitSouthsmosElementItem selectDevPitmonitSouthsmosElementItemBySrvId(Long id);
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项-明细列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosElementItem 基坑监测-南方测绘-监测项-明细
|
||||
* @return 基坑监测-南方测绘-监测项-明细集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosElementItem> selectDevPitmonitSouthsmosElementItemList(DevPitmonitSouthsmosElementItem devPitmonitSouthsmosElementItem);
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param devPitmonitSouthsmosElementItem 基坑监测-南方测绘-监测项-明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosElementItem(DevPitmonitSouthsmosElementItem devPitmonitSouthsmosElementItem);
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param devPitmonitSouthsmosElementItem 基坑监测-南方测绘-监测项-明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosElementItem(DevPitmonitSouthsmosElementItem devPitmonitSouthsmosElementItem);
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param ids 需要删除的基坑监测-南方测绘-监测项-明细主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosElementItemByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-监测项-明细信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项-明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosElementItemById(Long id);
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.ruoyi.quartz.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosElement;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-监测项Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public interface IDevPitmonitSouthsmosElementService
|
||||
{
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项主键
|
||||
* @return 基坑监测-南方测绘-监测项
|
||||
*/
|
||||
public DevPitmonitSouthsmosElement selectDevPitmonitSouthsmosElementById(Long id);
|
||||
public DevPitmonitSouthsmosElement selectDevPitmonitSouthsmosElementBySrvId(Long id);
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosElement 基坑监测-南方测绘-监测项
|
||||
* @return 基坑监测-南方测绘-监测项集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosElement> selectDevPitmonitSouthsmosElementList(DevPitmonitSouthsmosElement devPitmonitSouthsmosElement);
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param devPitmonitSouthsmosElement 基坑监测-南方测绘-监测项
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosElement(DevPitmonitSouthsmosElement devPitmonitSouthsmosElement);
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param devPitmonitSouthsmosElement 基坑监测-南方测绘-监测项
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosElement(DevPitmonitSouthsmosElement devPitmonitSouthsmosElement);
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param ids 需要删除的基坑监测-南方测绘-监测项主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosElementByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-监测项信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosElementById(Long id);
|
||||
|
||||
public void addList(List<DevPitmonitSouthsmosElement> elList, SurProjectPitMonitCfg cfg);
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.ruoyi.quartz.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosSurveypoint;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
|
||||
/**
|
||||
* 基坑监测-南方测绘-测点Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public interface IDevPitmonitSouthsmosSurveypointService
|
||||
{
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点主键
|
||||
* @return 基坑监测-南方测绘-测点
|
||||
*/
|
||||
public DevPitmonitSouthsmosSurveypoint selectDevPitmonitSouthsmosSurveypointById(Long id);
|
||||
public DevPitmonitSouthsmosSurveypoint selectDevPitmonitSouthsmosSurveypointBySpId(Long id);
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosSurveypoint 基坑监测-南方测绘-测点
|
||||
* @return 基坑监测-南方测绘-测点集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosSurveypoint> selectDevPitmonitSouthsmosSurveypointList(DevPitmonitSouthsmosSurveypoint devPitmonitSouthsmosSurveypoint);
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param devPitmonitSouthsmosSurveypoint 基坑监测-南方测绘-测点
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosSurveypoint(DevPitmonitSouthsmosSurveypoint devPitmonitSouthsmosSurveypoint);
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param devPitmonitSouthsmosSurveypoint 基坑监测-南方测绘-测点
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosSurveypoint(DevPitmonitSouthsmosSurveypoint devPitmonitSouthsmosSurveypoint);
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param ids 需要删除的基坑监测-南方测绘-测点主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosSurveypointByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-测点信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosSurveypointById(Long id);
|
||||
|
||||
public void addList(List<DevPitmonitSouthsmosSurveypoint> ptList, SurProjectPitMonitCfg cfg);
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.ruoyi.quartz.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosThreshold;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
|
||||
/**
|
||||
* 报警阈值Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
public interface IDevPitmonitSouthsmosThresholdService
|
||||
{
|
||||
/**
|
||||
* 查询报警阈值
|
||||
*
|
||||
* @param id 报警阈值主键
|
||||
* @return 报警阈值
|
||||
*/
|
||||
public DevPitmonitSouthsmosThreshold selectDevPitmonitSouthsmosThresholdById(Long id);
|
||||
public DevPitmonitSouthsmosThreshold selectDevPitmonitSouthsmosThresholdBySrvId(Long id);
|
||||
/**
|
||||
* 查询报警阈值列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosThreshold 报警阈值
|
||||
* @return 报警阈值集合
|
||||
*/
|
||||
public List<DevPitmonitSouthsmosThreshold> selectDevPitmonitSouthsmosThresholdList(DevPitmonitSouthsmosThreshold devPitmonitSouthsmosThreshold);
|
||||
|
||||
/**
|
||||
* 新增报警阈值
|
||||
*
|
||||
* @param devPitmonitSouthsmosThreshold 报警阈值
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevPitmonitSouthsmosThreshold(DevPitmonitSouthsmosThreshold devPitmonitSouthsmosThreshold);
|
||||
|
||||
/**
|
||||
* 修改报警阈值
|
||||
*
|
||||
* @param devPitmonitSouthsmosThreshold 报警阈值
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevPitmonitSouthsmosThreshold(DevPitmonitSouthsmosThreshold devPitmonitSouthsmosThreshold);
|
||||
|
||||
/**
|
||||
* 批量删除报警阈值
|
||||
*
|
||||
* @param ids 需要删除的报警阈值主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosThresholdByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除报警阈值信息
|
||||
*
|
||||
* @param id 报警阈值主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevPitmonitSouthsmosThresholdById(Long id);
|
||||
|
||||
public void addList(List<DevPitmonitSouthsmosThreshold> thList, SurProjectPitMonitCfg cfg);
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
package com.ruoyi.quartz.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
|
||||
/**
|
||||
* 项目基坑监测配置
|
||||
Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
public interface ISurProjectPitMonitCfgService
|
||||
{
|
||||
/**
|
||||
* 查询项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param id 项目基坑监测配置
|
||||
主键
|
||||
* @return 项目基坑监测配置
|
||||
|
||||
*/
|
||||
public SurProjectPitMonitCfg selectSurProjectPitMonitCfgById(Long id);
|
||||
|
||||
/**
|
||||
* 查询项目基坑监测配置
|
||||
列表
|
||||
*
|
||||
* @param surProjectPitMonitCfg 项目基坑监测配置
|
||||
|
||||
* @return 项目基坑监测配置
|
||||
集合
|
||||
*/
|
||||
public List<SurProjectPitMonitCfg> selectSurProjectPitMonitCfgList(SurProjectPitMonitCfg surProjectPitMonitCfg);
|
||||
|
||||
/**
|
||||
* 新增项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param surProjectPitMonitCfg 项目基坑监测配置
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSurProjectPitMonitCfg(SurProjectPitMonitCfg surProjectPitMonitCfg);
|
||||
|
||||
/**
|
||||
* 修改项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param surProjectPitMonitCfg 项目基坑监测配置
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSurProjectPitMonitCfg(SurProjectPitMonitCfg surProjectPitMonitCfg);
|
||||
|
||||
/**
|
||||
* 批量删除项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param ids 需要删除的项目基坑监测配置
|
||||
主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSurProjectPitMonitCfgByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除项目基坑监测配置
|
||||
信息
|
||||
*
|
||||
* @param id 项目基坑监测配置
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSurProjectPitMonitCfgById(Long id);
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.quartz.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosData;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosAlarmMapper;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosAlarm;
|
||||
import com.ruoyi.quartz.service.IDevPitmonitSouthsmosAlarmService;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
/**
|
||||
* 基坑监测-南方测绘-报警信息Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
@Service
|
||||
public class DevPitmonitSouthsmosAlarmServiceImpl implements IDevPitmonitSouthsmosAlarmService
|
||||
{
|
||||
@Autowired
|
||||
private DevPitmonitSouthsmosAlarmMapper devPitmonitSouthsmosAlarmMapper;
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-报警信息主键
|
||||
* @return 基坑监测-南方测绘-报警信息
|
||||
*/
|
||||
@Override
|
||||
public DevPitmonitSouthsmosAlarm selectDevPitmonitSouthsmosAlarmById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosAlarmMapper.selectDevPitmonitSouthsmosAlarmById(id);
|
||||
}
|
||||
@Override
|
||||
public DevPitmonitSouthsmosAlarm selectDevPitmonitSouthsmosAlarmBySrvId(Long id)
|
||||
{
|
||||
DevPitmonitSouthsmosAlarm where=new DevPitmonitSouthsmosAlarm();
|
||||
where.setSrvId(id);
|
||||
List<DevPitmonitSouthsmosAlarm> list=selectDevPitmonitSouthsmosAlarmList(where);
|
||||
return list.size()==1?list.get(0):null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-报警信息列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosAlarm 基坑监测-南方测绘-报警信息
|
||||
* @return 基坑监测-南方测绘-报警信息
|
||||
*/
|
||||
@Override
|
||||
public List<DevPitmonitSouthsmosAlarm> selectDevPitmonitSouthsmosAlarmList(DevPitmonitSouthsmosAlarm devPitmonitSouthsmosAlarm)
|
||||
{
|
||||
return devPitmonitSouthsmosAlarmMapper.selectDevPitmonitSouthsmosAlarmList(devPitmonitSouthsmosAlarm);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param devPitmonitSouthsmosAlarm 基坑监测-南方测绘-报警信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDevPitmonitSouthsmosAlarm(DevPitmonitSouthsmosAlarm devPitmonitSouthsmosAlarm)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosAlarm.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosAlarm.setCreateTime(DateUtils.getNowDate());
|
||||
devPitmonitSouthsmosAlarm.setIsDel(0l);
|
||||
return devPitmonitSouthsmosAlarmMapper.insertDevPitmonitSouthsmosAlarm(devPitmonitSouthsmosAlarm);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param devPitmonitSouthsmosAlarm 基坑监测-南方测绘-报警信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDevPitmonitSouthsmosAlarm(DevPitmonitSouthsmosAlarm devPitmonitSouthsmosAlarm)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosAlarm.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosAlarm.setUpdateTime(DateUtils.getNowDate());
|
||||
return devPitmonitSouthsmosAlarmMapper.updateDevPitmonitSouthsmosAlarm(devPitmonitSouthsmosAlarm);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-报警信息
|
||||
*
|
||||
* @param ids 需要删除的基坑监测-南方测绘-报警信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosAlarmByIds(Long[] ids)
|
||||
{
|
||||
return devPitmonitSouthsmosAlarmMapper.deleteDevPitmonitSouthsmosAlarmByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-报警信息信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-报警信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosAlarmById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosAlarmMapper.deleteDevPitmonitSouthsmosAlarmById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void addList(List<DevPitmonitSouthsmosAlarm> alarmList, SurProjectPitMonitCfg cfg) {
|
||||
alarmList.forEach(it->{
|
||||
it.setCfgId(cfg.getId());
|
||||
DevPitmonitSouthsmosAlarm old=selectDevPitmonitSouthsmosAlarmBySrvId(it.getSrvId());
|
||||
if(old==null){
|
||||
insertDevPitmonitSouthsmosAlarm(it);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,123 @@
|
|||
package com.ruoyi.quartz.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosDataMapper;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosData;
|
||||
import com.ruoyi.quartz.service.IDevPitmonitSouthsmosDataService;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
/**
|
||||
* 基坑监测-南方测绘-测点数据Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
@Service
|
||||
public class DevPitmonitSouthsmosDataServiceImpl implements IDevPitmonitSouthsmosDataService
|
||||
{
|
||||
@Autowired
|
||||
private DevPitmonitSouthsmosDataMapper devPitmonitSouthsmosDataMapper;
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点数据主键
|
||||
* @return 基坑监测-南方测绘-测点数据
|
||||
*/
|
||||
@Override
|
||||
public DevPitmonitSouthsmosData selectDevPitmonitSouthsmosDataById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosDataMapper.selectDevPitmonitSouthsmosDataById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DevPitmonitSouthsmosData selectDevPitmonitSouthsmosDataByDataId(Long id) {
|
||||
DevPitmonitSouthsmosData where=new DevPitmonitSouthsmosData();
|
||||
where.setDataId(id);
|
||||
List<DevPitmonitSouthsmosData> list=selectDevPitmonitSouthsmosDataList(where);
|
||||
return list.size()==1?list.get(0):null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点数据列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosData 基坑监测-南方测绘-测点数据
|
||||
* @return 基坑监测-南方测绘-测点数据
|
||||
*/
|
||||
@Override
|
||||
public List<DevPitmonitSouthsmosData> selectDevPitmonitSouthsmosDataList(DevPitmonitSouthsmosData devPitmonitSouthsmosData)
|
||||
{
|
||||
return devPitmonitSouthsmosDataMapper.selectDevPitmonitSouthsmosDataList(devPitmonitSouthsmosData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param devPitmonitSouthsmosData 基坑监测-南方测绘-测点数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDevPitmonitSouthsmosData(DevPitmonitSouthsmosData devPitmonitSouthsmosData)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosData.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosData.setCreateTime(DateUtils.getNowDate());
|
||||
devPitmonitSouthsmosData.setIsDel(0l);
|
||||
return devPitmonitSouthsmosDataMapper.insertDevPitmonitSouthsmosData(devPitmonitSouthsmosData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param devPitmonitSouthsmosData 基坑监测-南方测绘-测点数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDevPitmonitSouthsmosData(DevPitmonitSouthsmosData devPitmonitSouthsmosData)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosData.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosData.setUpdateTime(DateUtils.getNowDate());
|
||||
return devPitmonitSouthsmosDataMapper.updateDevPitmonitSouthsmosData(devPitmonitSouthsmosData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-测点数据
|
||||
*
|
||||
* @param ids 需要删除的基坑监测-南方测绘-测点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosDataByIds(Long[] ids)
|
||||
{
|
||||
return devPitmonitSouthsmosDataMapper.deleteDevPitmonitSouthsmosDataByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-测点数据信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosDataById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosDataMapper.deleteDevPitmonitSouthsmosDataById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addList(List<DevPitmonitSouthsmosData> dataList, SurProjectPitMonitCfg cfg) {
|
||||
dataList.forEach(it->{
|
||||
it.setCfgId(cfg.getId());
|
||||
DevPitmonitSouthsmosData old=selectDevPitmonitSouthsmosDataByDataId(it.getDataId());
|
||||
if(old==null){
|
||||
insertDevPitmonitSouthsmosData(it);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
package com.ruoyi.quartz.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosElementItemMapper;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosElementItem;
|
||||
import com.ruoyi.quartz.service.IDevPitmonitSouthsmosElementItemService;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
/**
|
||||
* 基坑监测-南方测绘-监测项-明细Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
@Service
|
||||
public class DevPitmonitSouthsmosElementItemServiceImpl implements IDevPitmonitSouthsmosElementItemService
|
||||
{
|
||||
@Autowired
|
||||
private DevPitmonitSouthsmosElementItemMapper devPitmonitSouthsmosElementItemMapper;
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项-明细主键
|
||||
* @return 基坑监测-南方测绘-监测项-明细
|
||||
*/
|
||||
@Override
|
||||
public DevPitmonitSouthsmosElementItem selectDevPitmonitSouthsmosElementItemById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosElementItemMapper.selectDevPitmonitSouthsmosElementItemById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DevPitmonitSouthsmosElementItem selectDevPitmonitSouthsmosElementItemBySrvId(Long id) {
|
||||
DevPitmonitSouthsmosElementItem where=new DevPitmonitSouthsmosElementItem();
|
||||
where.setSrvId(id);
|
||||
List<DevPitmonitSouthsmosElementItem> list=selectDevPitmonitSouthsmosElementItemList(where);
|
||||
return list.size()==1?list.get(0):null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项-明细列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosElementItem 基坑监测-南方测绘-监测项-明细
|
||||
* @return 基坑监测-南方测绘-监测项-明细
|
||||
*/
|
||||
@Override
|
||||
public List<DevPitmonitSouthsmosElementItem> selectDevPitmonitSouthsmosElementItemList(DevPitmonitSouthsmosElementItem devPitmonitSouthsmosElementItem)
|
||||
{
|
||||
return devPitmonitSouthsmosElementItemMapper.selectDevPitmonitSouthsmosElementItemList(devPitmonitSouthsmosElementItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param devPitmonitSouthsmosElementItem 基坑监测-南方测绘-监测项-明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDevPitmonitSouthsmosElementItem(DevPitmonitSouthsmosElementItem devPitmonitSouthsmosElementItem)
|
||||
{
|
||||
if(selectDevPitmonitSouthsmosElementItemBySrvId(devPitmonitSouthsmosElementItem.getSrvId())!=null){
|
||||
return 0;
|
||||
}
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosElementItem.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosElementItem.setCreateTime(DateUtils.getNowDate());
|
||||
devPitmonitSouthsmosElementItem.setIsDel(0l);
|
||||
return devPitmonitSouthsmosElementItemMapper.insertDevPitmonitSouthsmosElementItem(devPitmonitSouthsmosElementItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param devPitmonitSouthsmosElementItem 基坑监测-南方测绘-监测项-明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDevPitmonitSouthsmosElementItem(DevPitmonitSouthsmosElementItem devPitmonitSouthsmosElementItem)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosElementItem.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosElementItem.setUpdateTime(DateUtils.getNowDate());
|
||||
return devPitmonitSouthsmosElementItemMapper.updateDevPitmonitSouthsmosElementItem(devPitmonitSouthsmosElementItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-监测项-明细
|
||||
*
|
||||
* @param ids 需要删除的基坑监测-南方测绘-监测项-明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosElementItemByIds(Long[] ids)
|
||||
{
|
||||
return devPitmonitSouthsmosElementItemMapper.deleteDevPitmonitSouthsmosElementItemByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-监测项-明细信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项-明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosElementItemById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosElementItemMapper.deleteDevPitmonitSouthsmosElementItemById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,130 @@
|
|||
package com.ruoyi.quartz.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosElementItemMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosElementMapper;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosElement;
|
||||
import com.ruoyi.quartz.service.IDevPitmonitSouthsmosElementService;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
/**
|
||||
* 基坑监测-南方测绘-监测项Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
@Service
|
||||
public class DevPitmonitSouthsmosElementServiceImpl implements IDevPitmonitSouthsmosElementService
|
||||
{
|
||||
@Autowired
|
||||
private DevPitmonitSouthsmosElementMapper devPitmonitSouthsmosElementMapper;
|
||||
@Autowired
|
||||
private DevPitmonitSouthsmosElementItemMapper elementItemMapper;
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项主键
|
||||
* @return 基坑监测-南方测绘-监测项
|
||||
*/
|
||||
@Override
|
||||
public DevPitmonitSouthsmosElement selectDevPitmonitSouthsmosElementById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosElementMapper.selectDevPitmonitSouthsmosElementById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DevPitmonitSouthsmosElement selectDevPitmonitSouthsmosElementBySrvId(Long id) {
|
||||
DevPitmonitSouthsmosElement where=new DevPitmonitSouthsmosElement();
|
||||
where.setSrvId(id);
|
||||
List<DevPitmonitSouthsmosElement> list=selectDevPitmonitSouthsmosElementList(where);
|
||||
return list.size()==1?list.get(0): null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-监测项列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosElement 基坑监测-南方测绘-监测项
|
||||
* @return 基坑监测-南方测绘-监测项
|
||||
*/
|
||||
@Override
|
||||
public List<DevPitmonitSouthsmosElement> selectDevPitmonitSouthsmosElementList(DevPitmonitSouthsmosElement devPitmonitSouthsmosElement)
|
||||
{
|
||||
return devPitmonitSouthsmosElementMapper.selectDevPitmonitSouthsmosElementList(devPitmonitSouthsmosElement);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param devPitmonitSouthsmosElement 基坑监测-南方测绘-监测项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDevPitmonitSouthsmosElement(DevPitmonitSouthsmosElement devPitmonitSouthsmosElement)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosElement.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosElement.setCreateTime(DateUtils.getNowDate());
|
||||
devPitmonitSouthsmosElement.setIsDel(0l);
|
||||
return devPitmonitSouthsmosElementMapper.insertDevPitmonitSouthsmosElement(devPitmonitSouthsmosElement);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param devPitmonitSouthsmosElement 基坑监测-南方测绘-监测项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDevPitmonitSouthsmosElement(DevPitmonitSouthsmosElement devPitmonitSouthsmosElement)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosElement.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosElement.setUpdateTime(DateUtils.getNowDate());
|
||||
return devPitmonitSouthsmosElementMapper.updateDevPitmonitSouthsmosElement(devPitmonitSouthsmosElement);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-监测项
|
||||
*
|
||||
* @param ids 需要删除的基坑监测-南方测绘-监测项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosElementByIds(Long[] ids)
|
||||
{
|
||||
return devPitmonitSouthsmosElementMapper.deleteDevPitmonitSouthsmosElementByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-监测项信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-监测项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosElementById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosElementMapper.deleteDevPitmonitSouthsmosElementById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addList(List<DevPitmonitSouthsmosElement> elList, SurProjectPitMonitCfg cfg) {
|
||||
elList.forEach(el->{
|
||||
el.setCfgId(cfg.getId());
|
||||
DevPitmonitSouthsmosElement old=selectDevPitmonitSouthsmosElementBySrvId(el.getSrvId());
|
||||
if(old==null){
|
||||
insertDevPitmonitSouthsmosElement(el);
|
||||
}
|
||||
if(el.getItems()!=null){
|
||||
el.getItems().forEach(item->{
|
||||
elementItemMapper.insertDevPitmonitSouthsmosElementItem(item);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,123 @@
|
|||
package com.ruoyi.quartz.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosSurveypointMapper;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosSurveypoint;
|
||||
import com.ruoyi.quartz.service.IDevPitmonitSouthsmosSurveypointService;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
/**
|
||||
* 基坑监测-南方测绘-测点Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
@Service
|
||||
public class DevPitmonitSouthsmosSurveypointServiceImpl implements IDevPitmonitSouthsmosSurveypointService
|
||||
{
|
||||
@Autowired
|
||||
private DevPitmonitSouthsmosSurveypointMapper devPitmonitSouthsmosSurveypointMapper;
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点主键
|
||||
* @return 基坑监测-南方测绘-测点
|
||||
*/
|
||||
@Override
|
||||
public DevPitmonitSouthsmosSurveypoint selectDevPitmonitSouthsmosSurveypointById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosSurveypointMapper.selectDevPitmonitSouthsmosSurveypointById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DevPitmonitSouthsmosSurveypoint selectDevPitmonitSouthsmosSurveypointBySpId(Long id) {
|
||||
DevPitmonitSouthsmosSurveypoint where=new DevPitmonitSouthsmosSurveypoint();
|
||||
where.setSpId(id);
|
||||
List<DevPitmonitSouthsmosSurveypoint> list=selectDevPitmonitSouthsmosSurveypointList(where);
|
||||
return list.size()==1?list.get(0): null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询基坑监测-南方测绘-测点列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosSurveypoint 基坑监测-南方测绘-测点
|
||||
* @return 基坑监测-南方测绘-测点
|
||||
*/
|
||||
@Override
|
||||
public List<DevPitmonitSouthsmosSurveypoint> selectDevPitmonitSouthsmosSurveypointList(DevPitmonitSouthsmosSurveypoint devPitmonitSouthsmosSurveypoint)
|
||||
{
|
||||
return devPitmonitSouthsmosSurveypointMapper.selectDevPitmonitSouthsmosSurveypointList(devPitmonitSouthsmosSurveypoint);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param devPitmonitSouthsmosSurveypoint 基坑监测-南方测绘-测点
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDevPitmonitSouthsmosSurveypoint(DevPitmonitSouthsmosSurveypoint devPitmonitSouthsmosSurveypoint)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosSurveypoint.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosSurveypoint.setCreateTime(DateUtils.getNowDate());
|
||||
devPitmonitSouthsmosSurveypoint.setIsDel(0l);
|
||||
return devPitmonitSouthsmosSurveypointMapper.insertDevPitmonitSouthsmosSurveypoint(devPitmonitSouthsmosSurveypoint);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param devPitmonitSouthsmosSurveypoint 基坑监测-南方测绘-测点
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDevPitmonitSouthsmosSurveypoint(DevPitmonitSouthsmosSurveypoint devPitmonitSouthsmosSurveypoint)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosSurveypoint.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosSurveypoint.setUpdateTime(DateUtils.getNowDate());
|
||||
return devPitmonitSouthsmosSurveypointMapper.updateDevPitmonitSouthsmosSurveypoint(devPitmonitSouthsmosSurveypoint);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除基坑监测-南方测绘-测点
|
||||
*
|
||||
* @param ids 需要删除的基坑监测-南方测绘-测点主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosSurveypointByIds(Long[] ids)
|
||||
{
|
||||
return devPitmonitSouthsmosSurveypointMapper.deleteDevPitmonitSouthsmosSurveypointByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除基坑监测-南方测绘-测点信息
|
||||
*
|
||||
* @param id 基坑监测-南方测绘-测点主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosSurveypointById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosSurveypointMapper.deleteDevPitmonitSouthsmosSurveypointById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addList(List<DevPitmonitSouthsmosSurveypoint> ptList, SurProjectPitMonitCfg cfg) {
|
||||
ptList.forEach(pt->{
|
||||
pt.setCfgId(cfg.getId());
|
||||
DevPitmonitSouthsmosSurveypoint old=selectDevPitmonitSouthsmosSurveypointBySpId(pt.getSpId());
|
||||
if(old==null){
|
||||
insertDevPitmonitSouthsmosSurveypoint(pt);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,123 @@
|
|||
package com.ruoyi.quartz.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.quartz.mapper.DevPitmonitSouthsmosThresholdMapper;
|
||||
import com.ruoyi.quartz.domain.DevPitmonitSouthsmosThreshold;
|
||||
import com.ruoyi.quartz.service.IDevPitmonitSouthsmosThresholdService;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
/**
|
||||
* 报警阈值Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-09
|
||||
*/
|
||||
@Service
|
||||
public class DevPitmonitSouthsmosThresholdServiceImpl implements IDevPitmonitSouthsmosThresholdService
|
||||
{
|
||||
@Autowired
|
||||
private DevPitmonitSouthsmosThresholdMapper devPitmonitSouthsmosThresholdMapper;
|
||||
|
||||
/**
|
||||
* 查询报警阈值
|
||||
*
|
||||
* @param id 报警阈值主键
|
||||
* @return 报警阈值
|
||||
*/
|
||||
@Override
|
||||
public DevPitmonitSouthsmosThreshold selectDevPitmonitSouthsmosThresholdById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosThresholdMapper.selectDevPitmonitSouthsmosThresholdById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DevPitmonitSouthsmosThreshold selectDevPitmonitSouthsmosThresholdBySrvId(Long id) {
|
||||
DevPitmonitSouthsmosThreshold where=new DevPitmonitSouthsmosThreshold();
|
||||
where.setSrvId(id);
|
||||
List<DevPitmonitSouthsmosThreshold> list=selectDevPitmonitSouthsmosThresholdList(where);
|
||||
return list.size()==1?list.get(0):null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询报警阈值列表
|
||||
*
|
||||
* @param devPitmonitSouthsmosThreshold 报警阈值
|
||||
* @return 报警阈值
|
||||
*/
|
||||
@Override
|
||||
public List<DevPitmonitSouthsmosThreshold> selectDevPitmonitSouthsmosThresholdList(DevPitmonitSouthsmosThreshold devPitmonitSouthsmosThreshold)
|
||||
{
|
||||
return devPitmonitSouthsmosThresholdMapper.selectDevPitmonitSouthsmosThresholdList(devPitmonitSouthsmosThreshold);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增报警阈值
|
||||
*
|
||||
* @param devPitmonitSouthsmosThreshold 报警阈值
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDevPitmonitSouthsmosThreshold(DevPitmonitSouthsmosThreshold devPitmonitSouthsmosThreshold)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosThreshold.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosThreshold.setCreateTime(DateUtils.getNowDate());
|
||||
devPitmonitSouthsmosThreshold.setIsDel(0l);
|
||||
return devPitmonitSouthsmosThresholdMapper.insertDevPitmonitSouthsmosThreshold(devPitmonitSouthsmosThreshold);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改报警阈值
|
||||
*
|
||||
* @param devPitmonitSouthsmosThreshold 报警阈值
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDevPitmonitSouthsmosThreshold(DevPitmonitSouthsmosThreshold devPitmonitSouthsmosThreshold)
|
||||
{
|
||||
String userName=SecurityUtils.getUsername();
|
||||
devPitmonitSouthsmosThreshold.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
devPitmonitSouthsmosThreshold.setUpdateTime(DateUtils.getNowDate());
|
||||
return devPitmonitSouthsmosThresholdMapper.updateDevPitmonitSouthsmosThreshold(devPitmonitSouthsmosThreshold);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除报警阈值
|
||||
*
|
||||
* @param ids 需要删除的报警阈值主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosThresholdByIds(Long[] ids)
|
||||
{
|
||||
return devPitmonitSouthsmosThresholdMapper.deleteDevPitmonitSouthsmosThresholdByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除报警阈值信息
|
||||
*
|
||||
* @param id 报警阈值主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevPitmonitSouthsmosThresholdById(Long id)
|
||||
{
|
||||
return devPitmonitSouthsmosThresholdMapper.deleteDevPitmonitSouthsmosThresholdById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addList(List<DevPitmonitSouthsmosThreshold> thList, SurProjectPitMonitCfg cfg) {
|
||||
thList.forEach(th->{
|
||||
th.setCfgId(cfg.getId());
|
||||
DevPitmonitSouthsmosThreshold old=selectDevPitmonitSouthsmosThresholdBySrvId(th.getSrvId());
|
||||
if(old==null){
|
||||
insertDevPitmonitSouthsmosThreshold(th);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package com.ruoyi.quartz.service.impl;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.enums.ApplyCfgTypeEnum;
|
||||
import com.ruoyi.common.enums.ShiFouEnum;
|
||||
import com.ruoyi.common.enums.VendorsCodeEnum;
|
||||
|
@ -66,7 +67,8 @@ public class QuartzProjectAttendanceCfgServiceImpl implements IQuartzProjectAtte
|
|||
@Override
|
||||
public int insertSurProjectAttendanceCfg(QuartzProjectAttendanceCfg quartzProjectAttendanceCfg)
|
||||
{
|
||||
quartzProjectAttendanceCfg.setCreateBy(SecurityUtils.getUsername());
|
||||
String userName=SecurityUtils.getUsername();
|
||||
quartzProjectAttendanceCfg.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
quartzProjectAttendanceCfg.setCreateTime(DateUtils.getNowDate());
|
||||
return quartzProjectAttendanceCfgMapper.insertSurProjectAttendanceCfg(quartzProjectAttendanceCfg);
|
||||
}
|
||||
|
@ -80,7 +82,8 @@ public class QuartzProjectAttendanceCfgServiceImpl implements IQuartzProjectAtte
|
|||
@Override
|
||||
public int updateSurProjectAttendanceCfg(QuartzProjectAttendanceCfg quartzProjectAttendanceCfg)
|
||||
{
|
||||
quartzProjectAttendanceCfg.setUpdateBy(SecurityUtils.getUsername());
|
||||
String userName=SecurityUtils.getUsername();
|
||||
quartzProjectAttendanceCfg.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
quartzProjectAttendanceCfg.setUpdateTime(DateUtils.getNowDate());
|
||||
if(VendorsCodeEnum.YANZHU.getCode().equals(quartzProjectAttendanceCfg.getVendorsCode())){
|
||||
SysApplyConfig sysApplyConfig = new SysApplyConfig();
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.ruoyi.quartz.service.impl;
|
|||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.quartz.domain.QuartzProjectAttendanceCfg;
|
||||
import com.ruoyi.quartz.domain.QuartzProjectAttendanceData;
|
||||
|
@ -94,10 +95,10 @@ public class QuartzProjectAttendanceDataServiceImpl implements IQuartzProjectAtt
|
|||
@Override
|
||||
public int insertSurProjectAttendanceData(QuartzProjectAttendanceData quartzProjectAttendanceData)
|
||||
{
|
||||
if(StringUtils.isEmpty(quartzProjectAttendanceData.getCreateBy())){
|
||||
quartzProjectAttendanceData.setCreateBy("task");
|
||||
String userName= SecurityUtils.getUsername();
|
||||
quartzProjectAttendanceData.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
quartzProjectAttendanceData.setCreateTime(DateUtils.getNowDate());
|
||||
}
|
||||
|
||||
return quartzProjectAttendanceDataMapper.insertSurProjectAttendanceData(quartzProjectAttendanceData);
|
||||
}
|
||||
|
||||
|
@ -110,9 +111,9 @@ public class QuartzProjectAttendanceDataServiceImpl implements IQuartzProjectAtt
|
|||
@Override
|
||||
public int updateSurProjectAttendanceData(QuartzProjectAttendanceData quartzProjectAttendanceData)
|
||||
{
|
||||
if(StringUtils.isEmpty(quartzProjectAttendanceData.getCreateBy())){
|
||||
quartzProjectAttendanceData.setUpdateBy("task");
|
||||
}
|
||||
String userName=SecurityUtils.getUsername();
|
||||
quartzProjectAttendanceData.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
|
||||
quartzProjectAttendanceData.setUpdateTime(DateUtils.getNowDate());
|
||||
return quartzProjectAttendanceDataMapper.updateSurProjectAttendanceData(quartzProjectAttendanceData);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package com.ruoyi.quartz.service.impl;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.quartz.domain.QuartzProjectAttendanceGroup;
|
||||
import com.ruoyi.quartz.mapper.QuartzProjectAttendanceGroupMapper;
|
||||
|
@ -64,9 +66,9 @@ public class QuartzProjectAttendanceGroupServiceImpl implements IQuartzProjectAt
|
|||
@Override
|
||||
public int insertSurProjectAttendanceGroup(QuartzProjectAttendanceGroup quartzProjectAttendanceGroup)
|
||||
{
|
||||
if(StringUtils.isEmpty(quartzProjectAttendanceGroup.getCreateBy())){
|
||||
quartzProjectAttendanceGroup.setCreateBy("task");
|
||||
}
|
||||
String userName= SecurityUtils.getUsername();
|
||||
quartzProjectAttendanceGroup.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
quartzProjectAttendanceGroup.setCreateTime(DateUtils.getNowDate());
|
||||
return quartzProjectAttendanceGroupMapper.insertSurProjectAttendanceGroup(quartzProjectAttendanceGroup);
|
||||
}
|
||||
|
||||
|
@ -79,9 +81,9 @@ public class QuartzProjectAttendanceGroupServiceImpl implements IQuartzProjectAt
|
|||
@Override
|
||||
public int updateSurProjectAttendanceGroup(QuartzProjectAttendanceGroup quartzProjectAttendanceGroup)
|
||||
{
|
||||
if(StringUtils.isEmpty(quartzProjectAttendanceGroup.getCreateBy())){
|
||||
quartzProjectAttendanceGroup.setUpdateBy("task");
|
||||
}
|
||||
String userName= SecurityUtils.getUsername();
|
||||
quartzProjectAttendanceGroup.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
|
||||
|
||||
quartzProjectAttendanceGroup.setUpdateTime(DateUtils.getNowDate());
|
||||
return quartzProjectAttendanceGroupMapper.updateSurProjectAttendanceGroup(quartzProjectAttendanceGroup);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,113 @@
|
|||
package com.ruoyi.quartz.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.quartz.mapper.SurProjectPitMonitCfgMapper;
|
||||
import com.ruoyi.quartz.domain.SurProjectPitMonitCfg;
|
||||
import com.ruoyi.quartz.service.ISurProjectPitMonitCfgService;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
/**
|
||||
* 项目基坑监测配置
|
||||
Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-08-08
|
||||
*/
|
||||
@Service
|
||||
public class SurProjectPitMonitCfgServiceImpl implements ISurProjectPitMonitCfgService
|
||||
{
|
||||
@Autowired
|
||||
private SurProjectPitMonitCfgMapper surProjectPitMonitCfgMapper;
|
||||
|
||||
/**
|
||||
* 查询项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param id 项目基坑监测配置
|
||||
主键
|
||||
* @return 项目基坑监测配置
|
||||
|
||||
*/
|
||||
@Override
|
||||
public SurProjectPitMonitCfg selectSurProjectPitMonitCfgById(Long id)
|
||||
{
|
||||
return surProjectPitMonitCfgMapper.selectSurProjectPitMonitCfgById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询项目基坑监测配置
|
||||
列表
|
||||
*
|
||||
* @param surProjectPitMonitCfg 项目基坑监测配置
|
||||
|
||||
* @return 项目基坑监测配置
|
||||
|
||||
*/
|
||||
@Override
|
||||
public List<SurProjectPitMonitCfg> selectSurProjectPitMonitCfgList(SurProjectPitMonitCfg surProjectPitMonitCfg)
|
||||
{
|
||||
return surProjectPitMonitCfgMapper.selectSurProjectPitMonitCfgList(surProjectPitMonitCfg);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param surProjectPitMonitCfg 项目基坑监测配置
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSurProjectPitMonitCfg(SurProjectPitMonitCfg surProjectPitMonitCfg)
|
||||
{
|
||||
surProjectPitMonitCfg.setCreateBy(SecurityUtils.getUsername());
|
||||
surProjectPitMonitCfg.setCreateTime(DateUtils.getNowDate());
|
||||
return surProjectPitMonitCfgMapper.insertSurProjectPitMonitCfg(surProjectPitMonitCfg);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param surProjectPitMonitCfg 项目基坑监测配置
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSurProjectPitMonitCfg(SurProjectPitMonitCfg surProjectPitMonitCfg)
|
||||
{
|
||||
surProjectPitMonitCfg.setUpdateBy(SecurityUtils.getUsername());
|
||||
surProjectPitMonitCfg.setUpdateTime(DateUtils.getNowDate());
|
||||
return surProjectPitMonitCfgMapper.updateSurProjectPitMonitCfg(surProjectPitMonitCfg);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除项目基坑监测配置
|
||||
|
||||
*
|
||||
* @param ids 需要删除的项目基坑监测配置
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSurProjectPitMonitCfgByIds(Long[] ids)
|
||||
{
|
||||
return surProjectPitMonitCfgMapper.deleteSurProjectPitMonitCfgByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除项目基坑监测配置
|
||||
信息
|
||||
*
|
||||
* @param id 项目基坑监测配置
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSurProjectPitMonitCfgById(Long id)
|
||||
{
|
||||
return surProjectPitMonitCfgMapper.deleteSurProjectPitMonitCfgById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,328 @@
|
|||
package com.ruoyi.quartz.task;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONArray;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.ruoyi.quartz.domain.*;
|
||||
import com.ruoyi.quartz.service.*;
|
||||
import okhttp3.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@Component("pitmonitSouthsmosTask")
|
||||
|
||||
public class PitmonitSouthsmosTask {
|
||||
@Autowired
|
||||
private ISurProjectPitMonitCfgService cfgService;
|
||||
@Autowired
|
||||
private IDevPitmonitSouthsmosAlarmService alarmService;
|
||||
@Autowired
|
||||
private IDevPitmonitSouthsmosDataService dataService;
|
||||
@Autowired
|
||||
private IDevPitmonitSouthsmosElementService elementService;
|
||||
@Autowired
|
||||
private IDevPitmonitSouthsmosSurveypointService surveypointService;
|
||||
@Autowired
|
||||
private IDevPitmonitSouthsmosThresholdService thresholdService;
|
||||
|
||||
static String APIBASEURL="https://www.southsmos.com/api/";
|
||||
|
||||
/**
|
||||
* 同步基本信息
|
||||
* 4.获取监测项列表
|
||||
* 5.获取测点列表
|
||||
* 7.获取报警阈值
|
||||
*/
|
||||
public void syncBaseInfo() {
|
||||
SurProjectPitMonitCfg cfgWhere=new SurProjectPitMonitCfg();
|
||||
cfgWhere.setEnabled(1l);
|
||||
cfgWhere.setIsDel(0l);
|
||||
List<SurProjectPitMonitCfg> cfgList= cfgService.selectSurProjectPitMonitCfgList(cfgWhere);
|
||||
cfgList.forEach(cfg->{
|
||||
JSONObject jo=JSON.parseObject(cfg.getVendorParamter());
|
||||
String identifier=jo.getString("identifier");
|
||||
String credential=jo.getString("credential");
|
||||
String orgId=jo.getString("orgId");
|
||||
String token=getToken(identifier,credential);
|
||||
//4.获取监测项列表
|
||||
List<DevPitmonitSouthsmosElement> elList=getMonitorElement(token,orgId);
|
||||
elementService.addList(elList,cfg);
|
||||
//5.获取测点列表
|
||||
List<DevPitmonitSouthsmosSurveypoint> ptList=getSurveyPoint(token,orgId);
|
||||
surveypointService.addList(ptList,cfg);
|
||||
//7.获取报警阈值
|
||||
DevPitmonitSouthsmosSurveypoint ptWhere=new DevPitmonitSouthsmosSurveypoint();
|
||||
ptWhere.setCfgId(cfg.getId());
|
||||
ptWhere.setIsDel(0l);
|
||||
ptList=surveypointService.selectDevPitmonitSouthsmosSurveypointList(ptWhere);
|
||||
ptList.forEach(d->{
|
||||
List<DevPitmonitSouthsmosThreshold> thList=getThreshold(""+d.getSpId(),token);
|
||||
thresholdService.addList(thList,cfg);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当天数据
|
||||
* 6.获取测点数据
|
||||
* 8.获取报警信息
|
||||
*/
|
||||
public void syncTodayData(){
|
||||
doGetData(new Date());
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 同步最近7天数据
|
||||
* 6.获取测点数据
|
||||
* 8.获取报警信息
|
||||
*/
|
||||
public void sync7DayData(){
|
||||
long endTime=DateUtil.current();
|
||||
Date dt = DateUtil.date(endTime - 3600l * 1000 * 24 * 7);
|
||||
doGetData(dt);
|
||||
}
|
||||
/**
|
||||
* 同步从2023-01-01开始的所有数据
|
||||
* 6.获取测点数据
|
||||
* 8.获取报警信息
|
||||
*/
|
||||
public void syncAllData(){
|
||||
doGetData(DateUtil.parse("2023-01-01"));
|
||||
}
|
||||
/**
|
||||
* 同步数据
|
||||
* 6.获取测点数据
|
||||
* 8.获取报警信息
|
||||
*/
|
||||
private void doGetData(Date date) {
|
||||
SurProjectPitMonitCfg cfgWhere=new SurProjectPitMonitCfg();
|
||||
cfgWhere.setEnabled(1l);
|
||||
cfgWhere.setIsDel(0l);
|
||||
List<SurProjectPitMonitCfg> cfgList= cfgService.selectSurProjectPitMonitCfgList(cfgWhere);
|
||||
cfgList.forEach(cfg->{
|
||||
JSONObject jo=JSON.parseObject(cfg.getVendorParamter());
|
||||
String identifier=jo.getString("identifier");
|
||||
String credential=jo.getString("credential");
|
||||
String orgId=jo.getString("orgId");
|
||||
String token=getToken(identifier,credential);
|
||||
//6.获取测点数据
|
||||
DevPitmonitSouthsmosElement elWhere=new DevPitmonitSouthsmosElement();
|
||||
elWhere.setCfgId(cfg.getId());
|
||||
elWhere.setIsDel(0l);
|
||||
List<DevPitmonitSouthsmosElement> elList=elementService.selectDevPitmonitSouthsmosElementList(elWhere);
|
||||
elList.forEach(el->{
|
||||
List<DevPitmonitSouthsmosData> dataList=getElementData(orgId,""+el.getSrvId(),el.getNameEn(),token,date,1);
|
||||
dataService.addList(dataList,cfg);
|
||||
});
|
||||
//8.获取报警信息
|
||||
List<DevPitmonitSouthsmosAlarm> alarmList=getAlarm(orgId,token,date);
|
||||
alarmService.addList(alarmList,cfg);
|
||||
});
|
||||
|
||||
}
|
||||
/**
|
||||
* 1.登录
|
||||
* @param identifier
|
||||
* @param credential
|
||||
* @return
|
||||
*/
|
||||
private static String getToken(String identifier,String credential){
|
||||
String url="auth/tologin";
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("identifier",identifier);
|
||||
params.put("credential",credential);
|
||||
params.put("type", "password");
|
||||
Request request = new Request.Builder()
|
||||
.url(APIBASEURL+url)
|
||||
.post(toJsonBody(params))
|
||||
.build();
|
||||
String data=AttendanceTask.getResult(request);
|
||||
JSONObject jo=JSON.parseObject(data);
|
||||
data=jo.getJSONObject("data").getString("token");
|
||||
return data;
|
||||
}
|
||||
|
||||
private static RequestBody toJsonBody(Map<String, Object> params) {
|
||||
return RequestBody.create(MediaType.parse("application/json"), JSON.toJSONString(params));
|
||||
}
|
||||
|
||||
public static void main(String[] args){
|
||||
String identifier="JHXC";
|
||||
String credential="Admin123456!";
|
||||
String orgId="1687";
|
||||
String token=getToken(identifier,credential);
|
||||
//4.获取监测项列表
|
||||
//List<DevPitmonitSouthsmosElement> list=getMonitorElement(token,orgId);
|
||||
//System.out.println(list);
|
||||
//5.获取测点列表
|
||||
//List<DevPitmonitSouthsmosSurveypoint> spList=getSurveyPoint(token,orgId);
|
||||
//System.out.println(spList);
|
||||
//6.获取测点数据
|
||||
//List<DevPitmonitSouthsmosData> dataList=getElementData(orgId,"22","horizontal",token,DateUtil.parse("2024-01-01"),1);
|
||||
//System.out.println(dataList);
|
||||
//System.out.println(dataList.size());
|
||||
//7.获取报警阈值
|
||||
//List<DevPitmonitSouthsmosThreshold> thList=getThreshold("53245",token);
|
||||
//System.out.println(thList);
|
||||
//8.获取报警信息
|
||||
List<DevPitmonitSouthsmosAlarm> alarmList=getAlarm(orgId,token,DateUtil.parse("2024-01-01"));
|
||||
System.out.println(alarmList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 4.获取监测项列表
|
||||
* @param token
|
||||
* @param orgId
|
||||
* @return
|
||||
*/
|
||||
private static List<DevPitmonitSouthsmosElement> getMonitorElement(String token,String orgId){
|
||||
String url="service/structure/"+orgId+"/monitorElement";
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("isPaged","false");
|
||||
String data=getJSON(APIBASEURL+url,token,params);
|
||||
JSONArray jo=JSON.parseObject(data).getJSONArray("data");
|
||||
List<DevPitmonitSouthsmosElement> list=jo.toList(DevPitmonitSouthsmosElement.class);
|
||||
list.forEach(it->{
|
||||
it.setSrvId(it.getId());
|
||||
it.setId(null);
|
||||
it.getItems().forEach(item->{
|
||||
item.setSrvId(item.getId());
|
||||
item.setId(null);
|
||||
});
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 5.获取测点列表
|
||||
* @param token
|
||||
* @param orgId
|
||||
* @return
|
||||
*/
|
||||
private static List<DevPitmonitSouthsmosSurveypoint> getSurveyPoint(String token,String orgId){
|
||||
String url="service/structure/"+orgId+"/surveyPoint";
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("isPaged","false");
|
||||
String data=getJSON(APIBASEURL+url,token,params);
|
||||
JSONArray jo=JSON.parseObject(data).getJSONArray("data");
|
||||
List<DevPitmonitSouthsmosSurveypoint> list=jo.toList(DevPitmonitSouthsmosSurveypoint.class);
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 6.获取测点数据
|
||||
* @param orgId
|
||||
* @param spId
|
||||
* @param type
|
||||
* @param token
|
||||
* @param dt
|
||||
* @param pageIndex
|
||||
* @return
|
||||
*/
|
||||
private static List<DevPitmonitSouthsmosData> getElementData(String orgId,String spId,String type, String token,Date dt,int pageIndex){
|
||||
String url="service/structure/"+orgId+"/element/"+spId+"/Data";
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("isPaged","true");
|
||||
params.put("type",type);
|
||||
params.put("beginTime", DateUtil.format(dt, "YYYY-MM-dd 00:00:00"));
|
||||
params.put("size",""+100);
|
||||
params.put("page",""+pageIndex);
|
||||
String data=getJSON(APIBASEURL+url,token,params);
|
||||
JSONObject jo=JSON.parseObject(data).getJSONObject("data");
|
||||
List<DevPitmonitSouthsmosData> list=jo.getList("list",DevPitmonitSouthsmosData.class);
|
||||
JSONArray jarr=jo.getJSONArray("list");
|
||||
for (int i = 0; i < jarr.size(); i++) {
|
||||
if(type.equals("horizontal")) {
|
||||
list.get(i).convertToHorizontal(jarr.getJSONObject(i));//水平位移(x,y)
|
||||
}else if(type.equals("presureWallsideSoil")){ //围护墙侧向土压力
|
||||
list.get(i).convertToPresureWallsideSoil(jarr.getJSONObject(i));
|
||||
}else if(type.equals("waterLevel")){ //地下水位
|
||||
list.get(i).convertToWaterLevel(jarr.getJSONObject(i));
|
||||
}
|
||||
}
|
||||
if(jarr.size()>0){
|
||||
List<DevPitmonitSouthsmosData> tmps= getElementData(orgId,spId,type,token,dt,pageIndex+1);
|
||||
list.addAll(tmps);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 7.获取报警阈值
|
||||
* @param spId
|
||||
* @param token
|
||||
* @return
|
||||
*/
|
||||
private static List<DevPitmonitSouthsmosThreshold> getThreshold(String spId,String token){
|
||||
String url="service/threshold";
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("isPaged","false");
|
||||
params.put("spId",spId);
|
||||
String data=getJSON(APIBASEURL+url,token,params);
|
||||
JSONObject jo=JSON.parseObject(data);
|
||||
List<DevPitmonitSouthsmosThreshold> list=jo.getList("data",DevPitmonitSouthsmosThreshold.class);
|
||||
list.forEach(d->{
|
||||
d.setSrvId(d.getId());
|
||||
d.setId(null);
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 8.获取报警信息
|
||||
* @param orgId
|
||||
* @param token
|
||||
* @param dt
|
||||
* @return
|
||||
*/
|
||||
private static List<DevPitmonitSouthsmosAlarm> getAlarm(String orgId,String token,Date dt){
|
||||
String url="service/alarm/all";
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("structureId",orgId);
|
||||
params.put("beginTime", DateUtil.format(dt, "YYYY-MM-dd 00:00:00"));
|
||||
params.put("status","false");
|
||||
String data=getJSON(APIBASEURL+url,token,params);
|
||||
JSONObject jo=JSON.parseObject(data);
|
||||
List<DevPitmonitSouthsmosAlarm> list=jo.getList("data", DevPitmonitSouthsmosAlarm.class);
|
||||
list.forEach(d->{
|
||||
d.setSrvId(d.getId());
|
||||
d.setId(null);
|
||||
});
|
||||
params.remove("status");
|
||||
params.put("status","true");
|
||||
data=getJSON(APIBASEURL+url,token,params);
|
||||
jo=JSON.parseObject(data);
|
||||
List<DevPitmonitSouthsmosAlarm> list2=jo.getList("data", DevPitmonitSouthsmosAlarm.class);
|
||||
list2.forEach(d->{
|
||||
d.setSrvId(d.getId());
|
||||
d.setId(null);
|
||||
});
|
||||
list.addAll(list2);
|
||||
return list;
|
||||
}
|
||||
|
||||
private static String getJSON(String url, String token, Map<String, Object> params) {
|
||||
HttpUrl.Builder urlBuilder = Objects.requireNonNull(HttpUrl.parse(url)).newBuilder();
|
||||
params.forEach((s, o) -> {
|
||||
urlBuilder.addQueryParameter(s, (String) o);
|
||||
});
|
||||
Request request = new Request.Builder()
|
||||
.header("token",token)
|
||||
.url(urlBuilder.build())
|
||||
.build();
|
||||
return AttendanceTask.getResult(request);
|
||||
}
|
||||
|
||||
private static RequestBody toFormBody(Map<String, Object> params ){
|
||||
FormBody.Builder builder=new FormBody.Builder();
|
||||
for(String key :params.keySet()){
|
||||
builder.add(key,params.get(key).toString());
|
||||
}
|
||||
return builder.build();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.ruoyi.quartz.util;
|
||||
|
||||
import com.alibaba.fastjson2.JSONReader;
|
||||
import com.alibaba.fastjson2.JSONWriter;
|
||||
import com.alibaba.fastjson2.reader.ObjectReader;
|
||||
import com.alibaba.fastjson2.writer.ObjectWriter;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
public class JsonTextToDate implements ObjectReader, ObjectWriter {
|
||||
@Override
|
||||
public long getFeatures() {
|
||||
return ObjectReader.super.getFeatures();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,211 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.quartz.mapper.DevPitmonitSouthsmosAlarmMapper">
|
||||
|
||||
<resultMap type="DevPitmonitSouthsmosAlarm" id="DevPitmonitSouthsmosAlarmResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfgId" />
|
||||
<result property="srvId" column="srvId" />
|
||||
<result property="alarmInfo" column="alarmInfo" />
|
||||
<result property="alarmSource" column="alarmSource" />
|
||||
<result property="gmtAlarm" column="gmtAlarm" />
|
||||
<result property="gmtAlarmOver" column="gmtAlarmOver" />
|
||||
<result property="gmtAlarmStart" column="gmtAlarmStart" />
|
||||
<result property="gmtCreate" column="gmtCreate" />
|
||||
<result property="gmtModified" column="gmtModified" />
|
||||
<result property="level" column="level" />
|
||||
<result property="meId" column="meId" />
|
||||
<result property="meName" column="meName" />
|
||||
<result property="monitorItemId" column="monitorItemId" />
|
||||
<result property="numbers" column="numbers" />
|
||||
<result property="result" column="result" />
|
||||
<result property="resultUrl" column="resultUrl" />
|
||||
<result property="spId" column="spId" />
|
||||
<result property="spName" column="spName" />
|
||||
<result property="staff" column="staff" />
|
||||
<result property="staffPhone" column="staffPhone" />
|
||||
<result property="status" column="status" />
|
||||
<result property="structureId" column="structureId" />
|
||||
<result property="structureName" column="structureName" />
|
||||
<result property="threshold" column="threshold" />
|
||||
<result property="type" column="type" />
|
||||
<result property="variety" column="variety" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevPitmonitSouthsmosAlarmVo">
|
||||
select id, cfgId, srvId, alarmInfo, alarmSource, gmtAlarm, gmtAlarmOver, gmtAlarmStart, gmtCreate, gmtModified, level, meId, meName, monitorItemId, numbers, result, resultUrl, spId, spName, staff, staffPhone, status, structureId, structureName, threshold, type, variety, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_alarm
|
||||
</sql>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosAlarmList" parameterType="DevPitmonitSouthsmosAlarm" resultMap="DevPitmonitSouthsmosAlarmResult">
|
||||
<include refid="selectDevPitmonitSouthsmosAlarmVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
|
||||
<if test="srvId != null "> and srvId = #{srvId}</if>
|
||||
<if test="alarmInfo != null and alarmInfo != ''"> and alarmInfo = #{alarmInfo}</if>
|
||||
<if test="alarmSource != null and alarmSource != ''"> and alarmSource = #{alarmSource}</if>
|
||||
<if test="gmtAlarm != null "> and gmtAlarm = #{gmtAlarm}</if>
|
||||
<if test="gmtAlarmOver != null "> and gmtAlarmOver = #{gmtAlarmOver}</if>
|
||||
<if test="gmtAlarmStart != null "> and gmtAlarmStart = #{gmtAlarmStart}</if>
|
||||
<if test="gmtCreate != null "> and gmtCreate = #{gmtCreate}</if>
|
||||
<if test="gmtModified != null "> and gmtModified = #{gmtModified}</if>
|
||||
<if test="level != null "> and level = #{level}</if>
|
||||
<if test="meId != null "> and meId = #{meId}</if>
|
||||
<if test="meName != null and meName != ''"> and meName like concat('%', #{meName}, '%')</if>
|
||||
<if test="monitorItemId != null "> and monitorItemId = #{monitorItemId}</if>
|
||||
<if test="numbers != null "> and numbers = #{numbers}</if>
|
||||
<if test="result != null and result != ''"> and result = #{result}</if>
|
||||
<if test="resultUrl != null and resultUrl != ''"> and resultUrl = #{resultUrl}</if>
|
||||
<if test="spId != null "> and spId = #{spId}</if>
|
||||
<if test="spName != null and spName != ''"> and spName like concat('%', #{spName}, '%')</if>
|
||||
<if test="staff != null and staff != ''"> and staff = #{staff}</if>
|
||||
<if test="staffPhone != null and staffPhone != ''"> and staffPhone = #{staffPhone}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="structureId != null "> and structureId = #{structureId}</if>
|
||||
<if test="structureName != null and structureName != ''"> and structureName like concat('%', #{structureName}, '%')</if>
|
||||
<if test="threshold != null and threshold != ''"> and threshold = #{threshold}</if>
|
||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||
<if test="variety != null and variety != ''"> and variety = #{variety}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosAlarmById" parameterType="Long" resultMap="DevPitmonitSouthsmosAlarmResult">
|
||||
<include refid="selectDevPitmonitSouthsmosAlarmVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosAlarm" parameterType="DevPitmonitSouthsmosAlarm" 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="DevPitmonitSouthsmosAlarm">
|
||||
update dev_pitmonit_southsmos_alarm
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfgId = #{cfgId},</if>
|
||||
<if test="srvId != null">srvId = #{srvId},</if>
|
||||
<if test="alarmInfo != null">alarmInfo = #{alarmInfo},</if>
|
||||
<if test="alarmSource != null">alarmSource = #{alarmSource},</if>
|
||||
<if test="gmtAlarm != null">gmtAlarm = #{gmtAlarm},</if>
|
||||
<if test="gmtAlarmOver != null">gmtAlarmOver = #{gmtAlarmOver},</if>
|
||||
<if test="gmtAlarmStart != null">gmtAlarmStart = #{gmtAlarmStart},</if>
|
||||
<if test="gmtCreate != null">gmtCreate = #{gmtCreate},</if>
|
||||
<if test="gmtModified != null">gmtModified = #{gmtModified},</if>
|
||||
<if test="level != null">level = #{level},</if>
|
||||
<if test="meId != null">meId = #{meId},</if>
|
||||
<if test="meName != null">meName = #{meName},</if>
|
||||
<if test="monitorItemId != null">monitorItemId = #{monitorItemId},</if>
|
||||
<if test="numbers != null">numbers = #{numbers},</if>
|
||||
<if test="result != null">result = #{result},</if>
|
||||
<if test="resultUrl != null">resultUrl = #{resultUrl},</if>
|
||||
<if test="spId != null">spId = #{spId},</if>
|
||||
<if test="spName != null">spName = #{spName},</if>
|
||||
<if test="staff != null">staff = #{staff},</if>
|
||||
<if test="staffPhone != null">staffPhone = #{staffPhone},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="structureId != null">structureId = #{structureId},</if>
|
||||
<if test="structureName != null">structureName = #{structureName},</if>
|
||||
<if test="threshold != null">threshold = #{threshold},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="variety != null">variety = #{variety},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevPitmonitSouthsmosAlarmById" parameterType="Long">
|
||||
delete from dev_pitmonit_southsmos_alarm where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevPitmonitSouthsmosAlarmByIds" parameterType="String">
|
||||
delete from dev_pitmonit_southsmos_alarm where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,151 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.quartz.mapper.DevPitmonitSouthsmosDataMapper">
|
||||
|
||||
<resultMap type="DevPitmonitSouthsmosData" id="DevPitmonitSouthsmosDataResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfgId" />
|
||||
<result property="dataType" column="dataType" />
|
||||
<result property="dataId" column="dataId" />
|
||||
<result property="spId" column="spId" />
|
||||
<result property="spName" column="spName" />
|
||||
<result property="collectTime" column="collectTime" />
|
||||
<result property="changeRate" column="changeRate" />
|
||||
<result property="changeRate2" column="changeRate2" />
|
||||
<result property="displace" column="displace" />
|
||||
<result property="displace2" column="displace2" />
|
||||
<result property="totalize" column="totalize" />
|
||||
<result property="totalize2" column="totalize2" />
|
||||
<result property="variation" column="variation" />
|
||||
<result property="variation2" column="variation2" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevPitmonitSouthsmosDataVo">
|
||||
select id, cfgId, dataType, dataId, spId, spName, collectTime, changeRate, changeRate2, displace, displace2, totalize, totalize2, variation, variation2, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_data
|
||||
</sql>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosDataList" parameterType="DevPitmonitSouthsmosData" resultMap="DevPitmonitSouthsmosDataResult">
|
||||
<include refid="selectDevPitmonitSouthsmosDataVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
|
||||
<if test="dataType != null and dataType != ''"> and dataType = #{dataType}</if>
|
||||
<if test="dataId != null "> and dataId = #{dataId}</if>
|
||||
<if test="spId != null "> and spId = #{spId}</if>
|
||||
<if test="spName != null and spName != ''"> and spName like concat('%', #{spName}, '%')</if>
|
||||
<if test="collectTime != null "> and collectTime = #{collectTime}</if>
|
||||
<if test="changeRate != null "> and changeRate = #{changeRate}</if>
|
||||
<if test="changeRate2 != null "> and changeRate2 = #{changeRate2}</if>
|
||||
<if test="displace != null "> and displace = #{displace}</if>
|
||||
<if test="displace2 != null "> and displace2 = #{displace2}</if>
|
||||
<if test="totalize != null "> and totalize = #{totalize}</if>
|
||||
<if test="totalize2 != null "> and totalize2 = #{totalize2}</if>
|
||||
<if test="variation != null "> and variation = #{variation}</if>
|
||||
<if test="variation2 != null "> and variation2 = #{variation2}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosDataById" parameterType="Long" resultMap="DevPitmonitSouthsmosDataResult">
|
||||
<include refid="selectDevPitmonitSouthsmosDataVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosData" parameterType="DevPitmonitSouthsmosData" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_pitmonit_southsmos_data
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfgId,</if>
|
||||
<if test="dataType != null">dataType,</if>
|
||||
<if test="dataId != null">dataId,</if>
|
||||
<if test="spId != null">spId,</if>
|
||||
<if test="spName != null">spName,</if>
|
||||
<if test="collectTime != null">collectTime,</if>
|
||||
<if test="changeRate != null">changeRate,</if>
|
||||
<if test="changeRate2 != null">changeRate2,</if>
|
||||
<if test="displace != null">displace,</if>
|
||||
<if test="displace2 != null">displace2,</if>
|
||||
<if test="totalize != null">totalize,</if>
|
||||
<if test="totalize2 != null">totalize2,</if>
|
||||
<if test="variation != null">variation,</if>
|
||||
<if test="variation2 != null">variation2,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="dataType != null">#{dataType},</if>
|
||||
<if test="dataId != null">#{dataId},</if>
|
||||
<if test="spId != null">#{spId},</if>
|
||||
<if test="spName != null">#{spName},</if>
|
||||
<if test="collectTime != null">#{collectTime},</if>
|
||||
<if test="changeRate != null">#{changeRate},</if>
|
||||
<if test="changeRate2 != null">#{changeRate2},</if>
|
||||
<if test="displace != null">#{displace},</if>
|
||||
<if test="displace2 != null">#{displace2},</if>
|
||||
<if test="totalize != null">#{totalize},</if>
|
||||
<if test="totalize2 != null">#{totalize2},</if>
|
||||
<if test="variation != null">#{variation},</if>
|
||||
<if test="variation2 != null">#{variation2},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevPitmonitSouthsmosData" parameterType="DevPitmonitSouthsmosData">
|
||||
update dev_pitmonit_southsmos_data
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfgId = #{cfgId},</if>
|
||||
<if test="dataType != null">dataType = #{dataType},</if>
|
||||
<if test="dataId != null">dataId = #{dataId},</if>
|
||||
<if test="spId != null">spId = #{spId},</if>
|
||||
<if test="spName != null">spName = #{spName},</if>
|
||||
<if test="collectTime != null">collectTime = #{collectTime},</if>
|
||||
<if test="changeRate != null">changeRate = #{changeRate},</if>
|
||||
<if test="changeRate2 != null">changeRate2 = #{changeRate2},</if>
|
||||
<if test="displace != null">displace = #{displace},</if>
|
||||
<if test="displace2 != null">displace2 = #{displace2},</if>
|
||||
<if test="totalize != null">totalize = #{totalize},</if>
|
||||
<if test="totalize2 != null">totalize2 = #{totalize2},</if>
|
||||
<if test="variation != null">variation = #{variation},</if>
|
||||
<if test="variation2 != null">variation2 = #{variation2},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevPitmonitSouthsmosDataById" parameterType="Long">
|
||||
delete from dev_pitmonit_southsmos_data where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevPitmonitSouthsmosDataByIds" parameterType="String">
|
||||
delete from dev_pitmonit_southsmos_data where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -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.ruoyi.quartz.mapper.DevPitmonitSouthsmosElementItemMapper">
|
||||
|
||||
<resultMap type="DevPitmonitSouthsmosElementItem" id="DevPitmonitSouthsmosElementItemResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfgId" />
|
||||
<result property="srvId" column="srvId" />
|
||||
<result property="monitorElementId" column="monitorElementId" />
|
||||
<result property="name" column="name" />
|
||||
<result property="step" column="step" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="valueRange" column="valueRange" />
|
||||
<result property="gmtCreate" column="gmtCreate" />
|
||||
<result property="gmtModified" column="gmtModified" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevPitmonitSouthsmosElementItemVo">
|
||||
select id, cfgId, srvId, monitorElementId, name, step, unit, valueRange, gmtCreate, gmtModified, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_element_item
|
||||
</sql>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosElementItemList" parameterType="DevPitmonitSouthsmosElementItem" resultMap="DevPitmonitSouthsmosElementItemResult">
|
||||
<include refid="selectDevPitmonitSouthsmosElementItemVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
|
||||
<if test="srvId != null "> and srvId = #{srvId}</if>
|
||||
<if test="monitorElementId != null "> and monitorElementId = #{monitorElementId}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="step != null "> and step = #{step}</if>
|
||||
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
||||
<if test="valueRange != null and valueRange != ''"> and valueRange = #{valueRange}</if>
|
||||
<if test="gmtCreate != null and gmtCreate != ''"> and gmtCreate = #{gmtCreate}</if>
|
||||
<if test="gmtModified != null and gmtModified != ''"> and gmtModified = #{gmtModified}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosElementItemById" parameterType="Long" resultMap="DevPitmonitSouthsmosElementItemResult">
|
||||
<include refid="selectDevPitmonitSouthsmosElementItemVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosElementItem" parameterType="DevPitmonitSouthsmosElementItem" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_pitmonit_southsmos_element_item
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfgId,</if>
|
||||
<if test="srvId != null">srvId,</if>
|
||||
<if test="monitorElementId != null">monitorElementId,</if>
|
||||
<if test="name != null">name,</if>
|
||||
<if test="step != null">step,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="valueRange != null">valueRange,</if>
|
||||
<if test="gmtCreate != null">gmtCreate,</if>
|
||||
<if test="gmtModified != null">gmtModified,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="srvId != null">#{srvId},</if>
|
||||
<if test="monitorElementId != null">#{monitorElementId},</if>
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="step != null">#{step},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="valueRange != null">#{valueRange},</if>
|
||||
<if test="gmtCreate != null">#{gmtCreate},</if>
|
||||
<if test="gmtModified != null">#{gmtModified},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevPitmonitSouthsmosElementItem" parameterType="DevPitmonitSouthsmosElementItem">
|
||||
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,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.ruoyi.quartz.mapper.DevPitmonitSouthsmosElementMapper">
|
||||
|
||||
<resultMap type="DevPitmonitSouthsmosElement" id="DevPitmonitSouthsmosElementResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfgId" />
|
||||
<result property="srvId" column="srvId" />
|
||||
<result property="maxSp" column="maxSp" />
|
||||
<result property="monitorStatus" column="monitorStatus" />
|
||||
<result property="name" column="name" />
|
||||
<result property="nameEn" column="nameEn" />
|
||||
<result property="type" column="type" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevPitmonitSouthsmosElementVo">
|
||||
select id, cfgId, srvId, maxSp, monitorStatus, name, nameEn, type, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_element
|
||||
</sql>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosElementList" parameterType="DevPitmonitSouthsmosElement" resultMap="DevPitmonitSouthsmosElementResult">
|
||||
<include refid="selectDevPitmonitSouthsmosElementVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
|
||||
<if test="srvId != null "> and srvId = #{srvId}</if>
|
||||
<if test="maxSp != null and maxSp != ''"> and maxSp = #{maxSp}</if>
|
||||
<if test="monitorStatus != null and monitorStatus != ''"> and monitorStatus = #{monitorStatus}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="nameEn != null and nameEn != ''"> and nameEn = #{nameEn}</if>
|
||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosElementById" parameterType="Long" resultMap="DevPitmonitSouthsmosElementResult">
|
||||
<include refid="selectDevPitmonitSouthsmosElementVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosElement" parameterType="DevPitmonitSouthsmosElement" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_pitmonit_southsmos_element
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfgId,</if>
|
||||
<if test="srvId != null">srvId,</if>
|
||||
<if test="maxSp != null">maxSp,</if>
|
||||
<if test="monitorStatus != null">monitorStatus,</if>
|
||||
<if test="name != null">name,</if>
|
||||
<if test="nameEn != null">nameEn,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="srvId != null">#{srvId},</if>
|
||||
<if test="maxSp != null">#{maxSp},</if>
|
||||
<if test="monitorStatus != null">#{monitorStatus},</if>
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="nameEn != null">#{nameEn},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevPitmonitSouthsmosElement" parameterType="DevPitmonitSouthsmosElement">
|
||||
update dev_pitmonit_southsmos_element
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfgId = #{cfgId},</if>
|
||||
<if test="srvId != null">srvId = #{srvId},</if>
|
||||
<if test="maxSp != null">maxSp = #{maxSp},</if>
|
||||
<if test="monitorStatus != null">monitorStatus = #{monitorStatus},</if>
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="nameEn != null">nameEn = #{nameEn},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevPitmonitSouthsmosElementById" parameterType="Long">
|
||||
delete from dev_pitmonit_southsmos_element where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevPitmonitSouthsmosElementByIds" parameterType="String">
|
||||
delete from dev_pitmonit_southsmos_element where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,141 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.quartz.mapper.DevPitmonitSouthsmosSurveypointMapper">
|
||||
|
||||
<resultMap type="DevPitmonitSouthsmosSurveypoint" id="DevPitmonitSouthsmosSurveypointResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfgId" />
|
||||
<result property="spId" column="spId" />
|
||||
<result property="groupId" column="groupId" />
|
||||
<result property="groupName" column="groupName" />
|
||||
<result property="meId" column="meId" />
|
||||
<result property="meName" column="meName" />
|
||||
<result property="meNameEn" column="meNameEn" />
|
||||
<result property="modifyDate" column="modifyDate" />
|
||||
<result property="name" column="name" />
|
||||
<result property="dataSource" column="dataSource" />
|
||||
<result property="createDate" column="createDate" />
|
||||
<result property="status" column="status" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevPitmonitSouthsmosSurveypointVo">
|
||||
select id, cfgId, spId, groupId, groupName, meId, meName, meNameEn, modifyDate, name, dataSource, createDate, status, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_surveypoint
|
||||
</sql>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosSurveypointList" parameterType="DevPitmonitSouthsmosSurveypoint" resultMap="DevPitmonitSouthsmosSurveypointResult">
|
||||
<include refid="selectDevPitmonitSouthsmosSurveypointVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
|
||||
<if test="spId != null "> and spId = #{spId}</if>
|
||||
<if test="groupId != null "> and groupId = #{groupId}</if>
|
||||
<if test="groupName != null and groupName != ''"> and groupName like concat('%', #{groupName}, '%')</if>
|
||||
<if test="meId != null "> and meId = #{meId}</if>
|
||||
<if test="meName != null and meName != ''"> and meName like concat('%', #{meName}, '%')</if>
|
||||
<if test="meNameEn != null and meNameEn != ''"> and meNameEn = #{meNameEn}</if>
|
||||
<if test="modifyDate != null "> and modifyDate = #{modifyDate}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="dataSource != null "> and dataSource = #{dataSource}</if>
|
||||
<if test="createDate != null "> and createDate = #{createDate}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosSurveypointById" parameterType="Long" resultMap="DevPitmonitSouthsmosSurveypointResult">
|
||||
<include refid="selectDevPitmonitSouthsmosSurveypointVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosSurveypoint" parameterType="DevPitmonitSouthsmosSurveypoint" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_pitmonit_southsmos_surveypoint
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfgId,</if>
|
||||
<if test="spId != null">spId,</if>
|
||||
<if test="groupId != null">groupId,</if>
|
||||
<if test="groupName != null">groupName,</if>
|
||||
<if test="meId != null">meId,</if>
|
||||
<if test="meName != null">meName,</if>
|
||||
<if test="meNameEn != null">meNameEn,</if>
|
||||
<if test="modifyDate != null">modifyDate,</if>
|
||||
<if test="name != null">name,</if>
|
||||
<if test="dataSource != null">dataSource,</if>
|
||||
<if test="createDate != null">createDate,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="spId != null">#{spId},</if>
|
||||
<if test="groupId != null">#{groupId},</if>
|
||||
<if test="groupName != null">#{groupName},</if>
|
||||
<if test="meId != null">#{meId},</if>
|
||||
<if test="meName != null">#{meName},</if>
|
||||
<if test="meNameEn != null">#{meNameEn},</if>
|
||||
<if test="modifyDate != null">#{modifyDate},</if>
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="dataSource != null">#{dataSource},</if>
|
||||
<if test="createDate != null">#{createDate},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevPitmonitSouthsmosSurveypoint" parameterType="DevPitmonitSouthsmosSurveypoint">
|
||||
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="dataSource != null">dataSource = #{dataSource},</if>
|
||||
<if test="createDate != null">createDate = #{createDate},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevPitmonitSouthsmosSurveypointById" parameterType="Long">
|
||||
delete from dev_pitmonit_southsmos_surveypoint where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevPitmonitSouthsmosSurveypointByIds" parameterType="String">
|
||||
delete from dev_pitmonit_southsmos_surveypoint where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,151 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.quartz.mapper.DevPitmonitSouthsmosThresholdMapper">
|
||||
|
||||
<resultMap type="DevPitmonitSouthsmosThreshold" id="DevPitmonitSouthsmosThresholdResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfgId" />
|
||||
<result property="srvId" column="srvId" />
|
||||
<result property="alarmInfo" column="alarmInfo" />
|
||||
<result property="alarmName" column="alarmName" />
|
||||
<result property="intervalA" column="intervalA" />
|
||||
<result property="intervalB" column="intervalB" />
|
||||
<result property="level" column="level" />
|
||||
<result property="monitorElementId" column="monitorElementId" />
|
||||
<result property="monitorItemId" column="monitorItemId" />
|
||||
<result property="monitorItemName" column="monitorItemName" />
|
||||
<result property="tgId" column="tgId" />
|
||||
<result property="threshold" column="threshold" />
|
||||
<result property="type" column="type" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevPitmonitSouthsmosThresholdVo">
|
||||
select id, cfgId, srvId, alarmInfo, alarmName, intervalA, intervalB, level, monitorElementId, monitorItemId, monitorItemName, tgId, threshold, type, unit, state, remark, is_del, create_by, create_time, update_by, update_time from dev_pitmonit_southsmos_threshold
|
||||
</sql>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosThresholdList" parameterType="DevPitmonitSouthsmosThreshold" resultMap="DevPitmonitSouthsmosThresholdResult">
|
||||
<include refid="selectDevPitmonitSouthsmosThresholdVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
|
||||
<if test="srvId != null "> and srvId = #{srvId}</if>
|
||||
<if test="alarmInfo != null and alarmInfo != ''"> and alarmInfo = #{alarmInfo}</if>
|
||||
<if test="alarmName != null and alarmName != ''"> and alarmName like concat('%', #{alarmName}, '%')</if>
|
||||
<if test="intervalA != null "> and intervalA = #{intervalA}</if>
|
||||
<if test="intervalB != null "> and intervalB = #{intervalB}</if>
|
||||
<if test="level != null "> and level = #{level}</if>
|
||||
<if test="monitorElementId != null "> and monitorElementId = #{monitorElementId}</if>
|
||||
<if test="monitorItemId != null "> and monitorItemId = #{monitorItemId}</if>
|
||||
<if test="monitorItemName != null and monitorItemName != ''"> and monitorItemName like concat('%', #{monitorItemName}, '%')</if>
|
||||
<if test="tgId != null "> and tgId = #{tgId}</if>
|
||||
<if test="threshold != null and threshold != ''"> and threshold = #{threshold}</if>
|
||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDevPitmonitSouthsmosThresholdById" parameterType="Long" resultMap="DevPitmonitSouthsmosThresholdResult">
|
||||
<include refid="selectDevPitmonitSouthsmosThresholdVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevPitmonitSouthsmosThreshold" parameterType="DevPitmonitSouthsmosThreshold" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_pitmonit_southsmos_threshold
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfgId,</if>
|
||||
<if test="srvId != null">srvId,</if>
|
||||
<if test="alarmInfo != null">alarmInfo,</if>
|
||||
<if test="alarmName != null">alarmName,</if>
|
||||
<if test="intervalA != null">intervalA,</if>
|
||||
<if test="intervalB != null">intervalB,</if>
|
||||
<if test="level != null">level,</if>
|
||||
<if test="monitorElementId != null">monitorElementId,</if>
|
||||
<if test="monitorItemId != null">monitorItemId,</if>
|
||||
<if test="monitorItemName != null">monitorItemName,</if>
|
||||
<if test="tgId != null">tgId,</if>
|
||||
<if test="threshold != null">threshold,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="srvId != null">#{srvId},</if>
|
||||
<if test="alarmInfo != null">#{alarmInfo},</if>
|
||||
<if test="alarmName != null">#{alarmName},</if>
|
||||
<if test="intervalA != null">#{intervalA},</if>
|
||||
<if test="intervalB != null">#{intervalB},</if>
|
||||
<if test="level != null">#{level},</if>
|
||||
<if test="monitorElementId != null">#{monitorElementId},</if>
|
||||
<if test="monitorItemId != null">#{monitorItemId},</if>
|
||||
<if test="monitorItemName != null">#{monitorItemName},</if>
|
||||
<if test="tgId != null">#{tgId},</if>
|
||||
<if test="threshold != null">#{threshold},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevPitmonitSouthsmosThreshold" parameterType="DevPitmonitSouthsmosThreshold">
|
||||
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,106 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.quartz.mapper.SurProjectPitMonitCfgMapper">
|
||||
|
||||
<resultMap type="SurProjectPitMonitCfg" id="SurProjectPitMonitCfgResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="subDeptId" column="sub_dept_id" />
|
||||
<result property="vendorCode" column="vendor_code" />
|
||||
<result property="vendorParamter" column="vendor_paramter" />
|
||||
<result property="enabled" column="enabled" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSurProjectPitMonitCfgVo">
|
||||
select id, project_id, sub_dept_id, vendor_code, vendor_paramter, enabled, state, remark, is_del, create_by, create_time, update_by, update_time from sur_project_pit_monit_cfg
|
||||
</sql>
|
||||
|
||||
<select id="selectSurProjectPitMonitCfgList" parameterType="SurProjectPitMonitCfg" resultMap="SurProjectPitMonitCfgResult">
|
||||
<include refid="selectSurProjectPitMonitCfgVo"/>
|
||||
<where>
|
||||
<if test="projectId != null "> and project_id = #{projectId}</if>
|
||||
<if test="subDeptId != null "> and sub_dept_id = #{subDeptId}</if>
|
||||
<if test="vendorCode != null and vendorCode != ''"> and vendor_code = #{vendorCode}</if>
|
||||
<if test="vendorParamter != null and vendorParamter != ''"> and vendor_paramter = #{vendorParamter}</if>
|
||||
<if test="enabled != null "> and enabled = #{enabled}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSurProjectPitMonitCfgById" parameterType="Long" resultMap="SurProjectPitMonitCfgResult">
|
||||
<include refid="selectSurProjectPitMonitCfgVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSurProjectPitMonitCfg" parameterType="SurProjectPitMonitCfg" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sur_project_pit_monit_cfg
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="subDeptId != null">sub_dept_id,</if>
|
||||
<if test="vendorCode != null">vendor_code,</if>
|
||||
<if test="vendorParamter != null">vendor_paramter,</if>
|
||||
<if test="enabled != null">enabled,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="subDeptId != null">#{subDeptId},</if>
|
||||
<if test="vendorCode != null">#{vendorCode},</if>
|
||||
<if test="vendorParamter != null">#{vendorParamter},</if>
|
||||
<if test="enabled != null">#{enabled},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSurProjectPitMonitCfg" parameterType="SurProjectPitMonitCfg">
|
||||
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>
|
Loading…
Reference in New Issue