Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
2d9316af
Commit
2d9316af
authored
Apr 25, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-25 设备管理设备编码重复提示优化
parent
7f86598e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ServiceHPSB003.java
.../java/com/baosight/hpjx/hp/sb/service/ServiceHPSB003.java
+2
-2
No files found.
src/main/java/com/baosight/hpjx/hp/sb/service/ServiceHPSB003.java
View file @
2d9316af
...
@@ -205,10 +205,10 @@ public class ServiceHPSB003 extends ServiceEPBase {
...
@@ -205,10 +205,10 @@ public class ServiceHPSB003 extends ServiceEPBase {
public
void
queryDeviceCode
(
HPSB003
hpsb001
){
public
void
queryDeviceCode
(
HPSB003
hpsb001
){
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
HPSB003
.
FIELD_FACTORY_CODE
,
hpsb001
.
getFactoryCode
());
//
map.put(HPSB003.FIELD_FACTORY_CODE,hpsb001.getFactoryCode());
map
.
put
(
"deviceCodeStr"
,
hpsb001
.
getDeviceCode
());
map
.
put
(
"deviceCodeStr"
,
hpsb001
.
getDeviceCode
());
map
.
put
(
HPSB003
.
FIELD_DELETE_FLAG
,
hpsb001
.
getDeleteFlag
());
map
.
put
(
HPSB003
.
FIELD_DELETE_FLAG
,
hpsb001
.
getDeleteFlag
());
List
<
HPSB003
>
hpsb003List
=
this
.
dao
.
query
(
HPSB003
.
QUERY
,
map
);
List
<
HPSB003
>
hpsb003List
=
this
.
dao
.
query
(
HPSB003
.
QUERY
,
map
);
AssertUtils
.
isNotEmpty
(
hpsb003List
,
String
.
format
(
"设备编码[%s]
在当前工厂已存在,添加失败"
,
map
.
get
(
HPSB003
.
FIELD_DEVICE_CODE
)));
AssertUtils
.
isNotEmpty
(
hpsb003List
,
String
.
format
(
"设备编码[%s]
已存在,添加失败"
,
hpsb001
.
getDeviceCode
(
)));
}
}
}
}
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