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 74a4b062
authored
Jun 23, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
2 parents
22ab1922
f5ded753
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/common/constants/Constants.java
src/main/java/cn/com/glsx/admin/modules/controller/VehicleController.java
src/main/java/cn/com/glsx/admin/common/constants/Constants.java
View file @
74a4b06
...
...
@@ -31,6 +31,11 @@ public final class Constants {
*/
public
static
final
String
TRIALDRIVE_VEHICLE_CONFIG
=
"trialdrive_vehicle_config"
;
/**
* 同步渠道 timed_task:定时任务渠道
*/
public
static
final
String
SYNC_CHANNEL_TIMED_TASK
=
"edun_timed_task"
;
}
src/main/java/cn/com/glsx/admin/modules/controller/VehicleController.java
View file @
74a4b06
package
cn
.
com
.
glsx
.
admin
.
modules
.
controller
;
import
cn.com.glsx.admin.common.constants.Constants
;
import
cn.com.glsx.admin.modules.model.*
;
import
cn.com.glsx.admin.modules.model.export.TrialDriveVehicleExport
;
import
cn.com.glsx.admin.modules.model.imports.TrialDriveVehicleImport
;
...
...
@@ -145,7 +146,10 @@ public class VehicleController {
public
R
syncVehicleInfoFromBhg
(
@RequestBody
@Validated
(
ValidateGroups
.
Insert
.
class
)
SyncVehicleBo
vehicleBo
)
{
String
errorMess
=
""
;
try
{
errorMess
=
vehicleService
.
syncVehicleInfoFromBhg
(
vehicleBo
);
String
chanle
=
vehicleBo
.
getChanle
();
if
(
StringUtils
.
isNotBlank
(
chanle
)
&&
Constants
.
SYNC_CHANNEL_TIMED_TASK
.
equals
(
chanle
))
{
errorMess
=
vehicleService
.
syncVehicleInfoFromBhg
(
vehicleBo
);
}
}
catch
(
Exception
e
)
{
log
.
info
(
"包活干同步车辆信息 异常:message:"
+
e
.
getMessage
());
return
R
.
error
(
e
.
getMessage
());
...
...
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