Commit 467f0cc9 authored by wuqinghua's avatar wuqinghua

2022-2-26 吴卿华

parent 2e36366e
......@@ -38,7 +38,7 @@ public class PipeInterfaceController {
//判断如果名称一样就一组
if (pipeDatesGroup.get(i).getPowerCompany().equals(pipeDates.get(n).getPowerCompany())){
// //设置分组类型
pipeDates.get(n).setCompanyType(Integer.parseInt(pipeDates.get(n).getPipeId()));
// pipeDates.get(n).setCompanyType(Integer.parseInt(pipeDates.get(n).getPipeId()));
pipeDates.get(n).setIconType(1);
}
}
......@@ -108,13 +108,15 @@ public class PipeInterfaceController {
*/
@RequestBody
@RequestMapping("/selectTdetectorUser")
public List<TdetectorUserData> selectTdetectorUser(){
public TenterpriseInfoDataList selectTdetectorUser(){
TenterpriseInfoDataList tenterpriseInfoDataList=new TenterpriseInfoDataList();
//燃气用户信息查询方法
List<TdetectorUserData> tdetectorUserData = iPipeInterfaceService.selectTdetectorUser();
for (int i=0;i<tdetectorUserData.size();i++){
tdetectorUserData.get(i).setIconType(6);
}
return tdetectorUserData;
tenterpriseInfoDataList.setData(tdetectorUserData);
return tenterpriseInfoDataList;
}
/**
......@@ -133,13 +135,15 @@ public class PipeInterfaceController {
*/
@RequestBody
@RequestMapping("/selectvalveData")
public List<PipeDate> selectvalveData(){
public DeviceDataList selectvalveData(){
DeviceDataList deviceDataList=new DeviceDataList();
//查询阀门井数据
List<PipeDate> pipeDates = iPipeInterfaceService.selectvalveData();
List<DeviceData> pipeDates = iPipeInterfaceService.selectvalveData();
for (int i=0;i<pipeDates.size();i++){
pipeDates.get(i).setIconType(3);
}
return pipeDates;
deviceDataList.setData(pipeDates);
return deviceDataList;
}
}
package com.zehong.system.domain;
import java.util.List;
public class DeviceDataList {
private List<DeviceData> data;
public List<DeviceData> getData() {
return data;
}
public void setData(List<DeviceData> data) {
this.data = data;
}
@Override
public String toString() {
return "DeviceDataList{" +
"data=" + data +
'}';
}
}
......@@ -43,6 +43,8 @@ public class PipeDate extends BaseEntity {
private int iconType;
public String getPipeId() {
return pipeId;
}
......
......@@ -25,11 +25,11 @@ public class TPipeInfo extends BaseEntity
/** 管径 */
@Excel(name = "管径")
private BigDecimal pipeDiameter;
private String pipeDiameter;
/** 压力 */
@Excel(name = "压力")
private BigDecimal pipePressure;
private String pipePressure;
/** 材质 */
@Excel(name = "材质")
......@@ -41,7 +41,7 @@ public class TPipeInfo extends BaseEntity
/** 埋深 */
@Excel(name = "埋深")
private BigDecimal buriedDepth;
private String buriedDepth;
/** 走向 */
@Excel(name = "走向")
......@@ -103,55 +103,50 @@ public class TPipeInfo extends BaseEntity
this.pipeLength = pipeLength;
}
public BigDecimal getPipeLength()
{
public BigDecimal getPipeLength() {
return pipeLength;
}
public void setPipeDiameter(BigDecimal pipeDiameter)
{
this.pipeDiameter = pipeDiameter;
}
public BigDecimal getPipeDiameter()
{
public String getPipeDiameter() {
return pipeDiameter;
}
public void setPipePressure(BigDecimal pipePressure)
{
this.pipePressure = pipePressure;
public void setPipeDiameter(String pipeDiameter) {
this.pipeDiameter = pipeDiameter;
}
public BigDecimal getPipePressure()
{
public String getPipePressure() {
return pipePressure;
}
public void setPipeMaterial(String pipeMaterial)
{
this.pipeMaterial = pipeMaterial;
public void setPipePressure(String pipePressure) {
this.pipePressure = pipePressure;
}
public String getPipeMaterial()
{
public String getPipeMaterial() {
return pipeMaterial;
}
public void setPipeAddr(String pipeAddr)
{
this.pipeAddr = pipeAddr;
public void setPipeMaterial(String pipeMaterial) {
this.pipeMaterial = pipeMaterial;
}
public String getPipeAddr()
{
public String getPipeAddr() {
return pipeAddr;
}
public void setBuriedDepth(BigDecimal buriedDepth)
{
this.buriedDepth = buriedDepth;
public void setPipeAddr(String pipeAddr) {
this.pipeAddr = pipeAddr;
}
public BigDecimal getBuriedDepth()
{
public String getBuriedDepth() {
return buriedDepth;
}
public void setBuriedDepth(String buriedDepth) {
this.buriedDepth = buriedDepth;
}
public void setPipeTrend(String pipeTrend)
{
this.pipeTrend = pipeTrend;
......
......@@ -28,6 +28,16 @@ public class TSiteStationInfoData {
private int iconType;
private String companyType;
public String getCompanyType() {
return companyType;
}
public void setCompanyType(String companyType) {
this.companyType = companyType;
}
public int getIconType() {
return iconType;
}
......@@ -139,6 +149,7 @@ public class TSiteStationInfoData {
", powerCompany='" + powerCompany + '\'' +
", pressureFlows=" + pressureFlows +
", iconType=" + iconType +
", companyType='" + companyType + '\'' +
'}';
}
}
package com.zehong.system.domain;
import java.util.List;
public class TenterpriseInfoDataList {
private List<TdetectorUserData> data;
public List<TdetectorUserData> getData() {
return data;
}
public void setData(List<TdetectorUserData> data) {
this.data = data;
}
@Override
public String toString() {
return "TenterpriseInfoDataList{" +
"data=" + data +
'}';
}
}
......@@ -71,5 +71,5 @@ public interface PipeInterfaceMapper {
* 查询阀门井数据
* @return
*/
List<PipeDate> selectvalveData();
List<DeviceData> selectvalveData();
}
......@@ -68,5 +68,5 @@ public interface IPipeInterfaceService {
* 查询阀门井数据
* @return
*/
List<PipeDate> selectvalveData();
List<DeviceData> selectvalveData();
}
......@@ -112,8 +112,8 @@ public class PipeInterfaceServiceImpl implements IPipeInterfaceService {
* @return
*/
@Override
public List<PipeDate> selectvalveData() {
List<PipeDate> pipeDates = pipeInterfaceMapper.selectvalveData();
public List<DeviceData> selectvalveData() {
List<DeviceData> pipeDates = pipeInterfaceMapper.selectvalveData();
return pipeDates;
}
}
......@@ -15,6 +15,7 @@
<result property="path" column="coordinates" />
<result property="buildCompany" column="build_unit" />
<result property="powerCompany" column="beyond_enterprise_name" />
<result property="companyType" column="beyond_enterprise_id" />
</resultMap>
<!--调压箱-->
......@@ -28,6 +29,7 @@
<result property="latitude" column="latitude" />
<result property="companyType" column="device_id" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="companyType" column="beyond_enterprise_id" />
</resultMap>
<!--下级设备数据-->
......@@ -48,6 +50,7 @@
<result property="buildyear" column="create_time" />
<result property="buildCompany" column="build_unit" />
<result property="powerCompany" column="beyond_enterprise_name" />
<result property="companyType" column="beyond_enterprise_id" />
</resultMap>
<!--监控数据-->
......@@ -60,6 +63,7 @@
<result property="latitude" column="latitude" />
<result property="videoAddress" column="video_address" />
<result property="type" column="type" />
<result property="companyType" column="beyond_enterprise_id" />
</resultMap>
<!--燃气用户数据-->
......@@ -70,7 +74,6 @@
<result property="latitude" column="latitude" />
<result property="phone" column="phone" />
<result property="address" column="address" />
<result property="companyType" column="user_id" />
</resultMap>
<!--查询企业名称id-->
......@@ -81,20 +84,20 @@
<!--查询管道数据列表-->
<select id="selectPipeData" parameterType="PipeDate" resultMap="PipeDateResult">
select pipe_id,pipe_diameter,pipe_material,buried_depth,pipe_trend,build_date,pipe_addr,coordinates,remarks,build_unit,beyond_enterprise_name from t_pipe_info
select beyond_enterprise_id,pipe_id,pipe_diameter,pipe_material,buried_depth,pipe_trend,build_date,pipe_addr,coordinates,remarks,build_unit,beyond_enterprise_name from t_pipe_info
where is_del='0'
</select>
<!--获取分组数据-->
<select id="selectGroupPipeData" parameterType="PipeDate" resultMap="PipeDateResult">
select pipe_id,pipe_diameter,pipe_material,buried_depth,pipe_trend,build_date,pipe_addr,coordinates,remarks,build_unit,beyond_enterprise_name from t_pipe_info
select beyond_enterprise_id,pipe_id,pipe_diameter,pipe_material,buried_depth,pipe_trend,build_date,pipe_addr,coordinates,remarks,build_unit,beyond_enterprise_name from t_pipe_info
where is_del='0'
group by beyond_enterprise_name
</select>
<!--调压箱数据查询方法-->
<select id="selectDeviceData" resultMap="DeviceDateResult">
select device_id,device_type,device_name,device_code,device_addr,longitude,latitude,beyond_enterprise_name from t_device_info
select beyond_enterprise_id,device_id,device_type,device_name,device_code,device_addr,longitude,latitude,beyond_enterprise_name from t_device_info
where device_type='2' and is_del='0'
</select>
......@@ -106,7 +109,7 @@
<!--场站信息查询方法-->
<select id="selectTSiteStationInfoData" resultMap="TSiteStationInfoDataResult">
select site_station_id,site_station_name,site_station_type,longitude,latitude,create_time,build_unit,beyond_enterprise_name
select beyond_enterprise_id,site_station_id,site_station_name,site_station_type,longitude,latitude,create_time,build_unit,beyond_enterprise_name
from t_site_station_info where is_del='0'
</select>
......@@ -118,13 +121,13 @@
<!--监控信息查询-->
<select id="selectTvideoManagerData" resultMap="TvideoManagerDataResult">
select video_manager_id,video_name,resource_id,longitude,latitude,video_address,type from t_video_manager
select beyond_enterprise_id,video_manager_id,video_name,resource_id,longitude,latitude,video_address,type from t_video_manager
where is_del='0'
</select>
<!--燃气用户信息查询接口-->
<select id="selectTdetectorUser" resultMap="TdetectorUserDataResult">
select nick_name,user_type,longitude,latitude,phone,address,user_id from t_detector_user
select nick_name,user_type,longitude,latitude,phone,address from t_detector_user
where is_del='0'
</select>
......@@ -135,7 +138,7 @@
<!--查询阀门井数据-->
<select id="selectvalveData" resultMap="DeviceDateResult">
select device_id,device_type,device_name,device_code,device_addr,longitude,latitude,beyond_enterprise_name from t_device_info
select beyond_enterprise_id,device_id,device_type,device_name,device_code,device_addr,longitude,latitude,beyond_enterprise_name from t_device_info
where device_type='1' and is_del='0'
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment