// 从 classpath 读取资源文件
try (InputStream is = MerchantNoTest.class.getClassLoader()
.getResourceAsStream("merchant.txt");
BufferedReader reader = new BufferedReader(
new InputStreamReader(is, StandardCharsets.UTF_8))) {
List<String> merchantNos = reader.lines()
.map(String::trim)
.filter(s -> !s.isEmpty())
.collect(Collectors.toList());
String inClause = merchantNos.stream()
.map(no -> "'" + no + "'")
.collect(Collectors.joining(", "));
System.out.println(" (" + inClause + ")");
}catch (Exception e) {
e.printStackTrace();
}