| | |
| | | package com.ruoyi.warehouse.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | |
| | | IPage<WarehouseGoodsShelves> listPage = warehouseGoodsShelvesService.listPage(page, warehouseGoodsShelves); |
| | | return AjaxResult.success(listPage); |
| | | } |
| | | |
| | | @GetMapping("/listById") |
| | | @ApiOperation("商品货架-查询") |
| | | @Log(title = "商品货架-查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult listById(Long warehouseId) { |
| | | List<WarehouseGoodsShelves> list = warehouseGoodsShelvesService.list(new QueryWrapper<WarehouseGoodsShelves>().lambda() |
| | | .eq(WarehouseGoodsShelves::getWarehouseId, warehouseId)); |
| | | return AjaxResult.success(list); |
| | | } |
| | | @PostMapping("/add") |
| | | @ApiOperation("商品货架-添加") |
| | | @Log(title = "商品货架-添加", businessType = BusinessType.INSERT) |