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 205d6b01
authored
Sep 13, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除重复代码
1 parent
c549a714
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
src/main/java/cn/com/glsx/admin/modules/service/ElectricInStoreDriveService.java
src/test/java/cn/com/glsx/admin/modules/service/VehicleServiceTest.java
src/main/java/cn/com/glsx/admin/modules/service/ElectricInStoreDriveService.java
View file @
205d6b0
...
@@ -45,11 +45,10 @@ public class ElectricInStoreDriveService {
...
@@ -45,11 +45,10 @@ public class ElectricInStoreDriveService {
List
<
ElectricInStoreExport
>
electricInStoreExportList
=
inStoreDriveMapper
.
getAllTestDrive
(
search
);
List
<
ElectricInStoreExport
>
electricInStoreExportList
=
inStoreDriveMapper
.
getAllTestDrive
(
search
);
log
.
info
(
"全部试驾车辆的数量==="
+
electricInStoreExportList
.
size
());
log
.
info
(
"全部试驾车辆的数量==="
+
electricInStoreExportList
.
size
());
for
(
ElectricInStoreExport
electricInStoreExport
:
electricInStoreExportList
)
{
for
(
ElectricInStoreExport
electricInStoreExport
:
electricInStoreExportList
)
{
log
.
info
(
"查询在店统计车辆
的Sn==="
+
electricInStoreExport
.
getSn
());
log
.
info
(
"查询在店统计车辆
车辆Id==="
+
electricInStoreExport
.
getVehicleId
());
electricInStoreExport
.
setStatDate
(
DateUtil
.
formatDate
(
new
Date
()));
electricInStoreExport
.
setStatDate
(
DateUtil
.
formatDate
(
new
Date
()));
// 如果sn不为null 则封装每天具体数据
// 如果sn不为null 则封装每天具体数据
if
(
electricInStoreExport
.
getSn
()
!=
null
)
{
search
.
setVehicleId
(
electricInStoreExport
.
getVehicleId
());
search
.
setVehicleId
(
electricInStoreExport
.
getVehicleId
());
List
<
ElectricInStoreDrive
>
inStoreDataList
=
inStoreDriveMapper
.
getInStoreDataListBySn
(
search
);
List
<
ElectricInStoreDrive
>
inStoreDataList
=
inStoreDriveMapper
.
getInStoreDataListBySn
(
search
);
Integer
num1
=
0
;
Integer
num1
=
0
;
...
@@ -346,7 +345,6 @@ public class ElectricInStoreDriveService {
...
@@ -346,7 +345,6 @@ public class ElectricInStoreDriveService {
electricInStoreExport
.
setDayNum31
(
replaceDayNum
(
electricInStoreExport
.
getDayNum31
()));
electricInStoreExport
.
setDayNum31
(
replaceDayNum
(
electricInStoreExport
.
getDayNum31
()));
}
}
}
}
}
return
electricInStoreExportList
;
return
electricInStoreExportList
;
}
}
...
...
src/test/java/cn/com/glsx/admin/modules/service/VehicleServiceTest.java
View file @
205d6b0
...
@@ -2118,5 +2118,17 @@ public class VehicleServiceTest {
...
@@ -2118,5 +2118,17 @@ public class VehicleServiceTest {
System
.
out
.
println
(
"vehicleService success= "
);
System
.
out
.
println
(
"vehicleService success= "
);
}
}
@Test
public
void
test12
()
{
R
<
DeviceStatusModel
>
deviceStatusBySn
=
deviceFeignService
.
getDeviceStatusBySn
(
"75108160001"
,
0L
);
System
.
out
.
println
(
"deviceStatusBySn = "
+
deviceStatusBySn
);
if
(
deviceStatusBySn
!=
null
)
{
// 状态(0 行驶中 1 静止 2离线 3 在线)
DeviceStatusModel
deviceStatusModel
=
deviceStatusBySn
.
getData
(
DeviceStatusModel
.
class
);
if
(
deviceStatusModel
!=
null
)
{
System
.
out
.
println
(
"deviceStatusModel = "
+
deviceStatusModel
.
getStatus
());
}
}
}
}
}
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