| | |
| | | @SaCheckPermission("AddReplenish.add") |
| | | @PostMapping("/saveReplenish") |
| | | public Result updateFinishedGoodsInventoryAllocate( @RequestBody Map<String,Object> object){ |
| | | if(replenishService.saveReplenish(object)){ |
| | | |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"补片失败"); |
| | | |
| | | } |
| | | return Result.seccess(replenishService.saveReplenish(object)); |
| | | } |
| | | |
| | | @ApiOperation("补片审核接口") |
| | | @SaCheckPermission("SelectReplenish.review") |
| | | @PostMapping("/updateReplenish") |
| | | public Result updateReplenish( @RequestBody Map<String,Object> object){ |
| | | if(replenishService.updateReplenish(object)){ |
| | | |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"审核失败"); |
| | | |
| | | } |
| | | return Result.seccess(replenishService.updateReplenish(object)); |
| | | } |
| | | } |