Subversion Repositories SmartDukaan

Rev

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

Rev 30645 Rev 30659
Line 1095... Line 1095...
1095
			}
1095
			}
1096
 
1096
 
1097
		}
1097
		}
1098
	}
1098
	}
1099
 
1099
 
-
 
1100
	@Autowired
-
 
1101
	private SaholicInventoryService saholicInventoryService;
-
 
1102
 
-
 
1103
	public void updateSaholicCISTable() {
-
 
1104
		saholicInventoryService.updateSaholicCIS();
-
 
1105
	}
-
 
1106
 
1100
 
1107
 
1101
	private class SioTuple {
1108
	private class SioTuple {
1102
		int inventoryId;
1109
		int inventoryId;
1103
		SchemeType schemeType;
1110
		SchemeType schemeType;
1104
 
1111
 
Line 1741... Line 1748...
1741
			String adhaarBEncodstring = encodeFileToBase64Binary(adharb);
1748
			String adhaarBEncodstring = encodeFileToBase64Binary(adharb);
1742
			mandiiService.documentUpload(pan, fk.getMobile(), "AADHAAR", adhaarBEncodstring, "BACK");
1749
			mandiiService.documentUpload(pan, fk.getMobile(), "AADHAAR", adhaarBEncodstring, "BACK");
1743
 
1750
 
1744
			if (ca == true) {
1751
			if (ca == true) {
1745
				AccountStatusResponseOut accountStatusResponseOut = mandiiService.getStatus(fs.getPan());
1752
				AccountStatusResponseOut accountStatusResponseOut = mandiiService.getStatus(fs.getPan());
1746
 
-
 
1747
				this.setCreditAccount(fs.getId(), accountStatusResponseOut);
1753
				this.setCreditAccount(fs.getId(), accountStatusResponseOut);
1748
			}
1754
			}
1749
 
1755
 
1750
		}
1756
		}
1751
 
1757
 
Line 1754... Line 1760...
1754
	private void setCreditAccount(int fofoId, AccountStatusResponseOut accountStatusResponseOut) {
1760
	private void setCreditAccount(int fofoId, AccountStatusResponseOut accountStatusResponseOut) {
1755
 
1761
 
1756
		CreditAccount creditAccount = creditAccountRepository.selectByFofoIdAndGateway(fofoId, Gateway.MANDII);
1762
		CreditAccount creditAccount = creditAccountRepository.selectByFofoIdAndGateway(fofoId, Gateway.MANDII);
1757
 
1763
 
1758
		if (creditAccount == null) {
1764
		if (creditAccount == null) {
1759
 
-
 
1760
			creditAccount = new CreditAccount();
1765
			creditAccount = new CreditAccount();
1761
 
-
 
1762
			creditAccount.setFofoId(fofoId);
1766
			creditAccount.setFofoId(fofoId);
1763
			creditAccount.setGateway(Gateway.MANDII);
1767
			creditAccount.setGateway(Gateway.MANDII);
1764
 
-
 
1765
		}
1768
		}
1766
 
1769
 
1767
		if (accountStatusResponseOut == null) {
1770
		if (accountStatusResponseOut == null) {
1768
			creditAccount.setCreditStatus(CreditStatus.UNKNOWN);
1771
			creditAccount.setCreditStatus(CreditStatus.UNKNOWN);
1769
			creditAccount.setDescription("User company not found");
1772
			creditAccount.setDescription("User company not found");