Subversion Repositories SmartDukaan

Rev

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

Rev 29906 Rev 29924
Line 1621... Line 1621...
1621
			mandiiUser.setAadharNumber(aadhaar);
1621
			mandiiUser.setAadharNumber(aadhaar);
1622
		}
1622
		}
1623
		mandiiUser.setGender(Gender.valueOf(gender));
1623
		mandiiUser.setGender(Gender.valueOf(gender));
1624
		mandiiService.createAccount(cr.getBusinessName(), mandiiUser);
1624
		mandiiService.createAccount(cr.getBusinessName(), mandiiUser);
1625
	}
1625
	}
-
 
1626
	
-
 
1627
	@Autowired
-
 
1628
	CreditAccountRepository creditAccountRepository;
-
 
1629
	public void mandiiUsers() throws Exception {
-
 
1630
		List<CreditAccount> creditAccounts =  creditAccountRepository.selectAll();
-
 
1631
		List<Integer> fofoIds = creditAccounts.stream().filter(x->x.getGateway().equals(Gateway.MANDII) && (x.getCreditStatus().equals(CreditStatus.UNKNOWN) || x.getCreditStatus().equals(CreditStatus.TO_BE_EVALUATED))).map(x->x.getFofoId()).collect(Collectors.toList());
-
 
1632
		List<FofoStore> fsList = fofoStoreRepository.selectByRetailerIds(fofoIds);
-
 
1633
		for(FofoStore store : fsList) {
-
 
1634
			this.mandiiUsers(store.getPan());
-
 
1635
		}
-
 
1636
		
-
 
1637
	}
1626
 
1638
 
1627
	public void mandiiUsers(String pan) throws Exception {
1639
	public void mandiiUsers(String pan) throws Exception {
1628
		FofoStore fs = fofoStoreRepository.selectByPan(pan);
1640
		FofoStore fs = fofoStoreRepository.selectByPan(pan);
1629
 
1641
 
1630
		PartnerOnBoardingPanel pob = partnerOnBoardingPanelRepository.selectByCode(fs.getCode());
1642
		PartnerOnBoardingPanel pob = partnerOnBoardingPanelRepository.selectByCode(fs.getCode());