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
e5ce4331
Commit
e5ce4331
authored
Feb 28, 2023
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:稳压泵启动间隔,需求变更业务修改
parent
41916c6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+6
-5
PressurePumpServiceImpl.java
...oin/equipmanage/service/impl/PressurePumpServiceImpl.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
e5ce4331
...
...
@@ -1547,7 +1547,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
StringUtil
.
isNotEmpty
(
e
.
getValue
())
&&
e
.
getIotCode
().
equals
(
iotCode
)
&&
pressurePumpStart
.
equals
(
e
.
getEquipmentIndexKey
())).
sorted
(
Comparator
.
comparing
(
EquipmentSpecificIndex:
:
getUpdateDate
).
reversed
())
.
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
lastStop
))
{
getIotDate
(
equipmentSpecificIndex
,
lastStop
,
prefix
,
suffix
,
"false"
);
equipmentSpecificIndex
=
getIotDate
(
equipmentSpecificIndex
,
lastStop
,
prefix
,
suffix
,
"false"
);
}
break
;
case
LAST_START:
...
...
@@ -1561,7 +1561,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
StringUtil
.
isNotEmpty
(
e
.
getValue
())
&&
e
.
getIotCode
().
equals
(
iotCode
)
&&
pressurePumpStart
.
equals
(
e
.
getEquipmentIndexKey
())).
sorted
(
Comparator
.
comparing
(
EquipmentSpecificIndex:
:
getUpdateDate
).
reversed
())
.
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
lastStart
))
{
getIotDate
(
equipmentSpecificIndex
,
lastStart
,
prefix
,
suffix
,
"true"
);
equipmentSpecificIndex
=
getIotDate
(
equipmentSpecificIndex
,
lastStart
,
prefix
,
suffix
,
"true"
);
}
break
;
case
LATELY_STOP:
...
...
@@ -1569,7 +1569,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
StringUtil
.
isNotEmpty
(
e
.
getValue
())
&&
pressurePumpStart
.
equals
(
e
.
getEquipmentIndexKey
())).
sorted
(
Comparator
.
comparing
(
EquipmentSpecificIndex:
:
getUpdateDate
).
reversed
())
.
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
latelyStop
))
{
getIotDate
(
equipmentSpecificIndex
,
latelyStop
,
prefix
,
null
,
"false"
);
equipmentSpecificIndex
=
getIotDate
(
equipmentSpecificIndex
,
latelyStop
,
prefix
,
null
,
"false"
);
}
break
;
case
LATELY_START:
...
...
@@ -1577,7 +1577,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
StringUtil
.
isNotEmpty
(
e
.
getValue
())
&&
pressurePumpStart
.
equals
(
e
.
getEquipmentIndexKey
())).
sorted
(
Comparator
.
comparing
(
EquipmentSpecificIndex:
:
getUpdateDate
).
reversed
())
.
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
latelyStart
))
{
getIotDate
(
equipmentSpecificIndex
,
latelyStart
,
prefix
,
null
,
"true"
);
equipmentSpecificIndex
=
getIotDate
(
equipmentSpecificIndex
,
latelyStart
,
prefix
,
null
,
"true"
);
}
break
;
case
PUMP_START_TIME:
...
...
@@ -1590,7 +1590,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
}
private
void
getIotDate
(
EquipmentSpecificIndex
equipmentSpecificIndex
,
List
<
EquipmentSpecificIndex
>
listData
,
String
prefix
,
String
suffix
,
String
flag
)
{
private
EquipmentSpecificIndex
getIotDate
(
EquipmentSpecificIndex
equipmentSpecificIndex
,
List
<
EquipmentSpecificIndex
>
listData
,
String
prefix
,
String
suffix
,
String
flag
)
{
ResponseModel
start
=
iotFeign
.
selectOne
(
remoteSecurityService
.
getServerToken
().
getAppKey
(),
remoteSecurityService
.
getServerToken
().
getProduct
(),
remoteSecurityService
.
getServerToken
().
getToke
(),
"1"
,
prefix
,
suffix
,
flag
,
pressurePumpStart
);
if
(
200
==
start
.
getStatus
()
&&
!
ObjectUtils
.
isEmpty
(
start
.
getResult
()))
{
String
json1
=
JSON
.
toJSONString
(
start
.
getResult
());
...
...
@@ -1602,6 +1602,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
listData
.
get
(
0
).
setUpdateDate
(
startDate
);
BeanUtils
.
copyProperties
(
listData
.
get
(
0
),
equipmentSpecificIndex
);
}
return
equipmentSpecificIndex
;
}
private
void
checkValueByDate
(
EquipmentSpecificIndex
data
,
Date
newDate
,
PressurePumpEnum
pressurePumpEnum
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/PressurePumpServiceImpl.java
View file @
e5ce4331
...
...
@@ -148,7 +148,7 @@ public class PressurePumpServiceImpl implements IPressurePumpService {
public
long
getAllPressurePumpStartStopInterval
(
List
<
IotDataVO
>
dataList
,
List
<
IotDataVO
>
dataListFilterTrue
,
List
<
IotDataVO
>
dataListFilterFalse
,
String
nowStrLong
)
{
String
intervalTime1
=
nowStrLong
;
String
intervalTime2
=
nowStrLong
;
if
(!
ObjectUtils
.
isEmpty
(
dataListFilterTrue
)
&&
dataListFilterTrue
.
size
()
>
2
)
{
if
(!
ObjectUtils
.
isEmpty
(
dataListFilterTrue
)
&&
dataListFilterTrue
.
size
()
>
1
)
{
//获取启动列表中
intervalTime1
=
dataListFilterTrue
.
get
(
0
).
getCreatedTime
();
intervalTime2
=
dataListFilterTrue
.
get
(
1
).
getCreatedTime
();
...
...
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