Commit 9e30491a authored by srx's avatar srx

项目根据名称,建设单位筛选

parent 4678325d
...@@ -115,13 +115,17 @@ public class ProjectController extends BaseController { ...@@ -115,13 +115,17 @@ public class ProjectController extends BaseController {
*/ */
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/page") @GetMapping(value = "/page")
@ApiOperation(httpMethod = "GET", value = "项目信息表分页查询", notes = "项目信息表分页查询") @ApiOperation(httpMethod = "GET",value = "项目信息表分页查询", notes = "项目信息表分页查询")
public ResponseModel<Page<ProjectDto>> queryForPage(@RequestParam(value = "current") int current, @RequestParam public ResponseModel<Page<ProjectDto>> queryForPage(
(value = "size") int size) { @RequestParam(value = "current") int current,
@RequestParam(value = "size") int size,
@RequestParam(value = "name",required = false) String name,
@RequestParam(value = "constructionUnit",required = false) String constructionUnit
) {
Page<ProjectDto> page = new Page<ProjectDto>(); Page<ProjectDto> page = new Page<ProjectDto>();
page.setCurrent(current); page.setCurrent(current);
page.setSize(size); page.setSize(size);
return ResponseHelper.buildResponse(projectServiceImpl.queryForProjectPage(page)); return ResponseHelper.buildResponse(projectServiceImpl.queryForProjectPage(page, name, constructionUnit));
} }
/** /**
......
...@@ -28,8 +28,8 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project ...@@ -28,8 +28,8 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
/** /**
* 分页查询 * 分页查询
*/ */
public Page<ProjectDto> queryForProjectPage(Page<ProjectDto> page) { public Page<ProjectDto> queryForProjectPage(Page<ProjectDto> page ,String name,String constructionUnit) {
return this.queryForPage(page, null, false); return this.queryForPage(page, null, false,name,constructionUnit);
} }
......
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