| | |
| | | @SaCheckPermission("CreateOutbound.review") |
| | | @PostMapping("/updateMaterialOutboundToExamine") |
| | | public Result updateMaterialOutboundToExamine( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.updateMaterialOutboundToExamine(object)){ |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"审核失败"); |
| | | |
| | | } |
| | | return Result.seccess(materialInventoryService.updateMaterialOutboundToExamine(object)); |
| | | } |
| | | |
| | | @ApiOperation("材料出库删除接口") |
| | | @SaCheckPermission("MaterialOutbound.delete") |
| | | @PostMapping("/deleteMaterialOutbound") |
| | | public Result deleteMaterialOutbound( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.deleteMaterialOutbound(object)){ |
| | | |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"删除失败"); |
| | | |
| | | } |
| | | return Result.seccess(materialInventoryService.deleteMaterialOutbound(object)); |
| | | } |
| | | |
| | | @ApiOperation("物料返库新增接口") |
| | | @SaCheckPermission("ReturnToStorageCreate.add") |
| | | @PostMapping("/saveReturningWarehouse") |
| | | public Result saveReturningWarehouse( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.saveReturningWarehouse(object)){ |
| | | return Result.seccess(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"保存失败"); |
| | | |
| | | } |
| | | return Result.seccess(materialInventoryService.saveReturningWarehouse(object)); |
| | | } |
| | | |
| | | @ApiOperation("物料返库新增查询接口") |
| | |
| | | @SaCheckPermission("ReturnToStorageCreate.review") |
| | | @PostMapping("/updateReturningWarehouseToExamine") |
| | | public Result updateReturningWarehouseToExamine( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.updateReturningWarehouseToExamine(object)){ |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"审核失败"); |
| | | |
| | | } |
| | | return Result.seccess(materialInventoryService.updateReturningWarehouseToExamine(object)); |
| | | } |
| | | |
| | | |