Subversion Repositories SmartDukaan

Rev

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

Rev 31467 Rev 31666
Line 18... Line 18...
18
import com.spice.profitmandi.dao.model.SDCreditResponseOut;
18
import com.spice.profitmandi.dao.model.SDCreditResponseOut;
19
import com.spice.profitmandi.dao.model.SanctionRequestModel;
19
import com.spice.profitmandi.dao.model.SanctionRequestModel;
20
import com.spice.profitmandi.dao.model.SdCreditRequirementModel;
20
import com.spice.profitmandi.dao.model.SdCreditRequirementModel;
21
import com.spice.profitmandi.dao.repository.auth.AuthRepository;
21
import com.spice.profitmandi.dao.repository.auth.AuthRepository;
22
import com.spice.profitmandi.dao.repository.cs.CsService;
22
import com.spice.profitmandi.dao.repository.cs.CsService;
-
 
23
import com.spice.profitmandi.dao.repository.cs.CsService1;
23
import com.spice.profitmandi.dao.repository.dtr.CreditAccountRepository;
24
import com.spice.profitmandi.dao.repository.dtr.CreditAccountRepository;
24
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
25
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
25
import com.spice.profitmandi.dao.repository.dtr.UserRepository;
26
import com.spice.profitmandi.dao.repository.dtr.UserRepository;
26
import com.spice.profitmandi.dao.repository.fofo.CurrentPartnerDailyInvestmentRepository;
27
import com.spice.profitmandi.dao.repository.fofo.CurrentPartnerDailyInvestmentRepository;
27
import com.spice.profitmandi.dao.repository.fofo.PartnerDailyInvestmentRepository;
28
import com.spice.profitmandi.dao.repository.fofo.PartnerDailyInvestmentRepository;
Line 79... Line 80...
79
 
80
 
80
	@Autowired
81
	@Autowired
81
	private SDCreditService sdCreditService;
82
	private SDCreditService sdCreditService;
82
 
83
 
83
	@Autowired
84
	@Autowired
-
 
85
	private CsService1 csService1;
-
 
86
 
-
 
87
	@Autowired
84
	private NotificationService notificationService;
88
	private NotificationService notificationService;
85
 
89
 
86
	@Autowired
90
	@Autowired
87
	private AuthRepository authRepository;
91
	private AuthRepository authRepository;
88
 
92
 
Line 383... Line 387...
383
 
387
 
384
		LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
388
		LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
385
		String email = loginDetails.getEmailId();
389
		String email = loginDetails.getEmailId();
386
 
390
 
387
		AuthUser authUser = authRepository.selectByEmailOrMobile(email);
391
		AuthUser authUser = authRepository.selectByEmailOrMobile(email);
388
		Set<Integer> fofoIds = csService.getAuthFofoIds(email, false);
392
		Set<Integer> fofoIds = csService1.getAuthFofoIds(email, false);
389
 
393
 
390
		LOGGER.info("fofoIds" + fofoIds);
394
		LOGGER.info("fofoIds" + fofoIds);
391
		if (fofoIds == null) {
395
		if (fofoIds == null) {
392
			throw new ProfitMandiBusinessException("you are not authorized", "", "you are not authorized" + " " + "");
396
			throw new ProfitMandiBusinessException("you are not authorized", "", "you are not authorized" + " " + "");
393
		}
397
		}