Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fill-system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
fill-system
Commits
ecf6b9b6
Commit
ecf6b9b6
authored
Mar 13, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加校验
parent
92083c91
Pipeline
#2763
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
fill-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
...a/com/mortals/xhx/module/device/web/DeviceController.java
+8
-3
No files found.
fill-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
View file @
ecf6b9b6
...
@@ -121,9 +121,14 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
...
@@ -121,9 +121,14 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
Map
<
String
,
Object
>
model
=
new
HashMap
<>();
Map
<
String
,
Object
>
model
=
new
HashMap
<>();
String
busiDesc
=
this
.
getModuleDesc
()
+
"设备"
;
String
busiDesc
=
this
.
getModuleDesc
()
+
"设备"
;
try
{
try
{
DeviceEntity
entity
=
this
.
service
.
getExtCache
(
deviceEntity
.
getDeviceCode
());
log
.
info
(
"检测设备状态:{}"
,
JSON
.
toJSONString
(
deviceEntity
));
jsonObject
.
put
(
KEY_RESULT_DATA
,
entity
);
if
(!
ObjectUtils
.
isEmpty
(
deviceEntity
.
getDeviceCode
()))
{
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
DeviceEntity
entity
=
this
.
service
.
getExtCache
(
deviceEntity
.
getDeviceCode
());
jsonObject
.
put
(
KEY_RESULT_DATA
,
entity
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
}
else
{
throw
new
AppException
(
"设备编号不能为空!"
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"检测设备消息"
,
e
);
log
.
error
(
"检测设备消息"
,
e
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_FAILURE
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_FAILURE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment