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
a59ca8a1
Commit
a59ca8a1
authored
Aug 03, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改状态
parent
a4ea3320
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
IndCatalogCtrl.java
...om/keymobile/indicators/api/hytobacco/IndCatalogCtrl.java
+7
-5
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/IndCatalogCtrl.java
View file @
a59ca8a1
...
@@ -2,14 +2,13 @@ package com.keymobile.indicators.api.hytobacco;
...
@@ -2,14 +2,13 @@ package com.keymobile.indicators.api.hytobacco;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseStatus
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.keymobile.indicators.constant.Constants
;
import
com.keymobile.indicators.constant.Constants
;
...
@@ -34,15 +33,18 @@ public class IndCatalogCtrl {
...
@@ -34,15 +33,18 @@ public class IndCatalogCtrl {
@ApiOperation
(
value
=
"新建基础指标目录"
,
notes
=
"新建基础指标目录"
)
@ApiOperation
(
value
=
"新建基础指标目录"
,
notes
=
"新建基础指标目录"
)
@PostMapping
(
value
=
"/createBaseIndCatalog"
)
@PostMapping
(
value
=
"/createBaseIndCatalog"
)
@ResponseBody
public
Integer
createBaseIndCatalog
(
@RequestBody
IndCatalog
indCatalog
,
HttpServletResponse
response
)
throws
ApiException
{
public
Integer
createBaseIndCatalog
(
@RequestBody
IndCatalog
indCatalog
)
throws
ApiException
{
String
message
=
null
;
String
message
=
null
;
if
(
indCatalog
.
getId
()==
null
)
{
if
(
indCatalog
.
getId
()==
null
)
{
message
=
"新增基础项目录:{}"
;
message
=
"新增基础项目录:{}"
;
}
else
{
}
else
{
message
=
"修改基础项目录:{}"
;
message
=
"修改基础项目录:{}"
;
}
}
try
{
indCatalog
=
indCatalogService
.
saveOrUpdate
(
indCatalog
);
indCatalog
=
indCatalogService
.
saveOrUpdate
(
indCatalog
);
}
catch
(
Exception
e
)
{
response
.
setStatus
(
500
);
}
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