Subversion Repositories SmartDukaan

Rev

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

Rev 29488 Rev 29566
Line 1... Line 1...
1
package com.smartdukaan.cron.scheduled;
1
package com.smartdukaan.cron.scheduled;
2
 
2
 
3
import java.io.BufferedInputStream;
-
 
4
import java.io.BufferedReader;
-
 
5
import java.io.DataInputStream;
-
 
6
import java.io.File;
-
 
7
import java.io.FileInputStream;
-
 
8
import java.io.FileOutputStream;
-
 
9
import java.io.IOException;
3
import java.io.IOException;
10
import java.io.InputStream;
-
 
11
import java.io.InputStreamReader;
-
 
12
import java.io.Serializable;
4
import java.io.Serializable;
13
import java.net.CookieManager;
-
 
14
import java.net.CookiePolicy;
-
 
15
import java.nio.charset.StandardCharsets;
-
 
16
import java.nio.file.Files;
5
import java.nio.file.Files;
17
import java.nio.file.Paths;
6
import java.nio.file.Paths;
18
import java.sql.Timestamp;
7
import java.sql.Timestamp;
19
import java.time.Duration;
8
import java.time.Duration;
20
import java.time.LocalDate;
9
import java.time.LocalDate;
Line 213... Line 202...
213
import com.spice.profitmandi.service.user.RetailerService;
202
import com.spice.profitmandi.service.user.RetailerService;
214
import com.spice.profitmandi.service.wallet.WalletService;
203
import com.spice.profitmandi.service.wallet.WalletService;
215
 
204
 
216
import in.shop2020.model.v1.order.OrderStatus;
205
import in.shop2020.model.v1.order.OrderStatus;
217
import in.shop2020.model.v1.order.WalletReferenceType;
206
import in.shop2020.model.v1.order.WalletReferenceType;
218
import okhttp3.Cookie;
-
 
219
import okhttp3.CookieJar;
-
 
220
import okhttp3.FormBody;
-
 
221
import okhttp3.HttpUrl;
-
 
222
import okhttp3.OkHttpClient;
207
import okhttp3.OkHttpClient;
223
import okhttp3.Request;
208
import okhttp3.Request;
224
import okhttp3.RequestBody;
-
 
225
import okhttp3.Response;;
209
import okhttp3.Response;;
226
 
210
 
227
@Component
211
@Component
228
@Transactional(rollbackFor = Throwable.class)
212
@Transactional(rollbackFor = Throwable.class)
229
public class ScheduledTasks {
213
public class ScheduledTasks {
Line 2283... Line 2267...
2283
							inventoryItem.getLastScanType().equals(ScanType.DOA_OUT) + "")));
2267
							inventoryItem.getLastScanType().equals(ScanType.DOA_OUT) + "")));
2284
				}
2268
				}
2285
			}
2269
			}
2286
		}
2270
		}
2287
	}
2271
	}
-
 
2272
	
-
 
2273
	public void toffeeRollback() throws Exception {
-
 
2274
		toffeeService.cancelPolicyCopy("110143521986");
-
 
2275
		toffeeService.getOrderId("110143521986");
-
 
2276
	}
2288
 
2277
 
2289
	public void attachToffeeInvoices() throws Exception {
2278
	public void attachToffeeInvoices() throws Exception {
2290
		/*
2279
		/*
2291
		 * LOGGER.info("Insurance Sum Summary --- {}",
2280
		 * LOGGER.info("Insurance Sum Summary --- {}",
2292
		 * insurancePolicyRepository.selectAmountSumGroupByRetailerId(LocalDateTime.MIN,
2281
		 * insurancePolicyRepository.selectAmountSumGroupByRetailerId(LocalDateTime.MIN,