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