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 e686d125
authored
Aug 24, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增车辆-车型管理-异步保存
1 parent
c6a609d6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/main/java/cn/com/glsx/admin/modules/controller/VehicleController.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/java/cn/com/glsx/admin/modules/controller/VehicleController.java
View file @
e686d12
...
@@ -229,7 +229,7 @@ public class VehicleController {
...
@@ -229,7 +229,7 @@ public class VehicleController {
throw
new
AdminException
(
ResultEnum
.
TENANT_VEHICLE_TYPES_EXISTED
);
throw
new
AdminException
(
ResultEnum
.
TENANT_VEHICLE_TYPES_EXISTED
);
}
}
vehicleService
.
saveVehicleTypes
(
typesBO
);
vehicleService
.
saveVehicleTypes
(
typesBO
,
ShieldContextHolder
.
getUserId
()
);
return
R
.
ok
();
return
R
.
ok
();
}
}
...
...
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
e686d12
...
@@ -787,7 +787,7 @@ public class VehicleService {
...
@@ -787,7 +787,7 @@ public class VehicleService {
}
}
@Async
@Async
public
void
saveVehicleTypes
(
VehicleTypesBO
typesBO
)
{
public
void
saveVehicleTypes
(
VehicleTypesBO
typesBO
,
Long
userId
)
{
Date
now
=
new
Date
();
Date
now
=
new
Date
();
...
@@ -813,7 +813,7 @@ public class VehicleService {
...
@@ -813,7 +813,7 @@ public class VehicleService {
tvType
.
setTypeId
(
carType
.
getCarTypeId
());
tvType
.
setTypeId
(
carType
.
getCarTypeId
());
tvType
.
setTypeName
(
carType
.
getName
());
tvType
.
setTypeName
(
carType
.
getName
());
tvType
.
setEnableStatus
(
typesBO
.
getEnableStatus
());
tvType
.
setEnableStatus
(
typesBO
.
getEnableStatus
());
tvType
.
setCreatedBy
(
ShieldContextHolder
.
getUserId
()
);
tvType
.
setCreatedBy
(
userId
);
tvType
.
setCreatedDate
(
now
);
tvType
.
setCreatedDate
(
now
);
tvTypeList
.
add
(
tvType
);
tvTypeList
.
add
(
tvType
);
}
}
...
...
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