Merge pull request 'feat : 模拟执行报错' (#120) from clay into master

Reviewed-on: http://git.feashow.cn/clay/fateverse/pulls/120
This commit is contained in:
clay
2024-08-27 07:44:33 +00:00

View File

@@ -64,12 +64,13 @@ public class DataAdapter extends BaseEntity {
if (type == null) { if (type == null) {
throw new CustomException("数据适配器类型为空"); throw new CustomException("数据适配器类型为空");
} }
// "import com.alibaba.fastjson2.*;\n" +
if (DataAdapterType.JAVA.equals(type)) { if (DataAdapterType.JAVA.equals(type)) {
//Java代码初始化 //Java代码初始化
this.code = "\n" + this.code = "\n" +
"import java.util.*;\n" + "import java.util.*;\n" +
"import java.util.stream.*;\n" + "import java.util.stream.*;\n" +
"import com.alibaba.fastjson2.*;\n" +
"\n" + "\n" +
"public class DataAdapter {\n" + "public class DataAdapter {\n" +
"\n" + "\n" +