Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
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
zhangkb
indicators
Commits
4af26c30
Commit
4af26c30
authored
Aug 03, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改响应状态
parent
a59ca8a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
IndCatalogCtrl.java
...om/keymobile/indicators/api/hytobacco/IndCatalogCtrl.java
+3
-2
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/IndCatalogCtrl.java
View file @
4af26c30
package
com
.
keymobile
.
indicators
.
api
.
hytobacco
;
package
com
.
keymobile
.
indicators
.
api
.
hytobacco
;
import
java.io.IOException
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -33,7 +34,7 @@ public class IndCatalogCtrl {
...
@@ -33,7 +34,7 @@ public class IndCatalogCtrl {
@ApiOperation
(
value
=
"新建基础指标目录"
,
notes
=
"新建基础指标目录"
)
@ApiOperation
(
value
=
"新建基础指标目录"
,
notes
=
"新建基础指标目录"
)
@PostMapping
(
value
=
"/createBaseIndCatalog"
)
@PostMapping
(
value
=
"/createBaseIndCatalog"
)
public
Integer
createBaseIndCatalog
(
@RequestBody
IndCatalog
indCatalog
,
HttpServletResponse
response
)
throws
Api
Exception
{
public
Integer
createBaseIndCatalog
(
@RequestBody
IndCatalog
indCatalog
,
HttpServletResponse
response
)
throws
Exception
{
String
message
=
null
;
String
message
=
null
;
if
(
indCatalog
.
getId
()==
null
)
{
if
(
indCatalog
.
getId
()==
null
)
{
message
=
"新增基础项目录:{}"
;
message
=
"新增基础项目录:{}"
;
...
@@ -43,7 +44,7 @@ public class IndCatalogCtrl {
...
@@ -43,7 +44,7 @@ public class IndCatalogCtrl {
try
{
try
{
indCatalog
=
indCatalogService
.
saveOrUpdate
(
indCatalog
);
indCatalog
=
indCatalogService
.
saveOrUpdate
(
indCatalog
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
response
.
se
tStatus
(
500
);
response
.
se
ndError
(
500
,
e
.
getMessage
()
);
}
}
LogManager
.
logInfo
(
Constants
.
LOG_INDICATOR_BASE_INDI_API
,
message
,
indCatalog
.
getCatalogName
());
LogManager
.
logInfo
(
Constants
.
LOG_INDICATOR_BASE_INDI_API
,
message
,
indCatalog
.
getCatalogName
());
return
indCatalog
.
getId
();
return
indCatalog
.
getId
();
...
...
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