| | |
| | | @SaCheckPermission("CreateProductStock.add") |
| | | @PostMapping("/addSelectWarehousing") |
| | | public Result addSelectWarehousing( @RequestBody Map<String,Object> object){ |
| | | if(finishedGoodsInventoryService.addSelectWarehousing(object)){ |
| | | return Result.seccess(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"入库失败"); |
| | | return Result.seccess(finishedGoodsInventoryService.addSelectWarehousing(object)); |
| | | |
| | | } |
| | | } |
| | | |
| | | /*查询可发货的成品数据*/ |
| | |
| | | @SaCheckPermission("FinishedProductOut.add") |
| | | @PostMapping("/addDeliveryDetail") |
| | | public Result addDeliveryDetail( @RequestBody Map<String,Object> object){ |
| | | if(finishedGoodsInventoryService.addDeliveryDetail(object)){ |
| | | return Result.seccess(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"出库失败"); |
| | | |
| | | } |
| | | return Result.seccess(finishedGoodsInventoryService.addDeliveryDetail(object)); |
| | | } |
| | | |
| | | /* 调拨查询*/ |
| | |
| | | @SaCheckPermission("OrderAllocation.add") |
| | | @PostMapping("/updateFinishedGoodsInventoryAllocate") |
| | | public Result updateFinishedGoodsInventoryAllocate( @RequestBody Map<String,Object> object){ |
| | | if(finishedGoodsInventoryService.updateFinishedGoodsInventoryAllocate(object)){ |
| | | |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"调拨失败,请检查订单输入是否正确"); |
| | | |
| | | } |
| | | return Result.seccess(finishedGoodsInventoryService.updateFinishedGoodsInventoryAllocate(object)); |
| | | } |
| | | |
| | | /*调拨记录查询*/ |
| | |
| | | @SaCheckPermission("FinishedGoodsIssue.add") |
| | | @PostMapping("/updateFinishedGoodsInventoryTakeOut") |
| | | public Result updateFinishedGoodsInventoryTakeOut( @RequestBody Map<String,Object> object){ |
| | | |
| | | if(finishedGoodsInventoryService.updateFinishedGoodsInventoryTakeOut(object)){ |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"领出失败"); |
| | | |
| | | } |
| | | return Result.seccess(finishedGoodsInventoryService.updateFinishedGoodsInventoryTakeOut(object)); |
| | | } |
| | | |
| | | /*领出记录查询*/ |
| | |
| | | @ApiOperation("订单返工查询接口") |
| | | @PostMapping("/updateFinishedGoodsInventoryRework") |
| | | public Result updateFinishedGoodsInventoryRework( @RequestBody Map<String,Object> object){ |
| | | |
| | | if(finishedGoodsInventoryService.updateFinishedGoodsInventoryRework(object)){ |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"返工失败"); |
| | | |
| | | } |
| | | return Result.seccess(finishedGoodsInventoryService.updateFinishedGoodsInventoryRework(object)); |
| | | } |
| | | |
| | | |
| | |
| | | @SaCheckPermission("TakeOutRecord.review") |
| | | @PostMapping("/updateFinishedGoodsInventoryToExamine") |
| | | public Result updateFinishedGoodsInventoryToExamine( @RequestBody Map<String,Object> object){ |
| | | |
| | | if(finishedGoodsInventoryService.updateFinishedGoodsInventoryToExamine(object,"审核")){ |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"领出失败"); |
| | | |
| | | } |
| | | return Result.seccess(finishedGoodsInventoryService.updateFinishedGoodsInventoryToExamine(object,"审核")); |
| | | } |
| | | /*订单反审*/ |
| | | @ApiOperation("订单反审接口") |
| | | @SaCheckPermission("TakeOutRecord.review") |
| | | @PostMapping("/updateFinishedGoodsInventoryCounterExamination") |
| | | public Result updateFinishedGoodsInventoryCounterExamination( @RequestBody Map<String,Object> object){ |
| | | |
| | | if(finishedGoodsInventoryService.updateFinishedGoodsInventoryToExamine(object,"反审")){ |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"领出失败"); |
| | | |
| | | } |
| | | return Result.seccess(finishedGoodsInventoryService.updateFinishedGoodsInventoryToExamine(object,"反审")); |
| | | } |
| | | |
| | | /*订单作废*/ |
| | |
| | | @SaCheckPermission("TakeOutRecord.update") |
| | | @PostMapping("/cancelFinishedGoodsInventoryToExamine") |
| | | public Result cancelFinishedGoodsInventoryToExamine( @RequestBody Map<String,Object> object){ |
| | | |
| | | if(finishedGoodsInventoryService.cancelFinishedGoodsInventoryToExamine(object)){ |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"领出失败"); |
| | | |
| | | } |
| | | return Result.seccess(finishedGoodsInventoryService.cancelFinishedGoodsInventoryToExamine(object)); |
| | | } |
| | | |
| | | /*出入库记录查询*/ |
| | |
| | | /*出入库返回*/ |
| | | @ApiOperation("出入库返回接口") |
| | | @SaCheckPermission("storageRecord.update") |
| | | @PostMapping("/cancelFinishedGoodsInventoryStorage") |
| | | @PostMapping("/cancelFini shedGoodsInventoryStorage") |
| | | public Result cancelFinishedGoodsInventoryStorage( @RequestBody Map<String,Object> object){ |
| | | |
| | | if(finishedGoodsInventoryService.cancelFinishedGoodsInventoryStorage(object)){ |
| | | return Result.seccess(); |
| | | |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"返回失败"); |
| | | |
| | | } |
| | | return Result.seccess(finishedGoodsInventoryService.cancelFinishedGoodsInventoryStorage(object)); |
| | | } |
| | | |
| | | @ApiOperation("成品库存记录查询接口") |