Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
d7e0008e
Commit
d7e0008e
authored
May 29, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验项目重复问题
parent
6d02b731
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ServiceHGSC004.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC004.java
+3
-3
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC004.java
View file @
d7e0008e
...
@@ -140,13 +140,13 @@ public class ServiceHGSC004 extends ServiceBase {
...
@@ -140,13 +140,13 @@ public class ServiceHGSC004 extends ServiceBase {
AssertUtils
.
isTrue
(
hgsc003
.
getBlueprintStatus
().
compareTo
(
HGConstant
.
EnablingStatus
.
TY
)
==
0
,
"蓝图已停用不可修改!"
);
AssertUtils
.
isTrue
(
hgsc003
.
getBlueprintStatus
().
compareTo
(
HGConstant
.
EnablingStatus
.
TY
)
==
0
,
"蓝图已停用不可修改!"
);
}
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"
blueprintId"
,
hgsc004
.
getBlueprintId
());
map
.
put
(
"
projCode"
,
hgsc004
.
getProjCode
());
List
<
HGSC004
>
hgsc004List
=
this
.
dao
.
query
(
HGSC004
.
QUERY
,
map
);
List
<
HGSC004
>
hgsc004List
=
this
.
dao
.
query
(
HGSC004
.
QUERY
,
map
);
for
(
HGSC004
o
:
hgsc004List
){
for
(
HGSC004
o
:
hgsc004List
){
if
(
Objects
.
nonNull
(
hgsc004
.
getId
())&&
hgsc004
.
getId
()>
0
){
if
(
Objects
.
nonNull
(
hgsc004
.
getId
())&&
hgsc004
.
getId
()>
0
){
AssertUtils
.
isTrue
(!(
o
.
getId
().
intValue
()
==
hgsc004
.
getId
().
intValue
()),
"当前
蓝图
已存在!"
);
AssertUtils
.
isTrue
(!(
o
.
getId
().
intValue
()
==
hgsc004
.
getId
().
intValue
()),
"当前
项目
已存在!"
);
}
else
{
}
else
{
AssertUtils
.
isTrue
(
Objects
.
nonNull
(
o
),
"当前
蓝图
已存在!"
);
AssertUtils
.
isTrue
(
Objects
.
nonNull
(
o
),
"当前
项目
已存在!"
);
}
}
}
}
...
...
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