| | |
| | | @PathVariable String processes, |
| | | @PathVariable String orderId, |
| | | @RequestBody ProductionScheduling productionScheduling){ |
| | | return Result.seccess(productionSchedulingService.selectLastScheduling(selectTime1,selectTime2,processes,orderId,productionScheduling)); |
| | | return Result.success(productionSchedulingService.selectLastScheduling(selectTime1,selectTime2,processes,orderId,productionScheduling)); |
| | | |
| | | } |
| | | //点击查询排版数据 |
| | |
| | | @PathVariable Integer state, |
| | | @RequestBody ProductionScheduling productionScheduling){ |
| | | |
| | | return Result.seccess(productionSchedulingService.selectSchedulingSv(pageNum, pageSize,selectTime1,selectTime2,orderIds,processes,state,productionScheduling)); |
| | | return Result.success(productionSchedulingService.selectSchedulingSv(pageNum, pageSize,selectTime1,selectTime2,orderIds,processes,state,productionScheduling)); |
| | | |
| | | } |
| | | |
| | |
| | | public Result addScheduling( @RequestBody Map<String,Object> object){ |
| | | |
| | | if(productionSchedulingService.addSchedulingSv(object)){ |
| | | return Result.seccess(); |
| | | return Result.success(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"保存失败"); |
| | | |
| | |
| | | public Result deleteScheduling( @RequestBody Map<String,Object> object) throws Exception{ |
| | | |
| | | if(productionSchedulingService.deleteSchedulingSv(object)){ |
| | | return Result.seccess(); |
| | | return Result.success(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"删除失败"); |
| | | |
| | |
| | | public Result examineScheduling( @RequestBody Map<String,Object> object){ |
| | | |
| | | if(productionSchedulingService.examineSchedulingSv(object)){ |
| | | return Result.seccess(); |
| | | return Result.success(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"审核失败"); |
| | | |
| | |
| | | public Result cancelReviewScheduling( @RequestBody Map<String,Object> object){ |
| | | |
| | | if(productionSchedulingService.cancelReviewSchedulingSv(object)){ |
| | | return Result.seccess(); |
| | | return Result.success(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"反审失败"); |
| | | |