| Line 13... |
Line 13... |
| 13 |
import org.apache.commons.collections4.map.HashedMap;
|
13 |
import org.apache.commons.collections4.map.HashedMap;
|
| 14 |
import org.apache.commons.lang.RandomStringUtils;
|
14 |
import org.apache.commons.lang.RandomStringUtils;
|
| 15 |
import org.apache.logging.log4j.LogManager;
|
15 |
import org.apache.logging.log4j.LogManager;
|
| 16 |
import org.apache.logging.log4j.Logger;
|
16 |
import org.apache.logging.log4j.Logger;
|
| 17 |
import org.springframework.beans.factory.annotation.Autowired;
|
17 |
import org.springframework.beans.factory.annotation.Autowired;
|
| - |
|
18 |
import org.springframework.cache.annotation.Cacheable;
|
| 18 |
import org.springframework.mail.javamail.JavaMailSender;
|
19 |
import org.springframework.mail.javamail.JavaMailSender;
|
| 19 |
import org.springframework.stereotype.Component;
|
20 |
import org.springframework.stereotype.Component;
|
| 20 |
|
21 |
|
| 21 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
22 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 22 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
23 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
| 23 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
24 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| 24 |
import com.spice.profitmandi.common.util.Utils;
|
25 |
import com.spice.profitmandi.common.util.Utils;
|
| 25 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
26 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
| 26 |
import com.spice.profitmandi.dao.entity.cs.Activity;
|
27 |
import com.spice.profitmandi.dao.entity.cs.Activity;
|
| 27 |
import com.spice.profitmandi.dao.entity.cs.PartnerPosition;
|
- |
|
| 28 |
import com.spice.profitmandi.dao.entity.cs.PartnerRegion;
|
28 |
import com.spice.profitmandi.dao.entity.cs.PartnerRegion;
|
| 29 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
29 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
| 30 |
import com.spice.profitmandi.dao.entity.cs.Region;
|
30 |
import com.spice.profitmandi.dao.entity.cs.Region;
|
| 31 |
import com.spice.profitmandi.dao.entity.cs.Ticket;
|
31 |
import com.spice.profitmandi.dao.entity.cs.Ticket;
|
| 32 |
import com.spice.profitmandi.dao.entity.cs.TicketAssigned;
|
32 |
import com.spice.profitmandi.dao.entity.cs.TicketAssigned;
|
| Line 480... |
Line 480... |
| 480 |
|
480 |
|
| 481 |
return positionIdAndpartnerRegionMap;
|
481 |
return positionIdAndpartnerRegionMap;
|
| 482 |
}
|
482 |
}
|
| 483 |
|
483 |
|
| 484 |
@Override
|
484 |
@Override
|
| - |
|
485 |
@Cacheable(value = "authUserEmailMapping", cacheManager = "thirtyMinsTimeOutCacheManager")
|
| 485 |
public Map<String, Set<String>> getAuthUserPartnerEmailMapping() {
|
486 |
public Map<String, Set<String>> getAuthUserPartnerEmailMapping() {
|
| 486 |
Map<String, Set<String>> storeGuyMap = new HashMap<>();
|
487 |
Map<String, Set<String>> storeGuyMap = new HashMap<>();
|
| 487 |
Set<Integer> activeFofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId())
|
488 |
Set<Integer> activeFofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId())
|
| 488 |
.collect(Collectors.toSet());
|
489 |
.collect(Collectors.toSet());
|
| 489 |
List<Position> categoryPositions = positionRepository
|
490 |
List<Position> categoryPositions = positionRepository
|