| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.Project; |
| | | import com.whyc.service.ProjectService; |
| | |
| | | public Response getProjectById(@RequestParam int id){ |
| | | return service.getProjectById(id); |
| | | } |
| | | @GetMapping("getCount") |
| | | @ApiOperation(value = "获取统计数据") |
| | | public Response getProjectStatusData(){ |
| | | return service.getProjectStatusData(); |
| | | } |
| | | |
| | | @PostMapping("search") |
| | | @ApiOperation(value = "查询项目分页-根据筛选条件") |
| | | public Response<IPage<Project>> getPageByCondition(@RequestParam int pageNum, @RequestParam int pageSize, @RequestBody Project project){ |
| | | public Response<PageInfo<Project>> getPageByCondition(@RequestParam int pageNum, @RequestParam int pageSize, @RequestBody Project project){ |
| | | return service.getPageByCondition(pageNum,pageSize,project); |
| | | } |
| | | |