Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-miniappserver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 07410a18
authored
Jul 21, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化设备激活报表查询
1 parent
83e1a595
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
src/main/java/cn/com/glsx/app/modules/service/DashboardService.java
src/main/java/cn/com/glsx/app/modules/service/DashboardService.java
View file @
07410a1
...
@@ -97,9 +97,6 @@ public class DashboardService extends AbstractCommonService {
...
@@ -97,9 +97,6 @@ public class DashboardService extends AbstractCommonService {
private
List
<
DeviceActiveVO
>
fillIfNullByDate
(
Date
dateBegin
,
Date
dateEnd
,
List
<
DeviceActiveVO
>
list
)
{
private
List
<
DeviceActiveVO
>
fillIfNullByDate
(
Date
dateBegin
,
Date
dateEnd
,
List
<
DeviceActiveVO
>
list
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
List
<
DeviceActiveVO
>
retList
=
Lists
.
newArrayList
();
List
<
DeviceActiveVO
>
retList
=
Lists
.
newArrayList
();
if
(
null
!=
list
)
{
retList
.
addAll
(
list
);
}
Calendar
ca
=
Calendar
.
getInstance
();
Calendar
ca
=
Calendar
.
getInstance
();
DeviceActiveVO
dm
;
DeviceActiveVO
dm
;
...
@@ -107,6 +104,7 @@ public class DashboardService extends AbstractCommonService {
...
@@ -107,6 +104,7 @@ public class DashboardService extends AbstractCommonService {
if
(
CollectionUtil
.
isNotEmpty
(
list
))
{
if
(
CollectionUtil
.
isNotEmpty
(
list
))
{
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
if
(
sdf
.
format
(
dateBegin
).
equals
(
list
.
get
(
i
).
getActiveDate
()))
{
if
(
sdf
.
format
(
dateBegin
).
equals
(
list
.
get
(
i
).
getActiveDate
()))
{
retList
.
add
(
list
.
get
(
i
));
break
;
break
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment