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
c347cd33
Commit
c347cd33
authored
Jul 15, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加启动日志
parent
9c008e78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
...als/xhx/module/device/service/impl/DeviceServiceImpl.java
+9
-2
No files found.
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
View file @
c347cd33
...
...
@@ -355,10 +355,17 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
entity
.
setDeviceMac
(
StrUtil
.
replace
(
entity
.
getDeviceMac
(),
":"
,
"-"
));
}
//
产品
编码唯一
//
设备
编码唯一
DeviceEntity
deviceEntity
=
this
.
selectOne
(
new
DeviceQuery
().
deviceCode
(
entity
.
getDeviceCode
()));
if
(!
ObjectUtils
.
isEmpty
(
deviceEntity
))
{
throw
new
AppException
(
"设备编码重复!"
);
//如果原始的域当前的站点不一致,做更新处理,否则提示编码重复
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSiteId
())&&
entity
.
getSiteId
()
!=
deviceEntity
.
getSiteId
())
{
entity
.
setId
(
deviceEntity
.
getId
());
entity
.
setUpdateTime
(
new
Date
());
entity
.
setUpdateUserId
(
getContextUserId
(
context
));
}
else
{
throw
new
AppException
(
"设备编码重复!"
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getProductId
()))
{
...
...
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