| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | |
| | | /** |
| | | * 分页列表查询 |
| | | */ |
| | | @GetMapping(value = "/list") |
| | | public R queryPageList(ProjectSearchDTO searchDTO, Query query) { |
| | | @PostMapping(value = "/list") |
| | | public R queryPageListPage(@RequestBody ProjectSearchDTO searchDTO) { |
| | | Query query = new Query(); |
| | | query.setCurrent(searchDTO.getCurrent()); |
| | | query.setSize(searchDTO.getSize()); |
| | | IPage<SgProjectInfoDO> page = sgProjectInfoService.queryPageList(Condition.getPage(query), searchDTO); |
| | | return R.data(page); |
| | | } |