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
7f7a6f7e
Commit
7f7a6f7e
authored
Dec 17, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
b20654b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
SupervisionConfigureController.java
...quipmanage/controller/SupervisionConfigureController.java
+11
-0
wl-3.6.0.xml
...ot-system-equip/src/main/resources/changelog/wl-3.6.0.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SupervisionConfigureController.java
View file @
7f7a6f7e
...
...
@@ -282,19 +282,23 @@ public class SupervisionConfigureController extends AbstractBaseController {
Date
halfHour
=
DateUtils
.
dateAddMinutes
(
null
,
-
30
);
Date
twoHour
=
DateUtils
.
dateAddHours
(
null
,
-
2
);
Date
fourHour
=
DateUtils
.
dateAddHours
(
null
,
-
4
);
Date
oneHour
=
DateUtils
.
dateAddHours
(
null
,
-
1
);
String
startDateStr
=
DateUtils
.
convertDateToString
(
mounthDate
,
DateUtils
.
DATE_TIME_PATTERN
);
String
half
=
DateUtils
.
convertDateToString
(
halfHour
,
DateUtils
.
DATE_TIME_PATTERN
);
String
two
=
DateUtils
.
convertDateToString
(
twoHour
,
DateUtils
.
DATE_TIME_PATTERN
);
String
four
=
DateUtils
.
convertDateToString
(
fourHour
,
DateUtils
.
DATE_TIME_PATTERN
);
String
one
=
DateUtils
.
convertDateToString
(
oneHour
,
DateUtils
.
DATE_TIME_PATTERN
);
ResponseModel
mounthEntity
=
null
;
ResponseModel
halfHourEntity
=
null
;
ResponseModel
twoHourEntity
=
null
;
ResponseModel
fourHourEntity
=
null
;
ResponseModel
oneHourEntity
=
null
;
try
{
mounthEntity
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
startDateStr
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStart
);
halfHourEntity
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
half
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStart
);
twoHourEntity
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
two
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStart
);
fourHourEntity
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
four
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStart
);
oneHourEntity
=
iotFeign
.
selectList
(
getAppKey
(),
getProduct
(),
getToken
(),
one
,
nowStrLong
,
prefix
,
suffix
,
pressurePumpStart
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -326,6 +330,13 @@ public class SupervisionConfigureController extends AbstractBaseController {
int
num
=
collect
.
size
();
item
.
put
(
"fourHourStartNum"
,
num
);
}
if
(
200
==
oneHourEntity
.
getStatus
())
{
String
json1
=
JSON
.
toJSONString
(
oneHourEntity
.
getResult
());
List
<
Map
<
String
,
String
>>
listObject1
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json1
);
List
<
Map
<
String
,
String
>>
collect
=
listObject1
.
stream
().
filter
(
t
->
(
t
.
containsKey
(
pressurePumpStart
)
&&
t
.
get
(
pressurePumpStart
).
equals
(
"true"
))).
collect
(
Collectors
.
toList
());
int
num
=
collect
.
size
();
item
.
put
(
"oneHourStartNum"
,
num
);
}
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
long
nowDateTime
=
new
Date
().
getTime
();
//当前时间戳
Map
<
String
,
String
>
stateMap
=
fireFightingSystemMapper
.
queryPressureNowStateBySpecificId
((
Long
)
item
.
get
(
"id"
));
...
...
amos-boot-system-equip/src/main/resources/changelog/wl-3.6.0.xml
View file @
7f7a6f7e
...
...
@@ -192,7 +192,7 @@
alter table `wl_equipment_detail` add column `delivery_date` datetime DEFAULT NULL COMMENT '投运日期';
</sql>
</changeSet>
<changeSet
author=
"ltw"
id=
"20220831-ltw2"
>
<changeSet
author=
"ltw"
id=
"20220831-ltw2
2
"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"wl_form_group_column"
/>
</preConditions>
...
...
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