| | |
| | | @SaCheckPermission("CreateOutbound.add") |
| | | @PostMapping("/saveMaterialOutbound") |
| | | public Result saveMaterialOutbound( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.saveMaterialOutbound(object)){ |
| | | return Result.seccess(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"保存失败"); |
| | | |
| | | } |
| | | return Result.seccess(materialInventoryService.saveMaterialOutbound(object)); |
| | | |
| | | } |
| | | |
| | | @ApiOperation("物料新增接口") |
| | |
| | | return Result.seccess(materialInventoryService.addSelectSurplusMaterialsDate(object)); |
| | | } |
| | | |
| | | @ApiOperation("物料出库打印接口") |
| | | @SaCheckPermission("SelectIngredientsStock.search") |
| | | @GetMapping ("/printCreateOutbound/{materialOutboundId}") |
| | | public Result printCreateOutbound(@PathVariable String materialOutboundId) { |
| | | return Result.seccess(materialInventoryService.printCreateOutbound(materialOutboundId)); |
| | | } |
| | | |
| | | |
| | | |
| | | |