Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
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
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
0b9a9e86
Commit
0b9a9e86
authored
Oct 13, 2022
by
lizhichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
30天设备报警记录,空数据日期处理
parent
0fca2cae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
TDeviceAlarmInfoServiceImpl.java
...hong/system/service/impl/TDeviceAlarmInfoServiceImpl.java
+1
-2
No files found.
danger-manage-system/src/main/java/com/zehong/system/service/impl/TDeviceAlarmInfoServiceImpl.java
View file @
0b9a9e86
...
...
@@ -3,7 +3,6 @@ package com.zehong.system.service.impl;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
com.sun.org.apache.bcel.internal.generic.NEW
;
import
com.zehong.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -137,7 +136,7 @@ public class TDeviceAlarmInfoServiceImpl implements ITDeviceAlarmInfoService
//每天报警数量(30天)
List
<
Map
<
String
,
Object
>>
everyDayList
=
tDeviceAlarmInfoMapper
.
selectEveryDay
();
List
<
String
>
datelist
=
getDays
();
String
[]
dateLabel
=
new
String
[
30
]
;
Object
[]
dateLabel
=
datelist
.
toArray
()
;
Long
[]
dateNum
=
new
Long
[]{
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
,
0L
};
for
(
Map
<
String
,
Object
>
m
:
everyDayList
){
for
(
int
i
=
0
;
i
<
datelist
.
size
();
i
++){
...
...
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