mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 04:22:09 +08:00
data方法传入字符串时,输出加单引号。
This commit is contained in:
@@ -132,7 +132,7 @@ public abstract class ELWrapper {
|
||||
* @return {@link ELWrapper}
|
||||
*/
|
||||
protected ELWrapper data(String dataName, String jsonString){
|
||||
setData(jsonString);
|
||||
setData("'" + jsonString + "'");
|
||||
setDataName(dataName);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -67,12 +67,7 @@ public class NodeELWrapper extends ELWrapper {
|
||||
|
||||
@Override
|
||||
public NodeELWrapper data(String dataName, String jsonString) {
|
||||
// try {
|
||||
// JsonUtil.parseObject(jsonString);
|
||||
// } catch (Exception e){
|
||||
// throw new RuntimeException("字符串不符合Json格式!");
|
||||
// }
|
||||
setData(jsonString);
|
||||
setData("'" + jsonString + "'");
|
||||
setDataName(dataName);
|
||||
return this;
|
||||
}
|
||||
@@ -114,7 +109,6 @@ public class NodeELWrapper extends ELWrapper {
|
||||
}
|
||||
if(this.getData() != null){
|
||||
elContext.append(StrUtil.format(".data({})", this.getDataName()));
|
||||
// paramContext.append(StrUtil.format("{} = '{}'\n", this.getDataName(), this.getData()));
|
||||
paramContext.append(StrUtil.format("{} = {}", this.getDataName(), this.getData())).append(";\n");
|
||||
}
|
||||
if(this.getMaxWaitSeconds() != null){
|
||||
|
||||
Reference in New Issue
Block a user