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 9e9fca5f
authored
Jun 01, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
特约店、围栏bug修复
1 parent
2110f62e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
src/main/java/cn/com/glsx/admin/modules/mapper/VehicleMapper.java
src/main/java/cn/com/glsx/admin/modules/service/TrialDriveShopService.java
src/main/java/cn/com/glsx/admin/modules/mapper/VehicleMapper.java
View file @
9e9fca5
...
...
@@ -19,6 +19,7 @@ import java.util.List;
@Mapper
public
interface
VehicleMapper
extends
CommonBaseMapper
<
Vehicle
>
{
@DataPerm
(
showSql
=
true
)
List
<
VehicleLinkSnsDTO
>
linkSnsSearch
(
VehicleSearch
search
);
/**
...
...
src/main/java/cn/com/glsx/admin/modules/service/TrialDriveShopService.java
View file @
9e9fca5
...
...
@@ -121,10 +121,13 @@ public class TrialDriveShopService {
// 校验数据
checkTrialDriveShop
(
shopBO
,
true
);
TrialDriveShop
trialDriveShop
=
trialDriveShopMapper
.
selectById
(
shopBO
.
getId
());
//同步更新特约店围栏记录在围栏表
syncUpdateFence
(
shopBO
);
TrialDriveShop
shop
=
TrialDriveShopConverter
.
INSTANCE
.
bo2do
(
shopBO
);
shop
.
setFenceId
(
trialDriveShop
.
getFenceId
());
if
(
shopBO
.
getSpecialShopId
()
!=
null
)
{
shop
.
setCreatedBy
(
shopBO
.
getSpecialShopId
());
}
else
{
...
...
@@ -159,7 +162,7 @@ public class TrialDriveShopService {
}
}
public
void
syncUpdateFence
(
TrialDriveShopBO
shopBO
)
throws
Exception
{
public
ElectricFence
syncUpdateFence
(
TrialDriveShopBO
shopBO
)
throws
Exception
{
TrialDriveShop
shop
=
trialDriveShopMapper
.
selectById
(
shopBO
.
getId
());
ElectricFenceBO
fenceBO
=
new
ElectricFenceBO
();
...
...
@@ -183,7 +186,7 @@ public class TrialDriveShopService {
fenceBO
.
setSnList
(
shopBO
.
getSnList
());
electricFenceService
.
updateFence
(
fenceBO
);
return
electricFenceService
.
updateFence
(
fenceBO
);
}
public
TrialDriveShopDetailsDTO
getDetailsById
(
Long
shopId
)
{
...
...
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