This commit is contained in:
Raod
2021-08-18 11:50:06 +08:00
parent 5b9925d069
commit 2e2b7fe0d0

View File

@@ -54,9 +54,7 @@ public class JsTransformServiceImpl implements TransformStrategy {
engine.eval(js);
if(engine instanceof Invocable){
Invocable invocable = (Invocable) engine;
Object exec = invocable.invokeFunction("dataTransform", data);
ObjectMapper objectMapper = new ObjectMapper();
return objectMapper.convertValue(exec, List.class);
return (List<JSONObject>) invocable.invokeFunction("dataTransform", data);
}
} catch (Exception ex) {