TASK:mixi;
This commit is contained in:
@@ -2816,13 +2816,13 @@ public class MiTuExportScheduledTask {
|
||||
|
||||
// 检查输入是否为空
|
||||
if (input.isEmpty()) {
|
||||
return "IN ()"; // 返回空的IN条件
|
||||
return "()"; // 返回空的IN条件
|
||||
}
|
||||
|
||||
// 按逗号分隔输入字符串,如果没有逗号就只返回一个值
|
||||
String[] values = input.split(",");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("IN (");
|
||||
sb.append("(");
|
||||
|
||||
for (int i = 0; i < values.length; i++) {
|
||||
sb.append("'").append(values[i].trim()).append("'");
|
||||
|
||||
Reference in New Issue
Block a user