| Line 646... |
Line 646... |
| 646 |
}
|
646 |
}
|
| 647 |
List<User> users = userRepository.selectAllByEmails(new ArrayList<>(emails), offset, limit);
|
647 |
List<User> users = userRepository.selectAllByEmails(new ArrayList<>(emails), offset, limit);
|
| 648 |
List<Partner> partners = new ArrayList<>();
|
648 |
List<Partner> partners = new ArrayList<>();
|
| 649 |
for (User user : users) {
|
649 |
for (User user : users) {
|
| 650 |
try {
|
650 |
try {
|
| 651 |
UserAccount uc = userAccountRepository.selectSaholicByUserId(user.getId());
|
651 |
Integer accountKey = userAccountRepository.selectSaholicAccountKeySafe(user.getId());
|
| 652 |
if (uc == null) {
|
652 |
if (accountKey == null) {
|
| 653 |
LOGGER.warn("No user account found for userId: {}", user.getId());
|
653 |
LOGGER.warn("No usable saholic account for userId: {}", user.getId());
|
| 654 |
continue;
|
654 |
continue;
|
| 655 |
}
|
655 |
}
|
| 656 |
com.spice.profitmandi.dao.entity.user.User userInfo = userUserRepository.selectById(uc.getAccountKey());
|
656 |
com.spice.profitmandi.dao.entity.user.User userInfo = userUserRepository.selectById(accountKey);
|
| 657 |
if (userInfo == null) {
|
657 |
if (userInfo == null) {
|
| 658 |
LOGGER.warn("No user info found for accountKey: {}", uc.getAccountKey());
|
658 |
LOGGER.warn("No user info found for accountKey: {}", accountKey);
|
| 659 |
continue;
|
659 |
continue;
|
| 660 |
}
|
660 |
}
|
| 661 |
CustomRetailer customRetailer = retailerService.getFofoRetailer(userInfo.getId());
|
661 |
CustomRetailer customRetailer = retailerService.getFofoRetailer(userInfo.getId());
|
| 662 |
if (customRetailer == null) {
|
662 |
if (customRetailer == null) {
|
| 663 |
LOGGER.warn("No custom retailer found for userInfoId: {}", userInfo.getId());
|
663 |
LOGGER.warn("No custom retailer found for userInfoId: {}", userInfo.getId());
|