Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
4d0f2994
Commit
4d0f2994
authored
Apr 10, 2023
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加错误提示
parent
7ea37e71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
TechInfoService.java
...eejoin/amos/api/openapi/face/service/TechInfoService.java
+3
-3
No files found.
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TechInfoService.java
View file @
4d0f2994
...
...
@@ -31,7 +31,7 @@ public class TechInfoService {
String
type
=
techInfo
.
getString
(
"type"
);
String
entityClasspath
=
EquipTypeEnum
.
classPathmap
.
get
(
type
);
if
(
ValidationUtil
.
isEmpty
(
entityClasspath
)){
failSupervisoryCode
.
add
(
techInfo
.
getString
(
"type"
)+
":"
+
techInfo
.
getString
(
"supervisoryCode"
)
);
failSupervisoryCode
.
add
(
"type类型错误{"
+
"type:"
+
type
+
",supervisoryCode:"
+
techInfo
.
getString
(
"supervisoryCode"
)+
"}"
);
}
String
serviceClasspath
=
EquipTypeEnum
.
servicePathmap
.
get
(
type
);
try
{
...
...
@@ -44,12 +44,12 @@ public class TechInfoService {
service
.
save
(
entity
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
failSupervisoryCode
.
add
(
techInfo
.
getString
(
"type"
)+
":"
+
techInfo
.
getString
(
"supervisoryCode"
)
);
failSupervisoryCode
.
add
(
"数据错误{"
+
"type:"
+
type
+
",supervisoryCode:"
+
techInfo
.
getString
(
"supervisoryCode"
)+
"}"
);
}
}
String
result
=
"ok"
;
if
(!
ValidationUtil
.
isEmpty
(
failSupervisoryCode
)){
result
=
"
supervisoryCode为"
+
JSON
.
toJSONString
(
failSupervisoryCode
)+
"的参数添加失败,请检查参数。"
;
result
=
"
数据添加失败:"
+
JSON
.
toJSONString
(
failSupervisoryCode
)
;
}
return
result
;
}
...
...
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