|
@@ -13,25 +13,5 @@ public class ForeignproductTest {
|
|
|
Foreignproduct foreignproduct = new Foreignproduct();
|
|
|
COMPConnectionContext result = foreignproduct.query("18622305641", "13", false);
|
|
|
System.out.println(result.getResponseContext());
|
|
|
-// Set<String> phones = Utils.readPhones();
|
|
|
-//// String filePath = "result/已订购产品查询样本.csv";
|
|
|
-// String filePath = "result/已订购产品查询.csv";
|
|
|
-// try (OutputStreamWriter osw = new OutputStreamWriter(Files.newOutputStream(Paths.get(filePath)), "GBK");
|
|
|
-// CsvWriter csv = CsvWriter.builder().build(osw);) {
|
|
|
-// csv.writeRow("手机号", "时间", "调用时长", "结果");
|
|
|
-// phones.forEach(t -> {
|
|
|
-// String[] a = t.split(",");
|
|
|
-// String phone = a[0];
|
|
|
-// String provinceCode = a[1];
|
|
|
-// LocalDateTime startTime = LocalDateTime.now();
|
|
|
-// long startTimestamp = System.currentTimeMillis();
|
|
|
-// COMPConnectionContext result = foreignproduct.query(phone, provinceCode, false);
|
|
|
-// long endTimestamp = System.currentTimeMillis();
|
|
|
-// long cost = endTimestamp - startTimestamp;
|
|
|
-// csv.writeRow(phone, startTime.toString(), String.valueOf(cost), result.getResponseContext());
|
|
|
-// });
|
|
|
-// } catch (IOException e) {
|
|
|
-// e.printStackTrace();
|
|
|
-// }
|
|
|
}
|
|
|
}
|