| | |
| | | import org.springblade.modules.stockfactory.service.IStockfactoryService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 农资厂家表 控制器 |
| | | * |
| | |
| | | IPage<StockfactoryVO> pages = stockfactoryService.selectStockfactoryPage(Condition.getPage(query), stockfactory); |
| | | return R.data(pages); |
| | | } |
| | | /** |
| | | * 自定义分页 农资厂家表 |
| | | */ |
| | | @GetMapping("/pages") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入stockfactory") |
| | | public R<List<StockfactoryVO>> pages(StockfactoryVO stockfactory) { |
| | | List<StockfactoryVO> pages = stockfactoryService.selectStockfactoryPages(stockfactory); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 新增 农资厂家表 |