Subversion Repositories SmartDukaan

Rev

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

Rev 29067 Rev 29100
Line 43... Line 43...
43
	static final List<String> paperFinanceServices = Arrays.asList("SAMSUNG SURE", "BAJAJ FINSERV", "HOME CREDIT",
43
	static final List<String> paperFinanceServices = Arrays.asList("SAMSUNG SURE", "BAJAJ FINSERV", "HOME CREDIT",
44
			"HDB", "CAPITAL FIRST");
44
			"HDB", "CAPITAL FIRST");
45
 
45
 
46
	public boolean getServiceStatusByCodeCreatedTimilines() throws NullPointerException {
46
	public boolean getServiceStatusByCodeCreatedTimilines() throws NullPointerException {
47
 
47
 
-
 
48
		if(this.getServiceCodeCreateTimestamp() != null ) {
48
		
49
		
49
		LocalDateTime timelineDate = this.getServiceCodeCreateTimestamp().plusDays(7);
50
		LocalDateTime timelineDate = this.getServiceCodeCreateTimestamp().plusDays(7);
50
		LocalDateTime currDate = LocalDate.now().atStartOfDay();
51
		LocalDateTime currDate = LocalDate.now().atStartOfDay();
51
 
52
 
52
		if (currDate.isBefore(timelineDate)) {
53
		if (currDate.isBefore(timelineDate)) {
53
			LOGGER.info("timeLinesDate");
54
			LOGGER.info("timeLinesDate");
54
			return true;
55
			return true;
55
		}
56
		}
-
 
57
		
-
 
58
		}
56
 
59
 
57
		return false;
60
		return false;
58
	}
61
	}
59
 
62
 
60
	public boolean getServiceStatusByCodeTimeStamp() throws NullPointerException {
63
	public boolean getServiceStatusByCodeTimeStamp() throws NullPointerException {
61
 
64
 
62
		LOGGER.info("thisName" + this.getName());
65
		LOGGER.info("thisName" + this.getName());
63
		LOGGER.info("fofoThis" + this.getFofoId());
66
		LOGGER.info("fofoThis" + this.getFofoId());
64
		
67
		
65
		if(this.getName() != null) {
68
		if(this.getName() != null  && this.getName() != "") {
66
	
69
	
67
		if (this.getName().equals("PAYTM") && this.getCreateTimestamp() != null ) {
70
		if (this.getName().equals("PAYTM") && this.getCreateTimestamp() != null ) {
68
 
71
 
69
			
72
			
70
			LocalDateTime paytmTime = this.getCreateTimestamp().plusDays(5);
73
			LocalDateTime paytmTime = this.getCreateTimestamp().plusDays(5);