Rev 34619 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.service.user;import com.spice.profitmandi.common.enumuration.FofoType;import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;import com.spice.profitmandi.common.model.CustomRetailer;import com.spice.profitmandi.common.model.MapWrapper;import com.spice.profitmandi.common.model.UpdateRetailerRequest;import com.spice.profitmandi.dao.entity.dtr.DistrictMaster;import com.spice.profitmandi.dao.entity.dtr.User;import com.spice.profitmandi.dao.entity.fofo.FofoStore;import com.spice.profitmandi.dao.entity.fofo.RetailerContact;import com.spice.profitmandi.dao.entity.user.LoginRequestResponseModel;import org.springframework.stereotype.Service;import java.util.List;import java.util.Map;import java.util.Set;@Servicepublic interface RetailerService {public Map<String, Object> getByEmailIdOrMobileNumber(String emailIdOrMobileNumber)throws ProfitMandiBusinessException;public Map<String, Object> updateRetailerDetails(UpdateRetailerRequest updateRetailerRequest)throws ProfitMandiBusinessException;public FofoStore createFofoStoreCodeByUserId(int userId, String districtName, String stateName,UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException;public List<DistrictMaster> getAllDistrictMaster(String stateName);public Map<Integer, CustomRetailer> getFofoRetailers(List<Integer> fofoIds) throws ProfitMandiBusinessException;public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly) throws ProfitMandiBusinessException;public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly, String pinCode) throws ProfitMandiBusinessException;public Map<Integer, CustomRetailer> getAllFofoRetailers() throws ProfitMandiBusinessException;public Map<Integer, CustomRetailer> getAllFofoRetailersInternalFalse() throws ProfitMandiBusinessException;public Map<Integer, CustomRetailer> getFofoRetailersPaginated(boolean activeOnly, int offset, int limit,FofoType fofoType) throws ProfitMandiBusinessException;public CustomRetailer getFofoRetailer(int fofoId) throws ProfitMandiBusinessException;public Map<Integer, String> getAllFofoRetailerIdEmailIdMap() throws ProfitMandiBusinessException;public List<MapWrapper<Integer, String>> getAllFofoRetailerIdNameList() throws ProfitMandiBusinessException;public Map<Integer, String> getAllFofoRetailerIdEmailIdMap(Set<Integer> retailerIds) throws ProfitMandiBusinessException;Map<Integer, String> getAllFofoRetailerIdNameMap(List<Integer> storeIds) throws ProfitMandiBusinessException;Map<Integer, String> getAllFofoRetailerIdNameMap() throws ProfitMandiBusinessException;Map<Integer, String> getAllFofoRetailerIdUrlMap();Map<Integer, CustomRetailer> getFofoRetailerUserId(List<Integer> fofoIds) throws ProfitMandiBusinessException;LoginRequestResponseModel registerWebUser(LoginRequestResponseModel loginRequestModel)throws ProfitMandiBusinessException;Map<String, Integer> getStoreCodeRetailerMap();User getEmail();void update(com.spice.profitmandi.dao.entity.user.User user);void updateRetailerEmail(int fofoID, String newEmail) throws ProfitMandiBusinessException;List<RetailerContact> getContactsByFofoId(int fofoId, boolean activeOnly) throws ProfitMandiBusinessException;Map<String, Object> computeIncomeMap(int fofoId, int yearMonth);//void update(com.spice.profitmandi.dao.entity.user.User user);// {// String sql="update Emp99 set name='"+p.getName()+"', salary="+p.getSalary()+",designation='"+p.getDesignation()+"' where id="+p.getId()+"";// return template.update(sql);// }}