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
88d48877
Commit
88d48877
authored
Jun 27, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备管理导入模板增加siteId参数
parent
f40f0336
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
common-lib/src/main/java/com/mortals/xhx/feign/device/IDeviceFeign.java
.../main/java/com/mortals/xhx/feign/device/IDeviceFeign.java
+2
-2
sst-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
...a/com/mortals/xhx/module/device/web/DeviceController.java
+2
-2
No files found.
common-lib/src/main/java/com/mortals/xhx/feign/device/IDeviceFeign.java
View file @
88d48877
...
...
@@ -80,7 +80,7 @@ public interface IDeviceFeign extends IFeign {
Rest
<
String
>
downMsg
(
@RequestBody
DeviceNotifyPdu
deviceNotifyPdu
);
@PostMapping
(
value
=
"/device/importData"
,
consumes
=
MediaType
.
MULTIPART_FORM_DATA_VALUE
)
String
importData
(
@RequestPart
MultipartFile
file
,
@RequestHeader
(
"Authorization"
)
String
authorization
);
String
importData
(
@RequestPart
MultipartFile
file
,
@RequestHeader
(
"Authorization"
)
String
authorization
,
@RequestParam
(
"siteId"
)
Long
siteId
);
}
...
...
@@ -124,7 +124,7 @@ class DeviceFeignFallbackFactory implements FallbackFactory<IDeviceFeign> {
}
@Override
public
String
importData
(
MultipartFile
file
,
String
authorization
)
{
public
String
importData
(
MultipartFile
file
,
String
authorization
,
Long
siteId
)
{
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"code"
,
-
1
);
jsonObject
.
put
(
"msg"
,
"暂时无法导入设备,请稍后再试!"
);
...
...
sst-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
View file @
88d48877
...
...
@@ -402,9 +402,9 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
@PostMapping
({
"m/importData"
})
public
String
importData
(
MultipartFile
file
,
@RequestHeader
(
"Authorization"
)
String
authorization
)
{
public
String
importData
(
MultipartFile
file
,
@RequestHeader
(
"Authorization"
)
String
authorization
,
@RequestParam
(
"siteId"
)
Long
siteId
)
{
return
deviceFeign
.
importData
(
file
,
authorization
);
return
deviceFeign
.
importData
(
file
,
authorization
,
siteId
);
}
}
\ No newline at end of file
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