Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c9561667
authored
Oct 18, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发不在店试驾统计任务
1 parent
fee9cdc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/cn/com/glsx/stdinterface/modules/service/ElectricInStoreService.java
src/main/java/cn/com/glsx/stdinterface/modules/service/ElectricInStoreService.java
View file @
c956166
...
@@ -5,13 +5,13 @@ import cn.com.glsx.stdinterface.modules.mapper.ElectricInStoreMapper;
...
@@ -5,13 +5,13 @@ import cn.com.glsx.stdinterface.modules.mapper.ElectricInStoreMapper;
import
cn.com.glsx.stdinterface.modules.mapper.VehicleDeviceMapper
;
import
cn.com.glsx.stdinterface.modules.mapper.VehicleDeviceMapper
;
import
cn.com.glsx.stdinterface.modules.model.ElectricInStoreDrive
;
import
cn.com.glsx.stdinterface.modules.model.ElectricInStoreDrive
;
import
cn.com.glsx.stdinterface.modules.model.VehicleDevice
;
import
cn.com.glsx.stdinterface.modules.model.VehicleDevice
;
import
com.alibaba.fastjson.JSON
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
/**
* 不在店统计Service
* 不在店统计Service
...
@@ -75,11 +75,12 @@ public class ElectricInStoreService {
...
@@ -75,11 +75,12 @@ public class ElectricInStoreService {
inStoreDrive
.
setSveSystemId
(
13
);
inStoreDrive
.
setSveSystemId
(
13
);
inStoreDrive
.
setPositionState
(
0
);
inStoreDrive
.
setPositionState
(
0
);
inStoreDrive
.
setGpsState
(
3
);
inStoreDrive
.
setGpsState
(
3
);
inStoreDrive
.
setGpsTime
(
new
Dat
e
());
inStoreDrive
.
setGpsTime
(
cal
.
getTim
e
());
inStoreDrive
.
setVdId
(
allsnVdIdMap
.
get
(
sn
));
inStoreDrive
.
setVdId
(
allsnVdIdMap
.
get
(
sn
));
inStoreDrive
.
setCreatedTime
(
new
Date
());
inStoreDrive
.
setCreatedTime
(
new
Date
());
inStoreDrives
.
add
(
inStoreDrive
);
inStoreDrives
.
add
(
inStoreDrive
);
}
}
log
.
info
(
JSON
.
toJSONString
(
inStoreDrives
));
int
num
=
electricInStoreMapper
.
insertList
(
inStoreDrives
);
int
num
=
electricInStoreMapper
.
insertList
(
inStoreDrives
);
log
.
info
(
"插入到统计表的数据行数==="
+
num
);
log
.
info
(
"插入到统计表的数据行数==="
+
num
);
return
num
;
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