| | |
| | | @GetMapping("/listPage") |
| | | @Log(title = "生产出库-出库管理-列表", businessType = BusinessType.OTHER) |
| | | @ApiOperation(value = "出库管理列表") |
| | | public AjaxResult listPage(Page page, ConsumablesOutRecordDto ConsumablesOutRecordDto) { |
| | | IPage<ConsumablesOutRecordDto> result = consumablesUnInventoryDto.listPage(page, ConsumablesOutRecordDto); |
| | | public AjaxResult listPage(Page page, ConsumablesOutRecordDto consumablesOutRecordDto) { |
| | | IPage<ConsumablesOutRecordDto> result = consumablesUnInventoryDto.listPage(page, consumablesOutRecordDto); |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @PostMapping("") |
| | | @Log(title = "出库管理-新增出库", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody ConsumablesOutRecordDto ConsumablesOutRecordDto) { |
| | | return AjaxResult.success(consumablesUnInventoryDto.add(ConsumablesOutRecordDto)); |
| | | public AjaxResult add(@RequestBody ConsumablesOutRecordDto consumablesOutRecordDto) { |
| | | return AjaxResult.success(consumablesUnInventoryDto.add(consumablesOutRecordDto)); |
| | | } |
| | | |
| | | @PutMapping("/{id}") |
| | | @Log(title = "出库管理-更新出库", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@PathVariable("id") Long id, @RequestBody ConsumablesOutRecordDto ConsumablesOutRecordDto) { |
| | | return AjaxResult.success(consumablesUnInventoryDto.update(id, ConsumablesOutRecordDto)); |
| | | public AjaxResult update(@PathVariable("id") Long id, @RequestBody ConsumablesOutRecordDto consumablesOutRecordDto) { |
| | | return AjaxResult.success(consumablesUnInventoryDto.update(id, consumablesOutRecordDto)); |
| | | } |
| | | |
| | | @DeleteMapping("") |
| | |
| | | |
| | | @PostMapping("/exportConsumablesOutRecord") |
| | | @ApiOperation("导出出库记录") |
| | | public void exportConsumablesOutRecord(HttpServletResponse response, ConsumablesOutRecordDto ConsumablesOutRecordDto) { |
| | | consumablesUnInventoryDto.exportConsumablesOutRecord(response,ConsumablesOutRecordDto); |
| | | public void exportConsumablesOutRecord(HttpServletResponse response, ConsumablesOutRecordDto consumablesOutRecordDto) { |
| | | consumablesUnInventoryDto.exportConsumablesOutRecord(response,consumablesOutRecordDto); |
| | | } |
| | | |
| | | } |