Subversion Repositories SmartDukaan

Rev

Rev 29925 | Rev 29947 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29925 Rev 29945
Line 1... Line 1...
1
package com.smartdukaan.cron.migrations;
1
package com.smartdukaan.cron.migrations;
2
 
2
 
3
import java.io.File;
-
 
4
import java.io.FileInputStream;
-
 
5
import java.io.IOException;
-
 
6
import java.time.LocalDate;
-
 
7
import java.time.LocalDateTime;
-
 
8
import java.time.LocalTime;
-
 
9
import java.time.Month;
-
 
10
import java.time.temporal.ChronoUnit;
-
 
11
import java.util.ArrayList;
-
 
12
import java.util.Arrays;
-
 
13
import java.util.Base64;
-
 
14
import java.util.Collections;
-
 
15
import java.util.Comparator;
-
 
16
import java.util.HashMap;
-
 
17
import java.util.HashSet;
-
 
18
import java.util.List;
-
 
19
import java.util.Map;
-
 
20
import java.util.Set;
-
 
21
import java.util.concurrent.TimeUnit;
-
 
22
import java.util.stream.Collectors;
-
 
23
 
-
 
24
import org.apache.commons.io.output.ByteArrayOutputStream;
-
 
25
import org.apache.commons.lang.StringUtils;
-
 
26
import org.apache.logging.log4j.LogManager;
-
 
27
import org.apache.logging.log4j.Logger;
-
 
28
import org.json.JSONArray;
-
 
29
import org.json.JSONObject;
-
 
30
import org.openqa.selenium.Dimension;
-
 
31
import org.openqa.selenium.OutputType;
-
 
32
import org.openqa.selenium.TakesScreenshot;
-
 
33
import org.openqa.selenium.WebDriver;
-
 
34
import org.openqa.selenium.chrome.ChromeDriver;
-
 
35
import org.openqa.selenium.chrome.ChromeOptions;
-
 
36
import org.springframework.beans.factory.annotation.Autowired;
-
 
37
import org.springframework.core.io.ByteArrayResource;
-
 
38
import org.springframework.mail.javamail.JavaMailSender;
-
 
39
import org.springframework.stereotype.Component;
-
 
40
import org.springframework.transaction.annotation.Transactional;
-
 
41
 
-
 
42
import com.google.gson.Gson;
3
import com.google.gson.Gson;
43
import com.smartdukaan.cron.scheduled.SamsungIMEIActivationService;
4
import com.smartdukaan.cron.scheduled.SamsungIMEIActivationService;
44
import com.smartdukaan.cron.scheduled.ScheduledTasks;
5
import com.smartdukaan.cron.scheduled.ScheduledTasks;
45
import com.spice.profitmandi.common.enumuration.ItemType;
6
import com.spice.profitmandi.common.enumuration.ItemType;
46
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
47
import com.spice.profitmandi.common.model.CustomRetailer;
8
import com.spice.profitmandi.common.model.CustomRetailer;
48
import com.spice.profitmandi.common.model.ProfitMandiConstants;
9
import com.spice.profitmandi.common.model.ProfitMandiConstants;
49
import com.spice.profitmandi.common.services.mandii.AccountStatusResponseOut;
-
 
50
import com.spice.profitmandi.common.services.mandii.EligibilityStatusEnum;
-
 
51
import com.spice.profitmandi.common.services.mandii.Gender;
10
import com.spice.profitmandi.common.services.mandii.*;
52
import com.spice.profitmandi.common.services.mandii.MandiiService;
-
 
53
import com.spice.profitmandi.common.services.mandii.MandiiUser;
-
 
54
import com.spice.profitmandi.common.util.FileUtil;
11
import com.spice.profitmandi.common.util.FileUtil;
55
import com.spice.profitmandi.common.util.FormattingUtils;
12
import com.spice.profitmandi.common.util.FormattingUtils;
56
import com.spice.profitmandi.common.util.Utils;
13
import com.spice.profitmandi.common.util.Utils;
57
import com.spice.profitmandi.dao.entity.catalog.Item;
14
import com.spice.profitmandi.dao.entity.catalog.Item;
58
import com.spice.profitmandi.dao.entity.catalog.Offer;
15
import com.spice.profitmandi.dao.entity.catalog.Offer;
Line 60... Line 17...
60
import com.spice.profitmandi.dao.entity.catalog.TagListing;
17
import com.spice.profitmandi.dao.entity.catalog.TagListing;
61
import com.spice.profitmandi.dao.entity.dtr.CreditAccount;
18
import com.spice.profitmandi.dao.entity.dtr.CreditAccount;
62
import com.spice.profitmandi.dao.entity.dtr.CreditStatus;
19
import com.spice.profitmandi.dao.entity.dtr.CreditStatus;
63
import com.spice.profitmandi.dao.entity.dtr.Document;
20
import com.spice.profitmandi.dao.entity.dtr.Document;
64
import com.spice.profitmandi.dao.entity.dtr.PaymentOptionTransaction;
21
import com.spice.profitmandi.dao.entity.dtr.PaymentOptionTransaction;
65
import com.spice.profitmandi.dao.entity.fofo.CurrentInventorySnapshot;
-
 
66
import com.spice.profitmandi.dao.entity.fofo.DebitNote;
-
 
67
import com.spice.profitmandi.dao.entity.fofo.FofoKyc;
22
import com.spice.profitmandi.dao.entity.fofo.*;
68
import com.spice.profitmandi.dao.entity.fofo.FofoLineItem;
-
 
69
import com.spice.profitmandi.dao.entity.fofo.FofoOrder;
-
 
70
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
-
 
71
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
-
 
72
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
-
 
73
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
-
 
74
import com.spice.profitmandi.dao.entity.fofo.PartnerOnBoardingPanel;
-
 
75
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
-
 
76
import com.spice.profitmandi.dao.entity.fofo.PrebookingOrder;
-
 
77
import com.spice.profitmandi.dao.entity.fofo.Purchase;
-
 
78
import com.spice.profitmandi.dao.entity.fofo.PurchaseReturnItem;
-
 
79
import com.spice.profitmandi.dao.entity.fofo.ScanRecord;
-
 
80
import com.spice.profitmandi.dao.entity.fofo.SchemeInOut;
-
 
81
import com.spice.profitmandi.dao.entity.fofo.SchemeItem;
-
 
82
import com.spice.profitmandi.dao.entity.inventory.SaholicInventorySnapshot;
23
import com.spice.profitmandi.dao.entity.inventory.SaholicInventorySnapshot;
83
import com.spice.profitmandi.dao.entity.inventory.SaholicReservationSnapshot;
24
import com.spice.profitmandi.dao.entity.inventory.SaholicReservationSnapshot;
84
import com.spice.profitmandi.dao.entity.inventory.VendorItemPricing;
25
import com.spice.profitmandi.dao.entity.inventory.VendorItemPricing;
85
import com.spice.profitmandi.dao.entity.inventory.Warehouse;
26
import com.spice.profitmandi.dao.entity.inventory.Warehouse;
86
import com.spice.profitmandi.dao.entity.transaction.HdfcPayment;
-
 
87
import com.spice.profitmandi.dao.entity.transaction.LineItem;
-
 
88
import com.spice.profitmandi.dao.entity.transaction.LineItemImei;
-
 
89
import com.spice.profitmandi.dao.entity.transaction.ManualPaymentType;
-
 
90
import com.spice.profitmandi.dao.entity.transaction.Order;
27
import com.spice.profitmandi.dao.entity.transaction.*;
91
import com.spice.profitmandi.dao.entity.transaction.SellerWarehouse;
-
 
92
import com.spice.profitmandi.dao.entity.transaction.UserWallet;
-
 
93
import com.spice.profitmandi.dao.entity.transaction.UserWalletHistory;
-
 
94
import com.spice.profitmandi.dao.entity.user.Address;
28
import com.spice.profitmandi.dao.entity.user.Address;
95
import com.spice.profitmandi.dao.entity.user.User;
29
import com.spice.profitmandi.dao.entity.user.User;
96
import com.spice.profitmandi.dao.entity.warehouse.BrandRegionMapping;
30
import com.spice.profitmandi.dao.entity.warehouse.BrandRegionMapping;
97
import com.spice.profitmandi.dao.entity.warehouse.WarehouseInventoryItem;
31
import com.spice.profitmandi.dao.entity.warehouse.WarehouseInventoryItem;
98
import com.spice.profitmandi.dao.entity.warehouse.WarehouseScan;
32
import com.spice.profitmandi.dao.entity.warehouse.WarehouseScan;
Line 102... Line 36...
102
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
36
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
103
import com.spice.profitmandi.dao.enumuration.fofo.ScanType;
37
import com.spice.profitmandi.dao.enumuration.fofo.ScanType;
104
import com.spice.profitmandi.dao.model.ContentPojo;
38
import com.spice.profitmandi.dao.model.ContentPojo;
105
import com.spice.profitmandi.dao.model.MediaPojo;
39
import com.spice.profitmandi.dao.model.MediaPojo;
106
import com.spice.profitmandi.dao.repository.GenericRepository;
40
import com.spice.profitmandi.dao.repository.GenericRepository;
107
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
41
import com.spice.profitmandi.dao.repository.catalog.*;
108
import com.spice.profitmandi.dao.repository.catalog.ManualPaymentRequestRepository;
-
 
109
import com.spice.profitmandi.dao.repository.catalog.OfferRepository;
-
 
110
import com.spice.profitmandi.dao.repository.catalog.SchemeRepository;
-
 
111
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
-
 
112
import com.spice.profitmandi.dao.repository.cs.CsService;
42
import com.spice.profitmandi.dao.repository.cs.CsService;
113
import com.spice.profitmandi.dao.repository.dtr.CreditAccountRepository;
-
 
114
import com.spice.profitmandi.dao.repository.dtr.DocumentRepository;
-
 
115
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
-
 
116
import com.spice.profitmandi.dao.repository.dtr.LeadRepository;
-
 
117
import com.spice.profitmandi.dao.repository.dtr.Mongo;
43
import com.spice.profitmandi.dao.repository.dtr.*;
118
import com.spice.profitmandi.dao.repository.dtr.PartnerOnBoardingPanelRepository;
-
 
119
import com.spice.profitmandi.dao.repository.dtr.PaymentOptionTransactionRepository;
-
 
120
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
-
 
121
import com.spice.profitmandi.dao.repository.fofo.DebitNoteRepository;
-
 
122
import com.spice.profitmandi.dao.repository.fofo.FofoLineItemRepository;
-
 
123
import com.spice.profitmandi.dao.repository.fofo.FofoOrderItemRepository;
-
 
124
import com.spice.profitmandi.dao.repository.fofo.FofoOrderRepository;
-
 
125
import com.spice.profitmandi.dao.repository.fofo.InventoryItemRepository;
-
 
126
import com.spice.profitmandi.dao.repository.fofo.InvoiceNumberGenerationSequenceRepository;
-
 
127
import com.spice.profitmandi.dao.repository.fofo.PartnerDailyInvestmentRepository;
-
 
128
import com.spice.profitmandi.dao.repository.fofo.PartnerTargetRepository;
-
 
129
import com.spice.profitmandi.dao.repository.fofo.PartnerTypeChangeService;
-
 
130
import com.spice.profitmandi.dao.repository.fofo.PrebookingOrderRepository;
-
 
131
import com.spice.profitmandi.dao.repository.fofo.PurchaseRepository;
44
import com.spice.profitmandi.dao.repository.fofo.*;
132
import com.spice.profitmandi.dao.repository.fofo.PurchaseReturnItemRepository;
-
 
133
import com.spice.profitmandi.dao.repository.fofo.ScanRecordRepository;
-
 
134
import com.spice.profitmandi.dao.repository.fofo.SchemeInOutRepository;
-
 
135
import com.spice.profitmandi.dao.repository.fofo.SchemeItemRepository;
-
 
136
import com.spice.profitmandi.dao.repository.inventory.SaholicInventorySnapshotRepository;
45
import com.spice.profitmandi.dao.repository.inventory.SaholicInventorySnapshotRepository;
137
import com.spice.profitmandi.dao.repository.inventory.SaholicReservationSnapshotRepository;
46
import com.spice.profitmandi.dao.repository.inventory.SaholicReservationSnapshotRepository;
138
import com.spice.profitmandi.dao.repository.inventory.VendorItemPricingRepository;
47
import com.spice.profitmandi.dao.repository.inventory.VendorItemPricingRepository;
139
import com.spice.profitmandi.dao.repository.inventory.WarehouseRepository;
48
import com.spice.profitmandi.dao.repository.inventory.WarehouseRepository;
140
import com.spice.profitmandi.dao.repository.transaction.HdfcPaymentRepository;
-
 
141
import com.spice.profitmandi.dao.repository.transaction.LineItemImeisRepository;
-
 
142
import com.spice.profitmandi.dao.repository.transaction.LineItemRepository;
-
 
143
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
49
import com.spice.profitmandi.dao.repository.transaction.*;
144
import com.spice.profitmandi.dao.repository.transaction.ReturnOrderRepository;
-
 
145
import com.spice.profitmandi.dao.repository.transaction.SellerWarehouseRepository;
-
 
146
import com.spice.profitmandi.dao.repository.transaction.UserWalletHistoryRepository;
-
 
147
import com.spice.profitmandi.dao.repository.transaction.UserWalletRepository;
-
 
148
import com.spice.profitmandi.dao.repository.user.AddressRepository;
50
import com.spice.profitmandi.dao.repository.user.AddressRepository;
149
import com.spice.profitmandi.dao.repository.user.FofoKycRepository;
51
import com.spice.profitmandi.dao.repository.user.FofoKycRepository;
150
import com.spice.profitmandi.dao.repository.user.UserRepository;
52
import com.spice.profitmandi.dao.repository.user.UserRepository;
151
import com.spice.profitmandi.dao.repository.warehouse.BrandRegionMappingRepository;
53
import com.spice.profitmandi.dao.repository.warehouse.BrandRegionMappingRepository;
152
import com.spice.profitmandi.dao.repository.warehouse.WarehouseInventoryItemRepository;
54
import com.spice.profitmandi.dao.repository.warehouse.WarehouseInventoryItemRepository;
Line 161... Line 63...
161
import com.spice.profitmandi.service.scheme.SchemeService;
63
import com.spice.profitmandi.service.scheme.SchemeService;
162
import com.spice.profitmandi.service.transaction.TransactionService;
64
import com.spice.profitmandi.service.transaction.TransactionService;
163
import com.spice.profitmandi.service.user.RetailerService;
65
import com.spice.profitmandi.service.user.RetailerService;
164
import com.spice.profitmandi.service.wallet.WalletService;
66
import com.spice.profitmandi.service.wallet.WalletService;
165
import com.spice.profitmandi.service.warehouse.WarehouseInventoryService;
67
import com.spice.profitmandi.service.warehouse.WarehouseInventoryService;
166
 
-
 
167
import in.shop2020.model.v1.order.OrderStatus;
68
import in.shop2020.model.v1.order.OrderStatus;
168
import in.shop2020.model.v1.order.WalletReferenceType;
69
import in.shop2020.model.v1.order.WalletReferenceType;
169
import okhttp3.OkHttpClient;
70
import okhttp3.OkHttpClient;
170
import okhttp3.Request;
71
import okhttp3.Request;
171
import okhttp3.Response;
72
import okhttp3.Response;
-
 
73
import org.apache.commons.io.output.ByteArrayOutputStream;
-
 
74
import org.apache.commons.lang.StringUtils;
-
 
75
import org.apache.logging.log4j.LogManager;
-
 
76
import org.apache.logging.log4j.Logger;
-
 
77
import org.json.JSONArray;
-
 
78
import org.json.JSONObject;
-
 
79
import org.openqa.selenium.Dimension;
-
 
80
import org.openqa.selenium.OutputType;
-
 
81
import org.openqa.selenium.TakesScreenshot;
-
 
82
import org.openqa.selenium.WebDriver;
-
 
83
import org.openqa.selenium.chrome.ChromeDriver;
-
 
84
import org.openqa.selenium.chrome.ChromeOptions;
-
 
85
import org.springframework.beans.factory.annotation.Autowired;
-
 
86
import org.springframework.core.io.ByteArrayResource;
-
 
87
import org.springframework.mail.javamail.JavaMailSender;
-
 
88
import org.springframework.stereotype.Component;
-
 
89
import org.springframework.transaction.annotation.Transactional;
-
 
90
 
-
 
91
import java.io.File;
-
 
92
import java.io.FileInputStream;
-
 
93
import java.io.IOException;
-
 
94
import java.time.LocalDate;
-
 
95
import java.time.LocalDateTime;
-
 
96
import java.time.LocalTime;
-
 
97
import java.time.Month;
-
 
98
import java.time.temporal.ChronoUnit;
-
 
99
import java.util.*;
-
 
100
import java.util.concurrent.TimeUnit;
-
 
101
import java.util.stream.Collectors;
172
 
102
 
173
@Component
103
@Component
174
@Transactional(rollbackFor = Throwable.class)
104
@Transactional(rollbackFor = Throwable.class)
175
public class RunOnceTasks {
105
public class RunOnceTasks {
176
 
106
 
Line 1570... Line 1500...
1570
	}
1500
	}
1571
 
1501
 
1572
	@Autowired
1502
	@Autowired
1573
	PartnerTypeChangeService partnerTypeChangeService;
1503
	PartnerTypeChangeService partnerTypeChangeService;
1574
 
1504
 
1575
	public void runMe() {
1505
	public void runMe() throws Exception {
1576
		System.out.println("runme ==== " + fofoOrderItemRepository.selectSumMopGroupByRetailer(
1506
		/*System.out.println("runme ==== " + fofoOrderItemRepository.selectSumMopGroupByRetailer(
1577
				LocalDate.of(2021, 11, 1).atStartOfDay(), LocalDate.of(2021, 12, 1).atStartOfDay(), 175138408, false));
1507
				LocalDate.of(2021, 11, 1).atStartOfDay(), LocalDate.of(2021, 12, 1).atStartOfDay(), 175138408, false));
1578
		System.out.println("change " + partnerTypeChangeService.getTypeOnDate(175138408, LocalDate.now()));
1508
		System.out.println("change " + partnerTypeChangeService.getTypeOnDate(175138408, LocalDate.now()));*/
-
 
1509
 
-
 
1510
		List<Integer> catalogItemIds = Arrays.asList(1023209, 1023209, 1023208, 1023208, 1023199, 1023199, 1023198, 1023198, 1023200, 1023200, 1023197, 1023196, 1023113, 1023112, 1023194, 1023194, 1023194, 1023193, 1023193, 1023190, 1023190, 1023190, 1023189, 1023189, 1023189, 1023188, 1023188, 1023181, 1023181, 1023180, 1023180, 1023179, 1023179, 1023178, 1023178, 1023183, 1023183, 1023182, 1023182, 1022511, 1023066, 1023164, 1023163, 1023064, 1023174, 1023174, 1023173, 1023173, 1023172, 1023172, 1023171, 1023171, 1023171, 1022765, 1023170, 1023170, 1023166, 1023166, 1023166, 1023012, 1023073, 1023168, 1023167, 1023167, 1023118, 1023118, 1023118, 1023164, 1023163, 1023162, 1022971, 1023161, 1023160, 1023159, 1023158, 1023157, 1023156, 1023058, 1023142, 1023142, 1023141, 1023141, 1023145, 1023145, 1023145, 1023145, 1023144, 1023144, 1023144, 1023144, 1023143, 1023143, 1023143, 1023139, 1023137, 1023135, 1023134, 1023133, 1023130, 1023129, 1023126, 1023125, 1023124, 1023121, 1023128, 1023116, 1023077, 1023102, 1023079, 1023113, 1023113, 1023112, 1023112, 1023110, 1023110, 1023109, 1023109, 1023108, 1023108, 1023107, 1023107, 1022809, 1022871, 1023078, 1023101, 1023103, 1023102, 1023102, 1023100, 1023100, 1023099, 1023099, 1023079, 1023079, 1023078, 1023078, 1023081, 1023081, 1023080, 1023080, 1023080, 1022872, 1023077, 1023077, 1023076, 1023076, 1023076, 1022861, 1022970, 1023074, 1023073, 1023073, 1023072, 1023072, 1023071, 1023071, 1023045, 1023070, 1023070, 1023069, 1023063, 1023063, 1023062, 1023062, 1023061, 1023061, 1023057, 1023056, 1023055, 1023054, 1023053, 1023052, 1023068, 1023068, 1023067, 1023067, 1023066, 1023066, 1023065, 1023065, 1023064, 1023064, 1023059, 1023058, 1023058, 1023059, 1023050, 1023050, 1023049, 1023049, 1023048, 1023048, 1023047, 1023047, 1022845, 1023046, 1023046, 1023045, 1023045, 1022955, 1023044, 1023042, 1023043, 1023043, 1023043, 1023018, 1023017, 1023017, 1023016, 1023016, 1023015, 1023015, 1023041, 1023041, 1023041, 1023040, 1023039, 1023039, 1022769, 1023038, 1023038, 1023037, 1023037, 1023036, 1023036, 1023035, 1023035, 1023027, 1023027, 1023034, 1023034, 1023033, 1023033, 1023031, 1023031, 1023030, 1023029, 1023028, 1022630, 1022630, 1022630, 1023026, 1023013, 1022987, 1022982, 1023019, 1023019, 1022979, 1022978, 1022977, 1023023, 1023022, 1023022, 1023014, 1023014, 1023013, 1023013, 1022956, 1022816, 1023012, 1023012, 1023011, 1023011, 1023010, 1023010, 1023010, 1023009, 1023009, 1023006, 1023006, 1023006, 1023005, 1023005, 1023005, 1023004, 1023004, 1023004, 1023003, 1023003, 1023002, 1023002, 1023001, 1023001, 1022971, 1022970, 1022974, 1022973, 1022976, 1022976, 1022764, 1022782, 1022972, 1022972, 1022971, 1022970, 1022955, 1022956, 1022833, 1022967, 1022967, 1022967, 1022965, 1022965, 1022965, 1022965, 1022963, 1022963, 1022767, 1022962, 1022962, 1022960, 1022960, 1022957, 1022956, 1022956, 1022955, 1022955, 1022955, 1022950, 1022950, 1022944, 1022949, 1022949, 1022784, 1022566, 1022871, 1022947, 1022947, 1022946, 1022946, 1022946, 1022944, 1022944, 1022943, 1022943, 1022941, 1022941, 1022941, 1022800, 1022937, 1022937, 1022936, 1022936, 1022940, 1022940, 1022939, 1022939, 1022938, 1022931, 1022931, 1022930, 1022929, 1022934, 1022934, 1022932, 1022932, 1022783, 1022917, 1022897, 1022896, 1022893, 1022892, 1022888, 1022882, 1022833, 1022928, 1022928, 1022877, 1022877, 1022876, 1022876, 1022842, 1022875, 1022875, 1022874, 1022874, 1022872, 1022872, 1022871, 1022871, 1022809, 1022868, 1022868, 1022868, 1022867, 1022867, 1022867, 1022866, 1022866, 1022866, 1022862, 1022862, 1022862, 1022861, 1022861, 1022861, 1022859, 1022858, 1022808, 1022851, 1022851, 1022851, 1022850, 1022850, 1022850, 1022835, 1022846, 1022846, 1022845, 1022845, 1022844, 1022844, 1022843, 1022843, 1022842, 1022842, 1022841, 1022841, 1022840, 1022840, 1022839, 1022839, 1022799, 1022834, 1022834, 1022833, 1022833, 1022830, 1022830, 1022830, 1022825, 1022825, 1022824, 1022783, 1022817, 1022817, 1022816, 1022816, 1022815, 1022815, 1022814, 1022814, 1022401, 1022402, 1022400, 1022399, 1022813, 1022813, 1022813, 1022813, 1022812, 1022812, 1022812, 1022812, 1022811, 1022811, 1022811, 1022811, 1022811, 1022810, 1022810, 1022810, 1022810, 1022810, 1022809, 1022808, 1022808, 1022806, 1022806, 1022806, 1022805, 1022805, 1022805, 1022804, 1022804, 1022804, 1022803, 1022803, 1022803, 1022802, 1022802, 1022802, 1022802, 1022801, 1022801, 1022801, 1022801, 1022800, 1022800, 1022800, 1022799, 1022799, 1022799, 1022798, 1022798, 1022798, 1022797, 1022797, 1022797, 1022796, 1022796, 1022796, 1022794, 1022793, 1022792, 1022792, 1022792, 1022791, 1022791, 1022791, 1022790, 1022790, 1022790, 1022789, 1022789, 1022789, 1022785, 1022785, 1022788, 1022788, 1022784, 1022784, 1022783, 1022783, 1022782, 1022782, 1022546, 1022546, 1022781, 1022781, 1022781, 1022773, 1021600, 1022779, 1022779, 1022778, 1022774, 1022774, 1022774, 1022773, 1022773, 1022773, 1022770, 1022771, 1022771, 1022770, 1022770, 1022770, 1022769, 1022769, 1022769, 1022759, 1022758, 1022754, 1022753, 1022752, 1022757, 1022757, 1022756, 1022755, 1022767, 1022765, 1022743, 1022742, 1022742, 1022741, 1022741, 1022741, 1022740, 1022740, 1022740, 1022739, 1022739, 1022739, 1022738, 1022738, 1022738, 1022748, 1022748, 1022737, 1022677, 1022736, 1022736, 1022736, 1022735, 1022735, 1022735, 1022734, 1022734, 1022592, 1022705, 1022705, 1022699, 1022699, 1022694, 1022694, 1022693, 1022693, 1022629, 1022461, 1022592, 1022590, 1022590, 1022590, 1022590, 1022582, 1022582, 1022566, 1022565, 1022565, 1022559, 1022559, 1022559, 1022558, 1022558, 1022558, 1022546, 1022546, 1022542, 1022542, 1022541, 1022541, 1022541, 1022521, 1022521, 1022521, 1022521, 1022520, 1022520, 1022520, 1022518, 1022518, 1022518, 1022515, 1022515, 1022515, 1022514, 1022514, 1022514, 1022514, 1022511, 1022511, 1022511, 1022501, 1022501, 1022501, 1022500, 1022500, 1022500, 1021443, 1022467, 1022467, 1022467, 1022467, 1022461, 1022461, 1022465, 1022465, 1022465, 1022443, 1022451, 1022451, 1022451, 1022435, 1022435, 1022419, 1022419, 1022418, 1022418, 1022402, 1022402, 1022402, 1022401, 1022401, 1022401, 1022400, 1022400, 1022400, 1022399, 1022399, 1022399, 1022395, 1022395, 1022392, 1022392, 1015059, 1022361, 1022361, 1022010, 1021600, 1022017, 1022017, 1021848, 1022010, 1022009, 1021848, 1021848, 1021848, 1021958, 1021958, 1021958, 1021443, 1021431, 1021430, 1021429, 1021428, 1021427, 1021425, 1021424, 1021422, 1021421, 1021420, 1021419, 1021417, 1021600, 1015060, 1015061, 1003800, 1015061, 1015059, 1015059, 1015059, 1015060, 1015060, 1015060, 1003800, 1003800, 1003800, 1015061, 1015061);
-
 
1511
		for (Integer catalogItemId : catalogItemIds) {
-
 
1512
			ContentPojo cp = mongoClient.getEntityById(catalogItemId);
-
 
1513
			System.out.println(cp.getDefaultImageUrl());
-
 
1514
		}
1579
	}
1515
	}
1580
 
1516
 
1581
	public void createOffers(FileInputStream stream) throws Exception {
1517
	public void createOffers(FileInputStream stream) throws Exception {
1582
		offerService.createOffers(stream);
1518
		offerService.createOffers(stream);
1583
	}
1519
	}