Subversion Repositories SmartDukaan

Rev

Rev 35267 | Rev 35277 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35267 Rev 35276
Line 513... Line 513...
513
                }
513
                }
514
 
514
 
515
            }
515
            }
516
            if (args.containsOption("changeFulfillmentWarehouse")) {
516
            if (args.containsOption("changeFulfillmentWarehouse")) {
517
                if (args.containsOption("orderId") && args.containsOption("whId")) {
517
                if (args.containsOption("orderId") && args.containsOption("whId")) {
518
                    int orderId = Integer.parseInt(args.getOptionValues("orderId").get(0));
518
                    List<Integer> orderIds = args.getOptionValues("orderId").stream()
-
 
519
                            .map(Integer::parseInt).collect(Collectors.toList());
519
                    int itemId = Integer.parseInt(args.getOptionValues("whId").get(0));
520
                    int warehouseId = Integer.parseInt(args.getOptionValues("whId").get(0));
-
 
521
                    for (Integer orderId : orderIds) {
520
                    runOnceTasks.changeFulfillmentWarehouse(orderId, itemId);
522
                        runOnceTasks.changeFulfillmentWarehouse(orderId, warehouseId);
-
 
523
                    }
521
                }
524
                }
522
                System.exit(0);
525
                System.exit(0);
523
            }
526
            }
524
            if (args.containsOption("1")) {
527
            if (args.containsOption("1")) {
525
                if (args.containsOption("test")) {
528
                if (args.containsOption("test")) {