Commit 467f0cc9 authored by wuqinghua's avatar wuqinghua

2022-2-26 吴卿华

parent 2e36366e
...@@ -38,7 +38,7 @@ public class PipeInterfaceController { ...@@ -38,7 +38,7 @@ public class PipeInterfaceController {
//判断如果名称一样就一组 //判断如果名称一样就一组
if (pipeDatesGroup.get(i).getPowerCompany().equals(pipeDates.get(n).getPowerCompany())){ 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); pipeDates.get(n).setIconType(1);
} }
} }
...@@ -108,13 +108,15 @@ public class PipeInterfaceController { ...@@ -108,13 +108,15 @@ public class PipeInterfaceController {
*/ */
@RequestBody @RequestBody
@RequestMapping("/selectTdetectorUser") @RequestMapping("/selectTdetectorUser")
public List<TdetectorUserData> selectTdetectorUser(){ public TenterpriseInfoDataList selectTdetectorUser(){
TenterpriseInfoDataList tenterpriseInfoDataList=new TenterpriseInfoDataList();
//燃气用户信息查询方法 //燃气用户信息查询方法
List<TdetectorUserData> tdetectorUserData = iPipeInterfaceService.selectTdetectorUser(); List<TdetectorUserData> tdetectorUserData = iPipeInterfaceService.selectTdetectorUser();
for (int i=0;i<tdetectorUserData.size();i++){ for (int i=0;i<tdetectorUserData.size();i++){
tdetectorUserData.get(i).setIconType(6); tdetectorUserData.get(i).setIconType(6);
} }
return tdetectorUserData; tenterpriseInfoDataList.setData(tdetectorUserData);
return tenterpriseInfoDataList;
} }
/** /**
...@@ -133,13 +135,15 @@ public class PipeInterfaceController { ...@@ -133,13 +135,15 @@ public class PipeInterfaceController {
*/ */
@RequestBody @RequestBody
@RequestMapping("/selectvalveData") @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++){ for (int i=0;i<pipeDates.size();i++){
pipeDates.get(i).setIconType(3); 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 { ...@@ -43,6 +43,8 @@ public class PipeDate extends BaseEntity {
private int iconType; private int iconType;
public String getPipeId() { public String getPipeId() {
return pipeId; return pipeId;
} }
......
...@@ -25,11 +25,11 @@ public class TPipeInfo extends BaseEntity ...@@ -25,11 +25,11 @@ public class TPipeInfo extends BaseEntity
/** 管径 */ /** 管径 */
@Excel(name = "管径") @Excel(name = "管径")
private BigDecimal pipeDiameter; private String pipeDiameter;
/** 压力 */ /** 压力 */
@Excel(name = "压力") @Excel(name = "压力")
private BigDecimal pipePressure; private String pipePressure;
/** 材质 */ /** 材质 */
@Excel(name = "材质") @Excel(name = "材质")
...@@ -41,7 +41,7 @@ public class TPipeInfo extends BaseEntity ...@@ -41,7 +41,7 @@ public class TPipeInfo extends BaseEntity
/** 埋深 */ /** 埋深 */
@Excel(name = "埋深") @Excel(name = "埋深")
private BigDecimal buriedDepth; private String buriedDepth;
/** 走向 */ /** 走向 */
@Excel(name = "走向") @Excel(name = "走向")
...@@ -103,55 +103,50 @@ public class TPipeInfo extends BaseEntity ...@@ -103,55 +103,50 @@ public class TPipeInfo extends BaseEntity
this.pipeLength = pipeLength; this.pipeLength = pipeLength;
} }
public BigDecimal getPipeLength() public BigDecimal getPipeLength() {
{
return pipeLength; return pipeLength;
} }
public void setPipeDiameter(BigDecimal pipeDiameter)
{
this.pipeDiameter = pipeDiameter;
}
public BigDecimal getPipeDiameter() public String getPipeDiameter() {
{
return pipeDiameter; return pipeDiameter;
} }
public void setPipePressure(BigDecimal pipePressure)
{ public void setPipeDiameter(String pipeDiameter) {
this.pipePressure = pipePressure; this.pipeDiameter = pipeDiameter;
} }
public BigDecimal getPipePressure() public String getPipePressure() {
{
return pipePressure; return pipePressure;
} }
public void setPipeMaterial(String pipeMaterial)
{ public void setPipePressure(String pipePressure) {
this.pipeMaterial = pipeMaterial; this.pipePressure = pipePressure;
} }
public String getPipeMaterial() public String getPipeMaterial() {
{
return pipeMaterial; return pipeMaterial;
} }
public void setPipeAddr(String pipeAddr)
{ public void setPipeMaterial(String pipeMaterial) {
this.pipeAddr = pipeAddr; this.pipeMaterial = pipeMaterial;
} }
public String getPipeAddr() public String getPipeAddr() {
{
return pipeAddr; return pipeAddr;
} }
public void setBuriedDepth(BigDecimal buriedDepth)
{ public void setPipeAddr(String pipeAddr) {
this.buriedDepth = buriedDepth; this.pipeAddr = pipeAddr;
} }
public BigDecimal getBuriedDepth() public String getBuriedDepth() {
{
return buriedDepth; return buriedDepth;
} }
public void setBuriedDepth(String buriedDepth) {
this.buriedDepth = buriedDepth;
}
public void setPipeTrend(String pipeTrend) public void setPipeTrend(String pipeTrend)
{ {
this.pipeTrend = pipeTrend; this.pipeTrend = pipeTrend;
......
...@@ -28,6 +28,16 @@ public class TSiteStationInfoData { ...@@ -28,6 +28,16 @@ public class TSiteStationInfoData {
private int iconType; private int iconType;
private String companyType;
public String getCompanyType() {
return companyType;
}
public void setCompanyType(String companyType) {
this.companyType = companyType;
}
public int getIconType() { public int getIconType() {
return iconType; return iconType;
} }
...@@ -139,6 +149,7 @@ public class TSiteStationInfoData { ...@@ -139,6 +149,7 @@ public class TSiteStationInfoData {
", powerCompany='" + powerCompany + '\'' + ", powerCompany='" + powerCompany + '\'' +
", pressureFlows=" + pressureFlows + ", pressureFlows=" + pressureFlows +
", iconType=" + iconType + ", 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 { ...@@ -71,5 +71,5 @@ public interface PipeInterfaceMapper {
* 查询阀门井数据 * 查询阀门井数据
* @return * @return
*/ */
List<PipeDate> selectvalveData(); List<DeviceData> selectvalveData();
} }
...@@ -68,5 +68,5 @@ public interface IPipeInterfaceService { ...@@ -68,5 +68,5 @@ public interface IPipeInterfaceService {
* 查询阀门井数据 * 查询阀门井数据
* @return * @return
*/ */
List<PipeDate> selectvalveData(); List<DeviceData> selectvalveData();
} }
...@@ -112,8 +112,8 @@ public class PipeInterfaceServiceImpl implements IPipeInterfaceService { ...@@ -112,8 +112,8 @@ public class PipeInterfaceServiceImpl implements IPipeInterfaceService {
* @return * @return
*/ */
@Override @Override
public List<PipeDate> selectvalveData() { public List<DeviceData> selectvalveData() {
List<PipeDate> pipeDates = pipeInterfaceMapper.selectvalveData(); List<DeviceData> pipeDates = pipeInterfaceMapper.selectvalveData();
return pipeDates; return pipeDates;
} }
} }
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<result property="path" column="coordinates" /> <result property="path" column="coordinates" />
<result property="buildCompany" column="build_unit" /> <result property="buildCompany" column="build_unit" />
<result property="powerCompany" column="beyond_enterprise_name" /> <result property="powerCompany" column="beyond_enterprise_name" />
<result property="companyType" column="beyond_enterprise_id" />
</resultMap> </resultMap>
<!--调压箱--> <!--调压箱-->
...@@ -28,6 +29,7 @@ ...@@ -28,6 +29,7 @@
<result property="latitude" column="latitude" /> <result property="latitude" column="latitude" />
<result property="companyType" column="device_id" /> <result property="companyType" column="device_id" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" /> <result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="companyType" column="beyond_enterprise_id" />
</resultMap> </resultMap>
<!--下级设备数据--> <!--下级设备数据-->
...@@ -48,6 +50,7 @@ ...@@ -48,6 +50,7 @@
<result property="buildyear" column="create_time" /> <result property="buildyear" column="create_time" />
<result property="buildCompany" column="build_unit" /> <result property="buildCompany" column="build_unit" />
<result property="powerCompany" column="beyond_enterprise_name" /> <result property="powerCompany" column="beyond_enterprise_name" />
<result property="companyType" column="beyond_enterprise_id" />
</resultMap> </resultMap>
<!--监控数据--> <!--监控数据-->
...@@ -60,6 +63,7 @@ ...@@ -60,6 +63,7 @@
<result property="latitude" column="latitude" /> <result property="latitude" column="latitude" />
<result property="videoAddress" column="video_address" /> <result property="videoAddress" column="video_address" />
<result property="type" column="type" /> <result property="type" column="type" />
<result property="companyType" column="beyond_enterprise_id" />
</resultMap> </resultMap>
<!--燃气用户数据--> <!--燃气用户数据-->
...@@ -70,7 +74,6 @@ ...@@ -70,7 +74,6 @@
<result property="latitude" column="latitude" /> <result property="latitude" column="latitude" />
<result property="phone" column="phone" /> <result property="phone" column="phone" />
<result property="address" column="address" /> <result property="address" column="address" />
<result property="companyType" column="user_id" />
</resultMap> </resultMap>
<!--查询企业名称id--> <!--查询企业名称id-->
...@@ -81,20 +84,20 @@ ...@@ -81,20 +84,20 @@
<!--查询管道数据列表--> <!--查询管道数据列表-->
<select id="selectPipeData" parameterType="PipeDate" resultMap="PipeDateResult"> <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' where is_del='0'
</select> </select>
<!--获取分组数据--> <!--获取分组数据-->
<select id="selectGroupPipeData" parameterType="PipeDate" resultMap="PipeDateResult"> <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' where is_del='0'
group by beyond_enterprise_name group by beyond_enterprise_name
</select> </select>
<!--调压箱数据查询方法--> <!--调压箱数据查询方法-->
<select id="selectDeviceData" resultMap="DeviceDateResult"> <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' where device_type='2' and is_del='0'
</select> </select>
...@@ -106,7 +109,7 @@ ...@@ -106,7 +109,7 @@
<!--场站信息查询方法--> <!--场站信息查询方法-->
<select id="selectTSiteStationInfoData" resultMap="TSiteStationInfoDataResult"> <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' from t_site_station_info where is_del='0'
</select> </select>
...@@ -118,13 +121,13 @@ ...@@ -118,13 +121,13 @@
<!--监控信息查询--> <!--监控信息查询-->
<select id="selectTvideoManagerData" resultMap="TvideoManagerDataResult"> <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' where is_del='0'
</select> </select>
<!--燃气用户信息查询接口--> <!--燃气用户信息查询接口-->
<select id="selectTdetectorUser" resultMap="TdetectorUserDataResult"> <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' where is_del='0'
</select> </select>
...@@ -135,7 +138,7 @@ ...@@ -135,7 +138,7 @@
<!--查询阀门井数据--> <!--查询阀门井数据-->
<select id="selectvalveData" resultMap="DeviceDateResult"> <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' where device_type='1' and is_del='0'
</select> </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