| 22980 |
ashik.ali |
1 |
package com.spice.profitmandi.service.user;
|
|
|
2 |
|
| 30099 |
tejbeer |
3 |
import com.spice.profitmandi.common.enumuration.FofoType;
|
| 22980 |
ashik.ali |
4 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 23509 |
amit.gupta |
5 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
| 23781 |
ashik.ali |
6 |
import com.spice.profitmandi.common.model.MapWrapper;
|
| 23025 |
ashik.ali |
7 |
import com.spice.profitmandi.common.model.UpdateRetailerRequest;
|
| 23329 |
ashik.ali |
8 |
import com.spice.profitmandi.dao.entity.dtr.DistrictMaster;
|
| 32668 |
raveendra. |
9 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
| 23378 |
ashik.ali |
10 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 32738 |
amit.gupta |
11 |
import com.spice.profitmandi.dao.entity.fofo.RetailerContact;
|
| 26522 |
amit.gupta |
12 |
import com.spice.profitmandi.dao.entity.user.LoginRequestResponseModel;
|
| 32668 |
raveendra. |
13 |
import org.springframework.stereotype.Service;
|
| 22980 |
ashik.ali |
14 |
|
| 32668 |
raveendra. |
15 |
import java.util.List;
|
|
|
16 |
import java.util.Map;
|
|
|
17 |
import java.util.Set;
|
|
|
18 |
|
| 22980 |
ashik.ali |
19 |
@Service
|
|
|
20 |
public interface RetailerService {
|
| 33030 |
amit.gupta |
21 |
public Map<String, Object> getByEmailIdOrMobileNumber(String emailIdOrMobileNumber)
|
|
|
22 |
throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
23 |
|
| 33030 |
amit.gupta |
24 |
public Map<String, Object> updateRetailerDetails(UpdateRetailerRequest updateRetailerRequest)
|
|
|
25 |
throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
26 |
|
| 33030 |
amit.gupta |
27 |
public FofoStore createFofoStoreCodeByUserId(int userId, String districtName, String stateName,
|
|
|
28 |
UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
29 |
|
| 33030 |
amit.gupta |
30 |
public List<DistrictMaster> getAllDistrictMaster(String stateName);
|
| 30099 |
tejbeer |
31 |
|
| 33247 |
ranu |
32 |
public Map<Integer, CustomRetailer> getFofoRetailers(List<Integer> fofoIds) throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
33 |
|
| 33247 |
ranu |
34 |
public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly) throws ProfitMandiBusinessException;
|
| 27861 |
tejbeer |
35 |
|
| 33247 |
ranu |
36 |
public Map<Integer, CustomRetailer> getAllFofoRetailers() throws ProfitMandiBusinessException;
|
| 27861 |
tejbeer |
37 |
|
| 33030 |
amit.gupta |
38 |
public Map<Integer, CustomRetailer> getFofoRetailersPaginated(boolean activeOnly, int offset, int limit,
|
| 33247 |
ranu |
39 |
FofoType fofoType) throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
40 |
|
| 33030 |
amit.gupta |
41 |
public CustomRetailer getFofoRetailer(int fofoId) throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
42 |
|
| 33247 |
ranu |
43 |
public Map<Integer, String> getAllFofoRetailerIdEmailIdMap() throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
44 |
|
| 33247 |
ranu |
45 |
public List<MapWrapper<Integer, String>> getAllFofoRetailerIdNameList() throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
46 |
|
| 33247 |
ranu |
47 |
public Map<Integer, String> getAllFofoRetailerIdEmailIdMap(Set<Integer> retailerIds) throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
48 |
|
| 33247 |
ranu |
49 |
Map<Integer, String> getAllFofoRetailerIdNameMap(List<Integer> storeIds) throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
50 |
|
| 33247 |
ranu |
51 |
Map<Integer, String> getAllFofoRetailerIdNameMap() throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
52 |
|
| 33030 |
amit.gupta |
53 |
Map<Integer, String> getAllFofoRetailerIdUrlMap();
|
| 27861 |
tejbeer |
54 |
|
| 33030 |
amit.gupta |
55 |
Map<Integer, CustomRetailer> getFofoRetailerUserId(List<Integer> fofoIds) throws ProfitMandiBusinessException;
|
| 27861 |
tejbeer |
56 |
|
| 33030 |
amit.gupta |
57 |
LoginRequestResponseModel registerWebUser(LoginRequestResponseModel loginRequestModel)
|
|
|
58 |
throws ProfitMandiBusinessException;
|
| 30099 |
tejbeer |
59 |
|
| 33030 |
amit.gupta |
60 |
Map<String, Integer> getStoreCodeRetailerMap();
|
| 30099 |
tejbeer |
61 |
|
| 33030 |
amit.gupta |
62 |
User getEmail();
|
| 32668 |
raveendra. |
63 |
|
| 33030 |
amit.gupta |
64 |
void update(com.spice.profitmandi.dao.entity.user.User user);
|
| 32668 |
raveendra. |
65 |
|
| 33030 |
amit.gupta |
66 |
void updateRetailerEmail(int fofoID, String newEmail) throws ProfitMandiBusinessException;
|
| 32668 |
raveendra. |
67 |
|
| 33030 |
amit.gupta |
68 |
List<RetailerContact> getContactsByFofoId(int fofoId, boolean activeOnly) throws ProfitMandiBusinessException;
|
| 32668 |
raveendra. |
69 |
|
|
|
70 |
|
| 33030 |
amit.gupta |
71 |
//void update(com.spice.profitmandi.dao.entity.user.User user);
|
| 32668 |
raveendra. |
72 |
// {
|
|
|
73 |
// String sql="update Emp99 set name='"+p.getName()+"', salary="+p.getSalary()+",designation='"+p.getDesignation()+"' where id="+p.getId()+"";
|
|
|
74 |
// return template.update(sql);
|
|
|
75 |
// }
|
| 22980 |
ashik.ali |
76 |
}
|