| Line 19... |
Line 19... |
| 19 |
import com.spice.profitmandi.dao.enumuration.transaction.PartnerVerificationApprovalStatus;
|
19 |
import com.spice.profitmandi.dao.enumuration.transaction.PartnerVerificationApprovalStatus;
|
| 20 |
import com.spice.profitmandi.dao.repository.dtr.UserRepository;
|
20 |
import com.spice.profitmandi.dao.repository.dtr.UserRepository;
|
| 21 |
import com.spice.profitmandi.dao.repository.dtr.*;
|
21 |
import com.spice.profitmandi.dao.repository.dtr.*;
|
| 22 |
import com.spice.profitmandi.dao.repository.fofo.FofoPartnerPaymentOptionRepository;
|
22 |
import com.spice.profitmandi.dao.repository.fofo.FofoPartnerPaymentOptionRepository;
|
| 23 |
import com.spice.profitmandi.dao.repository.fofo.PaymentOptionRepository;
|
23 |
import com.spice.profitmandi.dao.repository.fofo.PaymentOptionRepository;
|
| - |
|
24 |
import com.spice.profitmandi.dao.repository.fofo.PincodePartnerRepository;
|
| 24 |
import com.spice.profitmandi.dao.repository.inventory.StateRepository;
|
25 |
import com.spice.profitmandi.dao.repository.inventory.StateRepository;
|
| 25 |
import com.spice.profitmandi.dao.repository.user.*;
|
26 |
import com.spice.profitmandi.dao.repository.user.*;
|
| 26 |
import com.spice.profitmandi.service.offers.PartnerCriteria;
|
27 |
import com.spice.profitmandi.service.offers.PartnerCriteria;
|
| 27 |
import in.shop2020.model.v1.inventory.StateInfo;
|
28 |
import in.shop2020.model.v1.inventory.StateInfo;
|
| 28 |
import in.shop2020.model.v1.user.CartStatus;
|
29 |
import in.shop2020.model.v1.user.CartStatus;
|
| Line 119... |
Line 120... |
| 119 |
private PartnerOnBoardingPanelRepository partnerOnBoardingPanelRepository;
|
120 |
private PartnerOnBoardingPanelRepository partnerOnBoardingPanelRepository;
|
| 120 |
|
121 |
|
| 121 |
@Autowired
|
122 |
@Autowired
|
| 122 |
private PartnerOnboardingVerificationRepository partnerOnboardingVerificationRepository;
|
123 |
private PartnerOnboardingVerificationRepository partnerOnboardingVerificationRepository;
|
| 123 |
|
124 |
|
| - |
|
125 |
@Autowired
|
| - |
|
126 |
private PincodePartnerRepository pincodePartnerRepository;
|
| - |
|
127 |
|
| 124 |
@Override
|
128 |
@Override
|
| 125 |
public Map<String, Object> getByEmailIdOrMobileNumber(String emailIdOrMobileNumber)
|
129 |
public Map<String, Object> getByEmailIdOrMobileNumber(String emailIdOrMobileNumber)
|
| 126 |
throws ProfitMandiBusinessException {
|
130 |
throws ProfitMandiBusinessException {
|
| 127 |
User user = null;
|
131 |
User user = null;
|
| 128 |
int fofoId = Utils.SYSTEM_PARTNER_ID;
|
132 |
int fofoId = Utils.SYSTEM_PARTNER_ID;
|
| Line 845... |
Line 849... |
| 845 |
}
|
849 |
}
|
| 846 |
|
850 |
|
| 847 |
}
|
851 |
}
|
| 848 |
|
852 |
|
| 849 |
}
|
853 |
}
|
| - |
|
854 |
|
| - |
|
855 |
PincodePartner pincodePartner = pincodePartnerRepository
|
| - |
|
856 |
.selectPartnerByPincode(retailerAddress.getPinCode(), fofoStore.getId());
|
| - |
|
857 |
if (pincodePartner == null) {
|
| - |
|
858 |
PincodePartner pinPartner = new PincodePartner();
|
| - |
|
859 |
pinPartner.setFofoId(fofoStore.getId());
|
| - |
|
860 |
pinPartner.setPincode(retailerAddress.getPinCode());
|
| - |
|
861 |
pincodePartnerRepository.perist(pinPartner);
|
| - |
|
862 |
}
|
| 850 |
}
|
863 |
}
|
| 851 |
|
864 |
|
| 852 |
return fofoStore;
|
865 |
return fofoStore;
|
| 853 |
}
|
866 |
}
|
| 854 |
|
867 |
|