Commit 26c6c131 authored by neo's avatar neo

[Bugfix] fixed isProjectStatsuExist paramerter error

parent 0da6a1e8
...@@ -40,7 +40,8 @@ public class ProjectStatusManageController { ...@@ -40,7 +40,8 @@ public class ProjectStatusManageController {
return projectStatusManageService.getProjectStatus(projectId, periodId); return projectStatusManageService.getProjectStatus(projectId, periodId);
} }
@RequestMapping("isProjectStatusExisted/{projectId}/{periodId}") @RequestMapping(value = {"isProjectStatusExisted/{projectId}/{periodId}"}, method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@ResponseBody @ResponseBody
public OperationResultDto<ProjectStatusManage> isProjectStatusExisted(@PathVariable String projectId, public OperationResultDto<ProjectStatusManage> isProjectStatusExisted(@PathVariable String projectId,
@PathVariable int periodId) { @PathVariable int periodId) {
......
...@@ -128,7 +128,7 @@ public class ProjectStatusManageServiceImpl { ...@@ -128,7 +128,7 @@ public class ProjectStatusManageServiceImpl {
public OperationResultDto<ProjectStatusManage> isProjectStatusExisted(String projectId, int periodId) { public OperationResultDto<ProjectStatusManage> isProjectStatusExisted(String projectId, int periodId) {
ProjectStatusManageExample example = new ProjectStatusManageExample(); ProjectStatusManageExample example = new ProjectStatusManageExample();
example.createCriteria().andProjectIdEqualTo(projectId).andPeriodIdEqualTo(Integer.parseInt(projectId)); example.createCriteria().andProjectIdEqualTo(projectId).andPeriodIdEqualTo(periodId);
List<ProjectStatusManage> manage = projectStatusManageMapper.selectByExample(example); List<ProjectStatusManage> manage = projectStatusManageMapper.selectByExample(example);
OperationResultDto<ProjectStatusManage> dto = new OperationResultDto(); OperationResultDto<ProjectStatusManage> dto = new OperationResultDto();
dto.setResult(true); dto.setResult(true);
......
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