Commit 26c6c131 authored by neo's avatar neo

[Bugfix] fixed isProjectStatsuExist paramerter error

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