Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety-progress
Commits
17ec5efc
Commit
17ec5efc
authored
Mar 18, 2022
by
wuqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2022-3-18 吴卿华
parent
39edb35e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
46 deletions
+58
-46
PipeInterfaceController.java
...ong/web/controller/supervise/PipeInterfaceController.java
+58
-46
No files found.
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/supervise/PipeInterfaceController.java
View file @
17ec5efc
...
...
@@ -54,7 +54,7 @@ public class PipeInterfaceController extends BaseController {
/**
* 调压箱数据查询接口
* 调压箱数据查询接口
使用中
* @return
*/
@RequestBody
...
...
@@ -65,22 +65,25 @@ public class PipeInterfaceController extends BaseController {
List
<
DeviceData
>
list
=
new
ArrayList
<>();
//调压箱数据查询方法
List
<
DeviceData
>
deviceData
=
iPipeInterfaceService
.
selectDeviceData
();
//查询下级全部数据方法
List
<
PressureFlow
>
pressureFlows1
=
iPipeInterfaceService
.
selectPressureFlows
(
"1"
);
// //查询下级全部数据方法
// List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlows("1");
// for (int i=0;i<deviceData.size();i++){
// boolean bo=false;
// for (int s=0;s<pressureFlows1.size();s++){
// if (pressureFlows1.get(s).getDeviceId().equals(deviceData.get(i).getDeviceId())){
// bo=true;
// break;
// }
// }
// if (bo){
// deviceData.get(i).setIconType(2);
// list.add(deviceData.get(i));
// }
// }
for
(
int
i
=
0
;
i
<
deviceData
.
size
();
i
++){
boolean
bo
=
false
;
for
(
int
s
=
0
;
s
<
pressureFlows1
.
size
();
s
++){
if
(
pressureFlows1
.
get
(
s
).
getDeviceId
().
equals
(
deviceData
.
get
(
i
).
getDeviceId
())){
bo
=
true
;
break
;
}
}
if
(
bo
){
deviceData
.
get
(
i
).
setIconType
(
2
);
list
.
add
(
deviceData
.
get
(
i
));
}
}
deviceData
.
get
(
i
).
setIconType
(
2
);
list
.
add
(
deviceData
.
get
(
i
));
}
deviceList
.
setData
(
list
);
return
deviceList
;
}
...
...
@@ -302,7 +305,7 @@ public class PipeInterfaceController extends BaseController {
/**
* 场站信息查询接口
* 场站信息查询接口
使用中
* @return
*/
@RequestBody
...
...
@@ -311,23 +314,28 @@ public class PipeInterfaceController extends BaseController {
TSiteStationInfoDataList
tSiteStationInfoDataList
=
new
TSiteStationInfoDataList
();
//场站信息查询方法
List
<
TSiteStationInfoData
>
tSiteStationInfoData
=
iPipeInterfaceService
.
selectTSiteStationInfoData
();
//查询下级全部数据方法
List
<
PressureFlow
>
pressureFlows1
=
iPipeInterfaceService
.
selectPressureFlows
(
"2"
);
List
<
TSiteStationInfoData
>
list
=
new
ArrayList
<>();
// //查询下级全部数据方法
// List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlows("2");
// for (int i=0;i<tSiteStationInfoData.size();i++){
// boolean bo=false;
// for (int s=0;s<pressureFlows1.size();s++){
// if (pressureFlows1.get(s).getDeviceId()!=null){
// if (pressureFlows1.get(s).getDeviceId().equals(tSiteStationInfoData.get(i).getSiteStationId())){
// bo=true;
// break;
// }
// }
// }
// if (bo){
// tSiteStationInfoData.get(i).setIconType(4);
// list.add(tSiteStationInfoData.get(i));
// }
// }
for
(
int
i
=
0
;
i
<
tSiteStationInfoData
.
size
();
i
++){
boolean
bo
=
false
;
for
(
int
s
=
0
;
s
<
pressureFlows1
.
size
();
s
++){
if
(
pressureFlows1
.
get
(
s
).
getDeviceId
()!=
null
){
if
(
pressureFlows1
.
get
(
s
).
getDeviceId
().
equals
(
tSiteStationInfoData
.
get
(
i
).
getSiteStationId
())){
bo
=
true
;
break
;
}
}
}
if
(
bo
){
tSiteStationInfoData
.
get
(
i
).
setIconType
(
4
);
list
.
add
(
tSiteStationInfoData
.
get
(
i
));
}
tSiteStationInfoData
.
get
(
i
).
setIconType
(
4
);
list
.
add
(
tSiteStationInfoData
.
get
(
i
));
}
tSiteStationInfoDataList
.
setData
(
list
);
return
tSiteStationInfoDataList
;
...
...
@@ -531,7 +539,7 @@ public class PipeInterfaceController extends BaseController {
/**
* 阀门数据查询接口
* 阀门数据查询接口
使用中
* @return
*/
@RequestBody
...
...
@@ -542,20 +550,24 @@ public class PipeInterfaceController extends BaseController {
List
<
DeviceData
>
list
=
new
ArrayList
<>();
//查询阀门井数据
List
<
DeviceData
>
pipeDates
=
iPipeInterfaceService
.
selectvalveData
();
//查询下级全部数据方法
List
<
PressureFlow
>
pressureFlows1
=
iPipeInterfaceService
.
selectPressureFlows
(
"1"
);
// //查询下级全部数据方法
// List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlows("1");
// for (int i=0;i<pipeDates.size();i++){
// boolean bo=false;
// for (int s=0;s<pressureFlows1.size();s++){
// if (pressureFlows1.get(s).getDeviceId().equals(pipeDates.get(i).getDeviceId())){
// bo=true;
// break;
// }
// }
// if (bo){
// pipeDates.get(i).setIconType(3);
// list.add(pipeDates.get(i));
// }
// }
for
(
int
i
=
0
;
i
<
pipeDates
.
size
();
i
++){
boolean
bo
=
false
;
for
(
int
s
=
0
;
s
<
pressureFlows1
.
size
();
s
++){
if
(
pressureFlows1
.
get
(
s
).
getDeviceId
().
equals
(
pipeDates
.
get
(
i
).
getDeviceId
())){
bo
=
true
;
break
;
}
}
if
(
bo
){
pipeDates
.
get
(
i
).
setIconType
(
3
);
list
.
add
(
pipeDates
.
get
(
i
));
}
pipeDates
.
get
(
i
).
setIconType
(
3
);
list
.
add
(
pipeDates
.
get
(
i
));
}
deviceDataList
.
setData
(
list
);
return
deviceDataList
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment