Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
67f191d9
Commit
67f191d9
authored
Feb 03, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务 14551
parent
a079205b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
21 deletions
+10
-21
BigScreenController.java
...m/yeejoin/equipmanage/controller/BigScreenController.java
+3
-5
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+6
-8
SupervisionConfigureController.java
...quipmanage/controller/SupervisionConfigureController.java
+0
-2
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+0
-4
application-dev.properties
...ystem-equip/src/main/resources/application-dev.properties
+1
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/BigScreenController.java
View file @
67f191d9
...
@@ -52,8 +52,6 @@ public class BigScreenController extends AbstractBaseController {
...
@@ -52,8 +52,6 @@ public class BigScreenController extends AbstractBaseController {
@Value
(
"${equipment.pressurepump.start}"
)
@Value
(
"${equipment.pressurepump.start}"
)
private
String
pressurePumpStart
;
private
String
pressurePumpStart
;
@Value
(
"${equipment.pressurepump.stop}"
)
private
String
pressurePumpStop
;
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"系统、消防水池、工业水池、水源总容积、消防车辆(接口弃用)"
,
notes
=
"系统、消防水池、工业水池、水源总容积、消防车辆"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"系统、消防水池、工业水池、水源总容积、消防车辆(接口弃用)"
,
notes
=
"系统、消防水池、工业水池、水源总容积、消防车辆"
)
...
@@ -116,8 +114,8 @@ public class BigScreenController extends AbstractBaseController {
...
@@ -116,8 +114,8 @@ public class BigScreenController extends AbstractBaseController {
ResponseModel
entity1
=
null
;
ResponseModel
entity1
=
null
;
ResponseModel
entity2
=
null
;
ResponseModel
entity2
=
null
;
try
{
try
{
entity1
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
startDateStr
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStart
);
entity1
=
iotFeign
.
selectList
New
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"true"
,
pressurePumpStart
);
entity2
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
startDateStr
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStop
);
entity2
=
iotFeign
.
selectList
New
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"false"
,
pressurePumpStart
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -127,7 +125,7 @@ public class BigScreenController extends AbstractBaseController {
...
@@ -127,7 +125,7 @@ public class BigScreenController extends AbstractBaseController {
String
json2
=
JSON
.
toJSONString
(
entity2
.
getResult
());
String
json2
=
JSON
.
toJSONString
(
entity2
.
getResult
());
List
<
Map
<
String
,
String
>>
listObject2
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json2
);
List
<
Map
<
String
,
String
>>
listObject2
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json2
);
listObject1
.
addAll
(
listObject2
);
listObject1
.
addAll
(
listObject2
);
List
<
Map
<
String
,
String
>>
collect
=
listObject1
.
stream
().
filter
(
t
->
(
t
.
containsKey
(
pressurePumpStart
)
&&
t
.
get
(
pressurePumpStart
).
equals
(
"true"
))
||
(
t
.
containsKey
(
pressurePumpSt
op
)
&&
t
.
get
(
pressurePumpStop
).
equals
(
"tru
e"
))).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
collect
=
listObject1
.
stream
().
filter
(
t
->
(
t
.
containsKey
(
pressurePumpStart
)
&&
t
.
get
(
pressurePumpStart
).
equals
(
"true"
))
||
(
t
.
containsKey
(
pressurePumpSt
art
)
&&
t
.
get
(
pressurePumpStart
).
equals
(
"fals
e"
))).
collect
(
Collectors
.
toList
());
int
num
=
collect
.
size
();
int
num
=
collect
.
size
();
item
.
put
(
"startAndStopNum"
,
num
);
item
.
put
(
"startAndStopNum"
,
num
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
67f191d9
...
@@ -62,8 +62,6 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -62,8 +62,6 @@ public class ConfigureController extends AbstractBaseController {
@Value
(
"${equipment.pressurepump.start}"
)
@Value
(
"${equipment.pressurepump.start}"
)
private
String
pressurePumpStart
;
private
String
pressurePumpStart
;
@Value
(
"${equipment.pressurepump.stop}"
)
private
String
pressurePumpStop
;
@Value
(
"${stationCode}"
)
@Value
(
"${stationCode}"
)
private
String
stationCode
;
private
String
stationCode
;
...
@@ -334,8 +332,8 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -334,8 +332,8 @@ public class ConfigureController extends AbstractBaseController {
ResponseModel
entity1
=
null
;
ResponseModel
entity1
=
null
;
ResponseModel
entity2
=
null
;
ResponseModel
entity2
=
null
;
try
{
try
{
entity1
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
startDateStr
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStart
);
entity1
=
iotFeign
.
selectList
New
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"true"
,
pressurePumpStart
);
entity2
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
startDateStr
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStop
);
entity2
=
iotFeign
.
selectList
New
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"false"
,
pressurePumpStart
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -345,7 +343,7 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -345,7 +343,7 @@ public class ConfigureController extends AbstractBaseController {
String
json2
=
JSON
.
toJSONString
(
entity2
.
getResult
());
String
json2
=
JSON
.
toJSONString
(
entity2
.
getResult
());
List
<
Map
<
String
,
String
>>
listObject2
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json2
);
List
<
Map
<
String
,
String
>>
listObject2
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json2
);
listObject1
.
addAll
(
listObject2
);
listObject1
.
addAll
(
listObject2
);
List
<
Map
<
String
,
String
>>
collect
=
listObject1
.
stream
().
filter
(
t
->
(
t
.
containsKey
(
pressurePumpStart
)
&&
t
.
get
(
pressurePumpStart
).
equals
(
"true"
))
||
(
t
.
containsKey
(
pressurePumpSt
op
)
&&
t
.
get
(
pressurePumpStop
).
equals
(
"tru
e"
))).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
collect
=
listObject1
.
stream
().
filter
(
t
->
(
t
.
containsKey
(
pressurePumpStart
)
&&
t
.
get
(
pressurePumpStart
).
equals
(
"true"
))
||
(
t
.
containsKey
(
pressurePumpSt
art
)
&&
t
.
get
(
pressurePumpStart
).
equals
(
"fals
e"
))).
collect
(
Collectors
.
toList
());
int
num
=
collect
.
size
();
int
num
=
collect
.
size
();
item
.
put
(
"startAndStopNum"
,
num
);
item
.
put
(
"startAndStopNum"
,
num
);
}
}
...
@@ -395,8 +393,8 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -395,8 +393,8 @@ public class ConfigureController extends AbstractBaseController {
ResponseModel
entity1
=
null
;
ResponseModel
entity1
=
null
;
ResponseModel
entity2
=
null
;
ResponseModel
entity2
=
null
;
try
{
try
{
entity1
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
startDateStr
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStart
);
entity1
=
iotFeign
.
selectList
New
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"true"
,
pressurePumpStart
);
entity2
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
startDateStr
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStop
);
entity2
=
iotFeign
.
selectList
New
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"false"
,
pressurePumpStart
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -406,7 +404,7 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -406,7 +404,7 @@ public class ConfigureController extends AbstractBaseController {
String
json2
=
JSON
.
toJSONString
(
entity2
.
getResult
());
String
json2
=
JSON
.
toJSONString
(
entity2
.
getResult
());
List
<
Map
<
String
,
String
>>
listObject2
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json2
);
List
<
Map
<
String
,
String
>>
listObject2
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json2
);
listObject1
.
addAll
(
listObject2
);
listObject1
.
addAll
(
listObject2
);
List
<
Map
<
String
,
String
>>
collect
=
listObject1
.
stream
().
filter
(
t
->
(
t
.
containsKey
(
pressurePumpStart
)
&&
t
.
get
(
pressurePumpStart
).
equals
(
"true"
))
||
(
t
.
containsKey
(
pressurePumpSt
op
)
&&
t
.
get
(
pressurePumpStop
).
equals
(
"tru
e"
))).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
collect
=
listObject1
.
stream
().
filter
(
t
->
(
t
.
containsKey
(
pressurePumpStart
)
&&
t
.
get
(
pressurePumpStart
).
equals
(
"true"
))
||
(
t
.
containsKey
(
pressurePumpSt
art
)
&&
t
.
get
(
pressurePumpStart
).
equals
(
"fals
e"
))).
collect
(
Collectors
.
toList
());
int
num
=
collect
.
size
();
int
num
=
collect
.
size
();
item
.
put
(
"startAndStopNum"
,
num
);
item
.
put
(
"startAndStopNum"
,
num
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SupervisionConfigureController.java
View file @
67f191d9
...
@@ -58,8 +58,6 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -58,8 +58,6 @@ public class SupervisionConfigureController extends AbstractBaseController {
@Value
(
"${equipment.pressurepump.start}"
)
@Value
(
"${equipment.pressurepump.start}"
)
private
String
pressurePumpStart
;
private
String
pressurePumpStart
;
@Value
(
"${equipment.pressurepump.stop}"
)
private
String
pressurePumpStop
;
@PersonIdentify
@PersonIdentify
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
67f191d9
...
@@ -245,10 +245,6 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -245,10 +245,6 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
@Value
(
"${equipment.pressurepump.start}"
)
@Value
(
"${equipment.pressurepump.start}"
)
private
String
pressurePumpStart
;
private
String
pressurePumpStart
;
@Value
(
"${equipment.pressurepump.stop}"
)
private
String
pressurePumpStop
;
@Value
(
"${emergency.disposal.indicators}"
)
@Value
(
"${emergency.disposal.indicators}"
)
private
String
emergencyDisposalIndicators
;
private
String
emergencyDisposalIndicators
;
...
...
amos-boot-system-equip/src/main/resources/application-dev.properties
View file @
67f191d9
...
@@ -116,8 +116,7 @@ equipment.scrap.cron=0 0 9 * * ?
...
@@ -116,8 +116,7 @@ equipment.scrap.cron=0 0 9 * * ?
# 稳压泵启动信号
# 稳压泵启动信号
equipment.pressurepump.start
=
FHS_PressurePump_Start
equipment.pressurepump.start
=
FHS_PressurePump_Start
# 稳压泵停止信号
equipment.pressurepump.stop
=
FHS_PressurePump_Stop
# 站端标识
# 站端标识
state.code
=
GW190301
state.code
=
GW190301
...
...
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