Subversion Repositories SmartDukaan

Rev

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

Rev 35165 Rev 35250
Line 180... Line 180...
180
 
180
 
181
    @Autowired
181
    @Autowired
182
    private Reconciliation reconciliation;
182
    private Reconciliation reconciliation;
183
 
183
 
184
    @Autowired
184
    @Autowired
-
 
185
    private Migrations migrations;
-
 
186
 
-
 
187
    @Autowired
185
    CaptchaService captchaService;
188
    CaptchaService captchaService;
186
 
189
 
187
    @Autowired
190
    @Autowired
188
    POScheduler poScheduler;
191
    POScheduler poScheduler;
189
 
192
 
Line 240... Line 243...
240
 
243
 
241
        if (args.containsOption("addHdfcPayment")) {
244
        if (args.containsOption("addHdfcPayment")) {
242
            runOnceTasks.addPayment();
245
            runOnceTasks.addPayment();
243
            System.exit(0);
246
            System.exit(0);
244
        }
247
        }
-
 
248
        if (args.containsOption("migrateOriginalInventoryItemId")) {
-
 
249
            int batchSize = 10_000;
-
 
250
            if (args.containsOption("batchSize")) {
-
 
251
                try {
-
 
252
                    batchSize = Integer.parseInt(args.getOptionValues("batchSize").get(0));
-
 
253
                } catch (Exception e) {
-
 
254
                    LOGGER.warn("Invalid batchSize provided, defaulting to {}", batchSize);
-
 
255
                }
-
 
256
            }
-
 
257
            LOGGER.info("Starting migration for warehouse.inventoryItem.originalInventoryItemId with batchSize={}", batchSize);
-
 
258
            migrations.migrateWarehouseOriginalInventoryItemId(batchSize);
-
 
259
            LOGGER.info("Migration completed.");
-
 
260
            System.exit(0);
-
 
261
        }
245
        if (args.containsOption("processSchemeOut")) {
262
        if (args.containsOption("processSchemeOut")) {
246
            System.out.println("Process schemeOut");
263
            System.out.println("Process schemeOut");
247
            int orderId = Integer.parseInt(args.getOptionValues("orderid").get(0));
264
            int orderId = Integer.parseInt(args.getOptionValues("orderid").get(0));
248
            int fofoId = Integer.parseInt(args.getOptionValues("fofoid").get(0));
265
            int fofoId = Integer.parseInt(args.getOptionValues("fofoid").get(0));
249
            runOnceTasks.processSchemeOut(fofoId, orderId);
266
            runOnceTasks.processSchemeOut(fofoId, orderId);