Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
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 4b07c9ac
authored
Oct 18, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化不在店统计逻辑
1 parent
0e1ae6e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
13 deletions
src/main/java/cn/com/glsx/admin/modules/service/ElectricInStoreDriveService.java
src/main/java/cn/com/glsx/admin/modules/service/ElectricInStoreDriveService.java
View file @
4b07c9a
...
...
@@ -11,7 +11,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.List
;
/**
...
...
@@ -314,20 +313,9 @@ public class ElectricInStoreDriveService {
*/
private
Integer
getInStoreNum
(
ElectricInStoreDrive
inStoreDrive
)
{
int
num
=
0
;
if
(
inStoreDrive
.
getGpsState
()
==
2
)
{
if
(
inStoreDrive
.
getGpsState
()
==
2
||
inStoreDrive
.
getGpsState
()
==
3
)
{
num
=
1
;
}
if
(
inStoreDrive
.
getPositionState
()
==
0
)
{
int
hours
=
inStoreDrive
.
getGpsTime
().
getHours
();
if
(
hours
>
9
&&
hours
<
17
)
{
num
=
1
;
}
}
else
if
(
inStoreDrive
.
getPositionState
()
==
1
)
{
int
hours
=
inStoreDrive
.
getGpsTime
().
getHours
();
if
(
hours
>
10
&&
hours
<
16
)
{
num
=
1
;
}
}
return
num
;
}
...
...
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