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
133f6dc6
Commit
133f6dc6
authored
Jan 21, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
afd7fc89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+6
-7
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
133f6dc6
...
@@ -6,6 +6,8 @@ import java.net.NetworkInterface;
...
@@ -6,6 +6,8 @@ import java.net.NetworkInterface;
import
java.net.SocketException
;
import
java.net.SocketException
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.time.ZoneId
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Enumeration
;
import
java.util.Enumeration
;
...
@@ -168,20 +170,17 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -168,20 +170,17 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
Page
result
=
new
Page
<>(
param
.
getPageNumber
(),
param
.
getPageSize
());
Page
result
=
new
Page
<>(
param
.
getPageNumber
(),
param
.
getPageSize
());
Page
<
Map
<
String
,
Object
>>
resultPage
=
this
.
baseMapper
.
page
(
result
,
param
);
Page
<
Map
<
String
,
Object
>>
resultPage
=
this
.
baseMapper
.
page
(
result
,
param
);
if
(
resultPage
.
getTotal
()
>
0
)
{
if
(
resultPage
.
getTotal
()
>
0
)
{
resultPage
.
getRecords
().
forEach
(
x
->
{
for
(
Map
<
String
,
Object
>
x
:
resultPage
.
getRecords
())
{
Object
type
=
x
.
get
(
"type"
);
Object
type
=
x
.
get
(
"type"
);
if
(
AlarmTypeEnum
.
HZGJ
.
getCode
().
equals
(
type
)
||
AlarmTypeEnum
.
GZGJ
.
getCode
().
equals
(
type
))
{
if
(
AlarmTypeEnum
.
HZGJ
.
getCode
().
equals
(
type
)
||
AlarmTypeEnum
.
GZGJ
.
getCode
().
equals
(
type
))
{
x
.
put
(
"typeCode"
,
type
);
x
.
put
(
"typeCode"
,
type
);
x
.
put
(
"type"
,
AlarmTypeEnum
.
getTypeByCode
(
String
.
valueOf
(
type
)));
x
.
put
(
"type"
,
AlarmTypeEnum
.
getTypeByCode
(
String
.
valueOf
(
type
)));
}
}
try
{
LocalDateTime
createDate
=
(
LocalDateTime
)
x
.
get
(
"createDate"
);
x
.
put
(
"createDate"
,
DateUtils
.
dateParse
(
String
.
valueOf
(
x
.
get
(
"createDate"
)),
DateUtils
.
DATE_TIME_T_PATTERN
));
x
.
put
(
"createDate"
,
Date
.
from
(
createDate
.
atZone
(
ZoneId
.
systemDefault
()).
toInstant
()));
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
x
.
put
(
"handleType"
,
ConfirmAlamEnum
.
getTypeByCode
(
String
.
valueOf
(
x
.
get
(
"handleType"
))));
x
.
put
(
"handleType"
,
ConfirmAlamEnum
.
getTypeByCode
(
String
.
valueOf
(
x
.
get
(
"handleType"
))));
x
.
put
(
"fireEquipmentName"
,
x
.
get
(
"fireEquipmentName"
));
x
.
put
(
"fireEquipmentName"
,
x
.
get
(
"fireEquipmentName"
));
}
);
}
}
}
return
resultPage
;
return
resultPage
;
}
}
...
...
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