Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
d9dd5d31
Commit
d9dd5d31
authored
Jun 05, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] use pathparam annotation instead of query params
parent
0f2a1acd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ProjectStatusManageController.java
...axtech/atms/controller/ProjectStatusManageController.java
+5
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/ProjectStatusManageController.java
View file @
d9dd5d31
...
...
@@ -8,13 +8,11 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.VMRegionDevTreeData
;
import
pwc.taxtech.atms.dto.navtree.DevTreeDto
;
import
pwc.taxtech.atms.dto.taxadmin.ProjectStatusManageDto
;
import
pwc.taxtech.atms.service.IdentityService
;
import
pwc.taxtech.atms.service.ProjectStatusManageService
;
import
java
.util.List
;
import
java
x.ws.rs.PathParam
;
@RestController
@RequestMapping
(
"/api/v1/ProjectStatusManage"
)
...
...
@@ -23,13 +21,16 @@ public class ProjectStatusManageController {
@Autowired
private
ProjectStatusManageService
projectStatusManageService
;
@Autowired
private
IdentityService
identityService
;
@ApiOperation
(
value
=
"setProjectStatus"
,
notes
=
""
)
@RequestMapping
(
value
=
{
"/setProjectStatus/{dbName}/{periodId}/{status}"
},
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
@ResponseBody
public
OperationResultDto
<
ProjectStatusManageDto
>
setProjectStatus
(
String
dbName
,
Integer
periodId
,
Integer
status
)
{
public
OperationResultDto
<
ProjectStatusManageDto
>
setProjectStatus
(
@PathParam
(
"dbName"
)
String
dbName
,
@PathParam
(
"periodId"
)
Integer
periodId
,
@PathParam
(
"status"
)
Integer
status
)
{
return
projectStatusManageService
.
setProjectStatus
(
dbName
,
periodId
,
status
,
identityService
.
getIdentityUser
().
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