| | |
| | | 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); |
| | | } |
| | | |
| | | /** |
| | | * 新增 农资厂家表 |
| | |
| | | return R.status(stockfactoryService.saveOrUpdate(stockfactory)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 删除 农资厂家表 |
| | | */ |
| | |
| | | return R.status(stockfactoryService.deleteLogic(Func.toLongList(ids))); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 农资列表 |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectStockFa") |
| | | public R selectStockFa() { |
| | | return R.data(stockfactoryService.selectStockFa()); |
| | | } |
| | | |
| | | /** |
| | | * 小程序农资列表 |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectStockIn") |
| | | public R selectStockIn() { |
| | | return R.data(stockfactoryService.selectStockIn()); |
| | | } |
| | | |
| | | |
| | | } |