| | |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @PostMapping("frozenQuality") |
| | | @Log(title = "采购入库-库存管理-冻结不合格产品", businessType = BusinessType.UPDATE) |
| | | public AjaxResult frozenQuality(@RequestBody List<Integer> frozenIds) { |
| | | boolean result = procurementRecordService.frozenQuality(frozenIds); |
| | | if (result) { |
| | | return AjaxResult.success(); |
| | | } |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | | @PostMapping("thawQuality") |
| | | @Log(title = "采购入库-库存管理-解冻不合格产品", businessType = BusinessType.UPDATE) |
| | | public AjaxResult thawQuality(@RequestBody List<Integer> thawIds) { |
| | | boolean result = procurementRecordService.thawQuality(thawIds); |
| | | if (result) { |
| | | return AjaxResult.success(); |
| | | } |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | | @GetMapping("/listPageCopyByProduction") |
| | | @Log(title = "生产入库-库存管理-分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPageCopyByProduction(Page page, ProcurementPageDto procurementDto) { |
| | |
| | | |
| | | @GetMapping("/listPageProductionStock") |
| | | @Log(title = "库存管理-成品库存", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPageProductionStock(Page page) { |
| | | IPage<ProductModel> result = procurementRecordService.listPageProductionStock(page); |
| | | public AjaxResult listPageProductionStock(Page page, ProcurementPageDto procurementDto) { |
| | | IPage<ProductModel> result = procurementRecordService.listPageProductionStock(page,procurementDto); |
| | | return AjaxResult.success(result); |
| | | } |
| | | } |