| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import liquibase.pro.packaged.S; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入attach") |
| | | public R<IPage<Attach>> list(Attach attach, Query query) { |
| | | public R<IPage<Attach>> list(Attach attach, Query query, String deptid, String type) { |
| | | attach.setDeptid(deptid); |
| | | attach.setType(type); |
| | | IPage<Attach> pages = attachService.page(Condition.getPage(query), Condition.getQueryWrapper(attach)); |
| | | return R.data(pages); |
| | | } |