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
04694bbd
Commit
04694bbd
authored
Mar 14, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.组织不存在抛出异常
parent
45751a7a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ServiceHPPZ014.java
.../java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ014.java
+1
-1
HPXSTools.java
src/main/java/com/baosight/hpjx/hp/xs/tools/HPXSTools.java
+2
-1
No files found.
src/main/java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ014.java
View file @
04694bbd
...
@@ -96,7 +96,7 @@ public class ServiceHPPZ014 extends ServiceBase {
...
@@ -96,7 +96,7 @@ public class ServiceHPPZ014 extends ServiceBase {
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据登记成功!"
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据登记成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
set
Detail
Msg
(
inInfo
,
e
,
"登记失败"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"登记失败"
);
}
}
return
inInfo
;
return
inInfo
;
}
}
...
...
src/main/java/com/baosight/hpjx/hp/xs/tools/HPXSTools.java
View file @
04694bbd
...
@@ -174,7 +174,8 @@ public class HPXSTools {
...
@@ -174,7 +174,8 @@ public class HPXSTools {
Map
paramMap
=
new
HashMap
();
Map
paramMap
=
new
HashMap
();
paramMap
.
put
(
"orgId"
,
orgId
);
paramMap
.
put
(
"orgId"
,
orgId
);
List
<
Org
>
results
=
DaoBase
.
getInstance
().
query
(
"HPXSOrg.query"
,
paramMap
);
List
<
Org
>
results
=
DaoBase
.
getInstance
().
query
(
"HPXSOrg.query"
,
paramMap
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
0
);
AssertUtils
.
isEmpty
(
results
,
String
.
format
(
"组织信息[%s]不存在"
,
orgId
));
return
results
.
get
(
0
);
}
}
/**
/**
...
...
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