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 9da0d3d6
authored
Sep 03, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复添加试驾设备BUG
1 parent
7a0dc469
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
9da0d3d
...
@@ -1164,7 +1164,7 @@ public class VehicleService {
...
@@ -1164,7 +1164,7 @@ public class VehicleService {
return
vehicleMapper
.
listTestDriveVehicle
();
return
vehicleMapper
.
listTestDriveVehicle
();
}
}
@Transactional
@Transactional
(
rollbackFor
=
AdminException
.
class
)
public
void
addTestDriveVehicle
(
TestVehicleVo
testVehicleVo
)
{
public
void
addTestDriveVehicle
(
TestVehicleVo
testVehicleVo
)
{
// 如果在车辆关系表中不存在 则新增试驾车辆关系数据 如果存在则直接标记设备为试驾设备
// 如果在车辆关系表中不存在 则新增试驾车辆关系数据 如果存在则直接标记设备为试驾设备
TrialDriveVehicle
trialDriveVehicle
=
new
TrialDriveVehicle
();
TrialDriveVehicle
trialDriveVehicle
=
new
TrialDriveVehicle
();
...
@@ -1179,8 +1179,10 @@ public class VehicleService {
...
@@ -1179,8 +1179,10 @@ public class VehicleService {
}
}
// 将设备标记为试驾设备
// 将设备标记为试驾设备
VehicleDevice
vehicleDevice
=
vehicleDeviceService
.
get
VehicleDeviceBySnBind
(
testVehicleVo
.
getSn
());
VehicleDevice
vehicleDevice
=
vehicleDeviceService
.
get
TrialDeviceBySn
(
testVehicleVo
.
getSn
());
vehicleDevice
.
setTrialType
(
1
);
vehicleDevice
.
setTrialType
(
1
);
vehicleDevice
.
setUpdatedDate
(
new
Date
());
vehicleDevice
.
setUpdatedBy
(
ShieldContextHolder
.
getUserId
());
vehicleDeviceService
.
updateByPrimaryKey
(
vehicleDevice
);
vehicleDeviceService
.
updateByPrimaryKey
(
vehicleDevice
);
}
}
...
...
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