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 94a54103
authored
Apr 25, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
空指针判断处理-如果没配置
1 parent
6a379dcc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
src/main/java/cn/com/glsx/admin/modules/component/DeviceSyncEventHandle.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/java/cn/com/glsx/admin/modules/component/DeviceSyncEventHandle.java
View file @
94a5410
...
...
@@ -4,8 +4,10 @@ package cn.com.glsx.admin.modules.component;
import
cn.com.glsx.admin.common.enums.TenantDataEnum
;
import
cn.com.glsx.admin.common.enums.TenantDataOperatorEnum
;
import
cn.com.glsx.admin.modules.model.datasync.TenantDeviceSync
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.plat.context.utils.PropertiesUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
org.eclipse.jetty.util.StringUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.event.EventListener
;
import
org.springframework.stereotype.Component
;
...
...
@@ -60,7 +62,7 @@ public class DeviceSyncEventHandle {
*/
private
boolean
validTenantSDShunCheng
(
Long
tenantId
)
{
String
sdShunChengConfigTenantId
=
PropertiesUtils
.
getProperty
(
"tenant.id.shandongshuncheng"
);
if
(
sdShunChengConfigTenantId
.
equals
(
String
.
valueOf
(
tenantId
)))
{
if
(
StringUtils
.
isNotEmpty
(
sdShunChengConfigTenantId
)
&&
sdShunChengConfigTenantId
.
equals
(
String
.
valueOf
(
tenantId
)))
{
return
true
;
}
return
false
;
...
...
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
94a5410
...
...
@@ -1291,7 +1291,8 @@ public class VehicleService extends AbstractCommonService {
verifyBO
.
setWorkOrderId
(
vehicle
.
getWorkOrderId
());
verifyBO
.
setVehicleId
(
vehicle
.
getId
());
verifyBO
.
setDevices
(
devices
);
vehicleServiceClient
.
verifyDevicesCompose
(
verifyBO
);
R
verifyR
=
vehicleServiceClient
.
verifyDevicesCompose
(
verifyBO
);
log
.
info
(
JSONUtil
.
toJsonStr
(
verifyR
));
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
...
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