Commit d9dd5d31 authored by neo's avatar neo

[Bugfix] use pathparam annotation instead of query params

parent 0f2a1acd
......@@ -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 javax.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());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment