| | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.sales.dto.SalesLedgerDto; |
| | | import com.ruoyi.stock.dto.StockInRecordDto; |
| | | import com.ruoyi.stock.service.StockInRecordService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @PostMapping("/reAudit") |
| | | @Log(title = "入库管理-反审入库", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "批量反审入库记录") |
| | | public AjaxResult reAudit(@RequestBody StockInRecordDto approveDto) { |
| | | if(CollectionUtils.isEmpty(approveDto.getIds())){ |
| | | return AjaxResult.error("请选择至少一条数据"); |
| | | } |
| | | stockInRecordService.batchReAudit(approveDto.getIds()); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @GetMapping("/bindableSalesLedger") |
| | | @Operation(summary = "代储入库-可绑定的销售订单(代储类型销售台账)下拉") |
| | | public AjaxResult bindableSalesLedger(Page page, SalesLedgerDto salesLedgerDto) { |
| | | return AjaxResult.success(stockInRecordService.listBindableSalesLedger(page, salesLedgerDto)); |
| | | } |
| | | |
| | | } |