Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
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
赵啸非
device-new-platform
Commits
10dbad6d
Commit
10dbad6d
authored
Feb 28, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部署资源添加分辨率字典
parent
39bd8fe2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
common-lib/src/main/java/com/mortals/xhx/common/pdu/DeviceReq.java
...b/src/main/java/com/mortals/xhx/common/pdu/DeviceReq.java
+4
-0
device-manager/src/main/java/com/mortals/xhx/busiz/web/DeviceApiController.java
...n/java/com/mortals/xhx/busiz/web/DeviceApiController.java
+4
-2
No files found.
common-lib/src/main/java/com/mortals/xhx/common/pdu/DeviceReq.java
View file @
10dbad6d
...
...
@@ -139,5 +139,9 @@ public class DeviceReq implements Serializable {
* 设备分辨率
*/
private
String
resolution
;
/**
* 设备分辨率值
*/
private
String
resolutionValue
;
}
device-manager/src/main/java/com/mortals/xhx/busiz/web/DeviceApiController.java
View file @
10dbad6d
...
...
@@ -894,8 +894,9 @@ public class DeviceApiController {
deviceEntity
.
setCreateUserId
(
1L
);
deviceEntity
.
setCreateTime
(
new
Date
());
deviceEntity
.
setSwitchSend
(
false
);
if
(!
ObjectUtils
.
isEmpty
(
req
.
getResolution
())){
if
(!
ObjectUtils
.
isEmpty
(
req
.
getResolution
())
&&!
ObjectUtils
.
isEmpty
(
req
.
getResolutionValue
())
){
deviceEntity
.
setResolution
(
req
.
getResolution
());
deviceEntity
.
setResolutionValue
(
req
.
getResolutionValue
());
}
deviceService
.
save
(
deviceEntity
);
...
...
@@ -941,8 +942,9 @@ public class DeviceApiController {
deviceEntity
.
setLeadingOfficial
(
req
.
getLeadingOfficial
());
deviceEntity
.
setDeviceInFloor
(
req
.
getDeviceInFloor
());
deviceEntity
.
setDeviceInBuilding
(
req
.
getDeviceInBuilding
());
if
(!
ObjectUtils
.
isEmpty
(
req
.
getResolution
())){
if
(!
ObjectUtils
.
isEmpty
(
req
.
getResolution
())
&&!
ObjectUtils
.
isEmpty
(
req
.
getResolutionValue
())
){
deviceEntity
.
setResolution
(
req
.
getResolution
());
deviceEntity
.
setResolutionValue
(
req
.
getResolutionValue
());
}
deviceService
.
update
(
deviceEntity
);
}
...
...
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