Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
self-service
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
廖旭伟
self-service
Commits
9915b628
Commit
9915b628
authored
May 16, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下发设备开柜指令
parent
e5e7bfcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
sst-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
...a/com/mortals/xhx/module/device/web/DeviceController.java
+6
-0
No files found.
sst-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
View file @
9915b628
...
...
@@ -268,13 +268,19 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
deviceCodeList
.
add
(
device
.
getTargetDevice
());
}
else
{
DevicePdu
devicePdu
=
new
DevicePdu
();
devicePdu
.
setDeviceStatus
(
2
);
devicePdu
.
setEnabled
(
1
);
devicePdu
.
setSiteId
(
device
.
getSiteId
());
devicePdu
.
setProductName
(
"取件柜"
);
Rest
<
RespData
<
List
<
DevicePdu
>>>
restd
=
deviceFeign
.
list
(
devicePdu
);
if
(
restd
.
getCode
().
equals
(
YesNoEnum
.
YES
.
getValue
()))
{
if
(
restd
.
getData
()
!=
null
&&
restd
.
getData
().
getData
().
size
()
>
0
)
{
deviceCodeList
.
add
(
restd
.
getData
().
getData
().
get
(
0
).
getDeviceCode
());
}
else
{
throw
new
AppException
(
"指令发送失败,没有找到在线的取件柜"
);
}
}
else
{
throw
new
AppException
(
"查询设备列表失败"
);
}
}
...
...
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