diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosData.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosData.java index 41a70f74..9d4590ad 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosData.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosData.java @@ -1,5 +1,6 @@ package com.yanzhu.device.domain; +import com.alibaba.fastjson2.JSONObject; import com.fasterxml.jackson.annotation.JsonFormat; import com.yanzhu.common.core.annotation.Excel; import com.yanzhu.common.core.web.domain.BaseEntity; @@ -305,4 +306,22 @@ public class PitmonitSouthsmosData extends BaseEntity .append("updateTime", getUpdateTime()) .toString(); } + + 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 convertToPresureWallsideSoil(JSONObject jsonObject) { + } + //地下水位 + public void convertToWaterLevel(JSONObject jsonObject) { + } } diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosDevice.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosDevice.java index 06b87676..7ec54beb 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosDevice.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosDevice.java @@ -6,6 +6,7 @@ import com.yanzhu.common.core.web.domain.BaseEntity; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; +import java.util.ArrayList; import java.util.Date; import java.util.List; @@ -128,6 +129,16 @@ public class PitmonitSouthsmosDevice extends BaseEntity private String prjName; private String deptName; + private List spDevices=new ArrayList<>(); + + public List getSpDevices() { + return spDevices; + } + + public void setSpDevices(List spDevices) { + this.spDevices = spDevices; + } + private List surveypoints; public List getSurveypoints() { diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosElement.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosElement.java index 476eeaf5..9ac6da1e 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosElement.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/domain/PitmonitSouthsmosElement.java @@ -5,6 +5,7 @@ import com.yanzhu.common.core.web.domain.BaseEntity; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; +import java.util.ArrayList; import java.util.List; /** @@ -151,13 +152,23 @@ public class PitmonitSouthsmosElement extends BaseEntity private String prjName; private String deptName; - private List children; + private List items=new ArrayList<>(); - public List getChildren() { + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + private List children; + + public List getChildren() { return children; } - public void setChildren(List children) { + public void setChildren(List children) { this.children = children; } diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosAlarmMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosAlarmMapper.java index 4032072b..c71f2397 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosAlarmMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosAlarmMapper.java @@ -20,6 +20,14 @@ public interface PitmonitSouthsmosAlarmMapper */ public PitmonitSouthsmosAlarm selectDevPitmonitSouthsmosAlarmById(Long id); + /** + * 查询报警信息 + * + * @param id 报警信息主键 + * @return 报警信息 + */ + public PitmonitSouthsmosAlarm selectDevPitmonitSouthsmosAlarmBySrvId(Long id); + /** * 查询报警信息列表 * diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDataMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDataMapper.java index ae2ca816..e71a87ea 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDataMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDataMapper.java @@ -21,6 +21,14 @@ public interface PitmonitSouthsmosDataMapper */ public PitmonitSouthsmosData selectDevPitmonitSouthsmosDataById(Long id); + /** + * 查询测点数据 + * + * @param dataId 测点数据主键 + * @return 测点数据 + */ + public PitmonitSouthsmosData selectDevPitmonitSouthsmosAlarmByDataId(Long dataId); + /** * 查询测点数据列表 * diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDevSpMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDevSpMapper.java index 0d73a379..ca9538c8 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDevSpMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDevSpMapper.java @@ -1,6 +1,7 @@ package com.yanzhu.device.mapper; import com.yanzhu.device.domain.PitmonitSouthsmosDevSp; +import org.apache.ibatis.annotations.Param; import java.util.List; @@ -20,6 +21,15 @@ public interface PitmonitSouthsmosDevSpMapper */ public PitmonitSouthsmosDevSp selectDevPitmonitSouthsmosDevSpById(Long id); + /** + * 查询设测点关系 + * + * @param devId 设测点关系主键 + * @param spId 设测点关系主键 + * @return 设测点关系 + */ + public PitmonitSouthsmosDevSp selectDevPitmonitSouthsmosDevSpByParams(@Param("devId") Long devId, @Param("devId") Long spId); + /** * 查询设测点关系列表 * diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDeviceMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDeviceMapper.java index ff3fc16f..ed67def4 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDeviceMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosDeviceMapper.java @@ -1,6 +1,7 @@ package com.yanzhu.device.mapper; import com.yanzhu.device.domain.PitmonitSouthsmosDevice; +import org.apache.ibatis.annotations.Param; import java.util.List; @@ -20,6 +21,15 @@ public interface PitmonitSouthsmosDeviceMapper */ public PitmonitSouthsmosDevice selectDevPitmonitSouthsmosDeviceById(Long id); + /** + * 查询设备管理 + * + * @param cfgId 设备管理主键 + * @param devId 设备管理主键 + * @return 设备管理 + */ + public PitmonitSouthsmosDevice selectDevPitmonitSouthsmosDeviceByParams(@Param("cfgId") Long cfgId, @Param("devId") Long devId); + /** * 查询设备管理列表 * diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosElementItemMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosElementItemMapper.java index 5962cfc3..defd21f7 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosElementItemMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosElementItemMapper.java @@ -20,6 +20,14 @@ public interface PitmonitSouthsmosElementItemMapper */ public PitmonitSouthsmosElementItem selectDevPitmonitSouthsmosElementItemById(Long id); + /** + * 查询测项明细 + * + * @param srvId 测项明细主键 + * @return 测项明细 + */ + public PitmonitSouthsmosElementItem selectDevPitmonitSouthsmosElementItemBySrvId(Long srvId); + /** * 查询测项明细列表 * diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosElementMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosElementMapper.java index ef62d3b5..7b12569c 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosElementMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosElementMapper.java @@ -1,6 +1,7 @@ package com.yanzhu.device.mapper; import com.yanzhu.device.domain.PitmonitSouthsmosElement; +import org.apache.ibatis.annotations.Param; import java.util.List; @@ -20,6 +21,14 @@ public interface PitmonitSouthsmosElementMapper */ public PitmonitSouthsmosElement selectDevPitmonitSouthsmosElementById(Long id); + /** + * 查询监测项管理 + * + * @param cfgId 监测项管理主键 + * @return 监测项管理 + */ + public PitmonitSouthsmosElement selectDevPitmonitSouthsmosElementByParams(@Param("cfgId") Long cfgId, @Param("srvId") Long srvId); + /** * 查询监测项管理列表 * diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosSurveypointMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosSurveypointMapper.java index 277f8716..a4638225 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosSurveypointMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosSurveypointMapper.java @@ -1,6 +1,7 @@ package com.yanzhu.device.mapper; import com.yanzhu.device.domain.PitmonitSouthsmosSurveypoint; +import org.apache.ibatis.annotations.Param; import java.util.List; @@ -20,6 +21,15 @@ public interface PitmonitSouthsmosSurveypointMapper */ public PitmonitSouthsmosSurveypoint selectDevPitmonitSouthsmosSurveypointById(Long id); + /** + * 查询测点管理 + * + * @param cfgId 测点管理主键 + * @param spId 测点管理主键 + * @return 测点管理 + */ + public PitmonitSouthsmosSurveypoint selectDevPitmonitSouthsmosSurveypointByParams(@Param("cfgId") Long cfgId, @Param("spId") Long spId); + /** * 查询测点管理列表 * diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosThresholdMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosThresholdMapper.java index 8b03ac08..700f8c2c 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosThresholdMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/device/mapper/PitmonitSouthsmosThresholdMapper.java @@ -1,6 +1,7 @@ package com.yanzhu.device.mapper; import com.yanzhu.device.domain.PitmonitSouthsmosThreshold; +import org.apache.ibatis.annotations.Param; import java.util.List; @@ -20,6 +21,15 @@ public interface PitmonitSouthsmosThresholdMapper */ public PitmonitSouthsmosThreshold selectDevPitmonitSouthsmosThresholdById(Long id); + /** + * 查询报警阈值 + * + * @param cfgId 报警阈值主键 + * @param srvId 报警阈值主键 + * @return 报警阈值 + */ + public PitmonitSouthsmosThreshold selectDevPitmonitSouthsmosThresholdByParams(@Param("cfgId") Long cfgId, @Param("srvId") Long srvId); + /** * 查询报警阈值列表 * diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosAlarmMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosAlarmMapper.xml index ebb0a7aa..b2b39bf7 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosAlarmMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosAlarmMapper.xml @@ -92,6 +92,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} + + insert into dev_pitmonit_southsmos_alarm diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDataMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDataMapper.xml index 79e13554..67f1638b 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDataMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDataMapper.xml @@ -70,6 +70,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} + + insert into dev_pitmonit_southsmos_data diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDevSpMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDevSpMapper.xml index 289527d2..bef86a25 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDevSpMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDevSpMapper.xml @@ -37,7 +37,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - + + + insert into dev_pitmonit_southsmos_dev_sp diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDeviceMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDeviceMapper.xml index 2ec08f90..e63c5a8e 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDeviceMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDeviceMapper.xml @@ -97,7 +97,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - + + + insert into dev_pitmonit_southsmos_device diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosElementItemMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosElementItemMapper.xml index 8fd5825a..8306d4ef 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosElementItemMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosElementItemMapper.xml @@ -49,7 +49,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - + + + insert into dev_pitmonit_southsmos_element_item diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosElementMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosElementMapper.xml index 708f5336..5b1280ac 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosElementMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosElementMapper.xml @@ -65,7 +65,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - + + + insert into dev_pitmonit_southsmos_element diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosSurveypointMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosSurveypointMapper.xml index 5f75a2e5..3eb8298c 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosSurveypointMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosSurveypointMapper.xml @@ -64,7 +64,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - + + + insert into dev_pitmonit_southsmos_surveypoint diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosThresholdMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosThresholdMapper.xml index 6ae7e6ac..95d4bc8d 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosThresholdMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosThresholdMapper.xml @@ -69,7 +69,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - + + + insert into dev_pitmonit_southsmos_threshold diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/ProjectPitMonitCfgMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/ProjectPitMonitCfgMapper.xml index baeb9618..24272ff5 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/ProjectPitMonitCfgMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/ProjectPitMonitCfgMapper.xml @@ -23,15 +23,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select id, project_id, sub_dept_id, vendor_code, vendor_paramter, enabled, state, remark, is_del, create_by, create_time, update_by, update_time,projectName,deptName from ( - select a.*,p.projectName,b.unitName as deptName from sur_project_pit_monit_cfg a JOIN sur_project p on a.project_id =p.id join sur_project_unit_info b on a.sub_dept_id=b.unitId and a.project_id=b.projectId ) sur_project_pit_monit_cfg -