| | |
| | | package com.ruoyi.management.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.management.domain.SlGoodsShelf; |
| | | import com.ruoyi.management.domain.SlStoreManagement; |
| | | import com.ruoyi.management.domain.SlStoreManagementImg; |
| | | import com.ruoyi.management.domain.dto.*; |
| | | import com.ruoyi.management.domain.vo.SlGoodsShelfVO; |
| | | import com.ruoyi.management.service.SlGoodsShelfService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/sl-goods-shelf") |
| | | public class SlGoodsShelfController { |
| | | |
| | | @Resource |
| | | private SlGoodsShelfService slGoodsShelfService; |
| | | |
| | | @PostMapping("/getGoodsShelfList") |
| | | @ApiOperation(value = "分页获货架表管理") |
| | | public R<PageDTO<SlGoodsShelfVO>> getGoodsShelfList(@RequestBody SlGoodsShelfQuery slGoodsShelfQuery) { |
| | | return R.ok(slGoodsShelfService.getGoodsShelfList(slGoodsShelfQuery)); |
| | | } |
| | | |
| | | @PostMapping("/addSlGoodsShelf") |
| | | @ApiOperation(value = "添加/修改货架管理") |
| | | public R addSlGoodsShelf(@RequestBody SlGoodsShelfDTO slGoodsShelfDTO) { |
| | | slGoodsShelfService.addSlGoodsShelf(slGoodsShelfDTO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation("删除仓库管理") |
| | | @DeleteMapping("/{id}") |
| | | public R<?> delStoreManagement( |
| | | @ApiParam(name = "id", value = "货架管理id", required = true) @PathVariable("id") Integer id) { |
| | | slGoodsShelfService.removeById(id); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/wfanzGoodsShelfList") |
| | | @ApiOperation(value = "货架获取未放置") |
| | | public R<List<SlGoodsShelf>> wfanzGoodsShelfList(@RequestBody GoodsShelfQuery goodsShelfQuery) { |
| | | return R.ok(slGoodsShelfService.wfanzGoodsShelfList(goodsShelfQuery)); |
| | | } |
| | | |
| | | @PostMapping("/fanzGoodsShelfList") |
| | | @ApiOperation(value = "货架放置到图片") |
| | | public R fanzGoodsShelfList(@RequestBody GoodsShelfDTO goodsShelfDTO) { |
| | | slGoodsShelfService.fanzGoodsShelfList(goodsShelfDTO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/getStoreManagementimgSheif") |
| | | @ApiOperation(value = "獲取仓库管理平面圖的仓库") |
| | | public R<List<SlGoodsShelf>> getStoreManagementimgSheif(@RequestBody GoodsShelfDTO goodsShelfDTO) { |
| | | return R.ok(slGoodsShelfService.getStoreManagementimgSheif(goodsShelfDTO)); |
| | | } |
| | | |
| | | } |