| | |
| | | package com.ruoyi.business.controller; |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.business.dto.PendingInventoryDto; |
| | | import com.ruoyi.business.entity.PendingInventory; |
| | | import com.ruoyi.business.service.PendingInventoryService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/business/pendingInventory") |
| | | @RequestMapping("/pendingInventory") |
| | | public class PendingInventoryController { |
| | | |
| | | private PendingInventoryService pendingInventoryService; |
| | | |
| | | /** |
| | | * 待入库表查询 |
| | | */ |
| | | @GetMapping("/list") |
| | | public R<IPage<PendingInventory>> list(Page page, PendingInventoryDto pendingInventoryDto) { |
| | | IPage<PendingInventory> list = pendingInventoryService.selectPendingInventoryList(page,pendingInventoryDto); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | /** |
| | | * 新增修改 |
| | | */ |
| | | @PostMapping("/addOrEditPending") |
| | | public R addOrEditPending(@RequestBody PendingInventoryDto pendingInventoryDto) { |
| | | return R.ok(pendingInventoryService.addOrEditPending(pendingInventoryDto)); |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @DeleteMapping("/delPending") |
| | | public R remove(@RequestBody Long[] ids) { |
| | | return R.ok(pendingInventoryService.delByIds(ids)); |
| | | } |
| | | |
| | | } |