Subversion Repositories SmartDukaan

Rev

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

Rev 29308 Rev 29361
Line 35... Line 35...
35
import com.smartdukaan.cron.scheduled.ScheduledTasks;
35
import com.smartdukaan.cron.scheduled.ScheduledTasks;
36
import com.smartdukaan.cron.scheduled.TicketRelatedScheduledTask;
36
import com.smartdukaan.cron.scheduled.TicketRelatedScheduledTask;
37
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
37
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
38
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
38
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
39
import com.spice.profitmandi.dao.repository.cs.CsService;
39
import com.spice.profitmandi.dao.repository.cs.CsService;
-
 
40
import com.spice.profitmandi.dao.repository.dtr.Mongo;
-
 
41
import com.spice.profitmandi.dao.util.ContentPojoPopulator;
40
 
42
 
41
@SpringBootApplication
43
@SpringBootApplication
42
@EnableCaching
44
@EnableCaching
43
@EnableScheduling
45
@EnableScheduling
44
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
46
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
Line 62... Line 64...
62
	private InvestmentRelatedTasks investmentRelatedTasks;
64
	private InvestmentRelatedTasks investmentRelatedTasks;
63
 
65
 
64
	@Autowired
66
	@Autowired
65
	private CsService csService;
67
	private CsService csService;
66
 
68
 
-
 
69
	@Autowired
-
 
70
	private ContentPojoPopulator contentPojoPopulator;
-
 
71
 
67
	public static void main(String[] args) throws Throwable {
72
	public static void main(String[] args) throws Throwable {
68
		new SpringApplicationBuilder(Application.class).web(WebApplicationType.NONE).run(args);
73
		new SpringApplicationBuilder(Application.class).web(WebApplicationType.NONE).run(args);
69
	}
74
	}
70
 
75
 
71
	@Bean
76
	@Bean
Line 562... Line 567...
562
				scheduledTasks.rollOutUpgardedMarginsNextMonth();
567
				scheduledTasks.rollOutUpgardedMarginsNextMonth();
563
			}
568
			}
564
			if (args.containsOption("checkCancellationMargin")) {
569
			if (args.containsOption("checkCancellationMargin")) {
565
				scheduledTasks.checkCancellationMargin();
570
				scheduledTasks.checkCancellationMargin();
566
			}
571
			}
-
 
572
			if (args.containsOption("getShortContent")) {
-
 
573
				contentPojoPopulator.getShortContent("1023059");
-
 
574
			}
567
 
575
 
568
			System.exit(0);
576
			System.exit(0);
569
		}
577
		}
570
 
578
 
571
	}
579
	}