| Line 810... |
Line 810... |
| 810 |
CustomRetailer customRetailer = new CustomRetailer();
|
810 |
CustomRetailer customRetailer = new CustomRetailer();
|
| 811 |
customRetailer.setEmail(user.getEmailId());
|
811 |
customRetailer.setEmail(user.getEmailId());
|
| 812 |
customRetailer.setBusinessName(address.getName());
|
812 |
customRetailer.setBusinessName(address.getName());
|
| 813 |
customRetailer.setMobileNumber(address.getPhoneNumber());
|
813 |
customRetailer.setMobileNumber(address.getPhoneNumber());
|
| 814 |
try {
|
814 |
try {
|
| - |
|
815 |
customRetailer.setCode(fofoStoreRepository.selectByRetailerId(address.getRetaierId()).getCode());
|
| 815 |
customRetailer.setCartId(user.getActiveCartId());
|
816 |
customRetailer.setCartId(user.getActiveCartId());
|
| 816 |
PrivateDealUser pdu = privateDealUserRepository.selectById(address.getRetaierId());
|
817 |
PrivateDealUser pdu = privateDealUserRepository.selectById(address.getRetaierId());
|
| 817 |
Counter counter = counterRepository.selectById(pdu.getCounterId());
|
818 |
Counter counter = counterRepository.selectById(pdu.getCounterId());
|
| 818 |
customRetailer.setGstNumber(counter.getGstin());
|
819 |
customRetailer.setGstNumber(counter.getGstin());
|
| 819 |
} catch (Exception e) {
|
820 |
} catch (Exception e) {
|
| Line 835... |
Line 836... |
| 835 |
}
|
836 |
}
|
| 836 |
|
837 |
|
| 837 |
@Override
|
838 |
@Override
|
| 838 |
public CustomRetailer getFofoRetailer(int fofoId) throws ProfitMandiBusinessException {
|
839 |
public CustomRetailer getFofoRetailer(int fofoId) throws ProfitMandiBusinessException {
|
| 839 |
com.spice.profitmandi.dao.entity.user.User saholicUser = userUserRepository.selectById(fofoId);
|
840 |
com.spice.profitmandi.dao.entity.user.User saholicUser = userUserRepository.selectById(fofoId);
|
| - |
|
841 |
FofoStore store = fofoStoreRepository.selectByRetailerId(fofoId);
|
| 840 |
Address address = null;
|
842 |
Address address = null;
|
| 841 |
try {
|
843 |
try {
|
| 842 |
address = addressRepository.selectById(saholicUser.getAddressId());
|
844 |
address = addressRepository.selectById(saholicUser.getAddressId());
|
| 843 |
} catch (ProfitMandiBusinessException e1) {
|
845 |
} catch (ProfitMandiBusinessException e1) {
|
| 844 |
// TODO Auto-generated catch block
|
846 |
// TODO Auto-generated catch block
|
| Line 865... |
Line 867... |
| 865 |
address1.setPinCode(address.getPinCode());
|
867 |
address1.setPinCode(address.getPinCode());
|
| 866 |
address1.setName(address.getName());
|
868 |
address1.setName(address.getName());
|
| 867 |
customRetailer.setDisplayName(address.getName() + " - "+ address.getCity());
|
869 |
customRetailer.setDisplayName(address.getName() + " - "+ address.getCity());
|
| 868 |
customRetailer.setAddress(address1);
|
870 |
customRetailer.setAddress(address1);
|
| 869 |
customRetailer.setPartnerId(address.getRetaierId());
|
871 |
customRetailer.setPartnerId(address.getRetaierId());
|
| - |
|
872 |
customRetailer.setCode(store.getCode());
|
| 870 |
customRetailersMap.put(address.getRetaierId(), customRetailer);
|
873 |
customRetailersMap.put(address.getRetaierId(), customRetailer);
|
| 871 |
return customRetailer;
|
874 |
return customRetailer;
|
| 872 |
|
875 |
|
| 873 |
}
|
876 |
}
|
| 874 |
|
877 |
|