package com.fjhx.wms.controller.stock; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.fjhx.wms.entity.stock.dto.StockWaitDto; import com.fjhx.wms.entity.stock.dto.StockWaitSelectDto; import com.fjhx.wms.entity.stock.vo.StockWaitVo; import com.fjhx.wms.service.stock.StockWaitService; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.domain.BaseSelectDto; import com.ruoyi.common.enums.BusinessType; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** *

* 待出入库 前端控制器 *

* * @since 2023-03-22 */ //@DS(SourceConstant.WMS) @RestController @RequestMapping("/stockWait") public class StockWaitController { @Autowired private StockWaitService stockWaitService; /** * 待出入库分页 */ @PostMapping("/page") public Page page(@RequestBody StockWaitSelectDto dto) { return stockWaitService.getPage(dto); } /** * 待出入库明细 */ @PostMapping("/detail") public StockWaitVo detail(@RequestBody BaseSelectDto dto) { return stockWaitService.detail(dto.getId()); } /** * 待出入库新增 */ @Log(title = "待出入库", businessType = BusinessType.UPDATE) @PostMapping("/add") public void add(@RequestBody StockWaitDto stockWaitDto) { stockWaitService.add(stockWaitDto); } /** * 结束入库 */ @Log(title = "待入库-结束入库", businessType = BusinessType.UPDATE) @PostMapping("/endStorage") public void endStorage(@RequestBody BaseSelectDto dto) { stockWaitService.endStorage(dto.getId()); } }