|
|
@ -41,7 +41,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((Formula) o[0]).getContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((Formula) o[0]).getContent())) { |
|
|
|
map.put("content", ((Formula) o[0]).getContent()); |
|
|
|
map.put("content", ((Formula) o[0]).getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -61,7 +61,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((FormulaCondition) o[0]).getFormula())) { |
|
|
|
if (StringUtils.isNotEmpty(((FormulaCondition) o[0]).getFormula())) { |
|
|
|
map.put("content", ((FormulaCondition) o[0]).getFormula()); |
|
|
|
map.put("content", ((FormulaCondition) o[0]).getFormula()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -84,7 +84,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((Formula) ((Compare) o[0]).getValue()).getContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((Formula) ((Compare) o[0]).getValue()).getContent())) { |
|
|
|
map.put("content", ((Formula) ((Compare) o[0]).getValue()).getContent()); |
|
|
|
map.put("content", ((Formula) ((Compare) o[0]).getValue()).getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -109,7 +109,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((RichText) ((CellElement) o[0]).getValue()).getContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((RichText) ((CellElement) o[0]).getValue()).getContent())) { |
|
|
|
map.put("content", ((RichText) ((CellElement) o[0]).getValue()).getContent()); |
|
|
|
map.put("content", ((RichText) ((CellElement) o[0]).getValue()).getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -128,7 +128,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((Formula) ((com.fr.base.core.KV) o[0]).getValue()).getContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((Formula) ((com.fr.base.core.KV) o[0]).getValue()).getContent())) { |
|
|
|
map.put("content", ((Formula) ((com.fr.base.core.KV) o[0]).getValue()).getContent()); |
|
|
|
map.put("content", ((Formula) ((com.fr.base.core.KV) o[0]).getValue()).getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -150,7 +150,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((Formula) (((CellInsertPolicyAttr) o[0]).getDefaultInsertValue())).getContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((Formula) (((CellInsertPolicyAttr) o[0]).getDefaultInsertValue())).getContent())) { |
|
|
|
map.put("content", ((Formula) (((CellInsertPolicyAttr) o[0]).getDefaultInsertValue())).getContent()); |
|
|
|
map.put("content", ((Formula) (((CellInsertPolicyAttr) o[0]).getDefaultInsertValue())).getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -171,7 +171,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((FormulaPresent) o[0]).getFormulaContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((FormulaPresent) o[0]).getFormulaContent())) { |
|
|
|
map.put("content", ((FormulaPresent) o[0]).getFormulaContent()); |
|
|
|
map.put("content", ((FormulaPresent) o[0]).getFormulaContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -193,7 +193,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((SingleJavaScript) o[0]).getFileName())) { |
|
|
|
if (StringUtils.isNotEmpty(((SingleJavaScript) o[0]).getFileName())) { |
|
|
|
map.put("content", ((SingleJavaScript) o[0]).getFileName()); |
|
|
|
map.put("content", ((SingleJavaScript) o[0]).getFileName()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -215,7 +215,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((Formula) (((ParameterProvider) o[0]).getValue())).getContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((Formula) (((ParameterProvider) o[0]).getValue())).getContent())) { |
|
|
|
map.put("content", ((Formula) (((ParameterProvider) o[0]).getValue())).getContent()); |
|
|
|
map.put("content", ((Formula) (((ParameterProvider) o[0]).getValue())).getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -237,7 +237,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((FormulaProvider) o[0]).getContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((FormulaProvider) o[0]).getContent())) { |
|
|
|
map.put("content", ((FormulaProvider) o[0]).getContent()); |
|
|
|
map.put("content", ((FormulaProvider) o[0]).getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -259,7 +259,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((Formula) (((Parameter) o[0]).getValue())).getContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((Formula) (((Parameter) o[0]).getValue())).getContent())) { |
|
|
|
map.put("content", ((Formula) (((Parameter) o[0]).getValue())).getContent()); |
|
|
|
map.put("content", ((Formula) (((Parameter) o[0]).getValue())).getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -281,7 +281,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((DSColumn) o[0]).getResult())) { |
|
|
|
if (StringUtils.isNotEmpty(((DSColumn) o[0]).getResult())) { |
|
|
|
map.put("content", ((DSColumn) o[0]).getResult()); |
|
|
|
map.put("content", ((DSColumn) o[0]).getResult()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -303,7 +303,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((BaseFormula) o[0]).getContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((BaseFormula) o[0]).getContent())) { |
|
|
|
map.put("content", ((BaseFormula) o[0]).getContent()); |
|
|
|
map.put("content", ((BaseFormula) o[0]).getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -325,7 +325,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((Formula) ((StoreProcedureParameter) o[0]).getValue()).getContent())) { |
|
|
|
if (StringUtils.isNotEmpty(((Formula) ((StoreProcedureParameter) o[0]).getValue()).getContent())) { |
|
|
|
map.put("content", ((Formula) ((StoreProcedureParameter) o[0]).getValue()).getContent()); |
|
|
|
map.put("content", ((Formula) ((StoreProcedureParameter) o[0]).getValue()).getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
@ -347,7 +347,7 @@ public enum FormulaReplaceObject implements DealWithInfoValue { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
public Map<String, String> getValue(Object... o) { |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
HashMap<String, String> map = new HashMap<>(); |
|
|
|
if (!StringUtils.isEmpty(((WatermarkAttr) o[0]).getText())) { |
|
|
|
if (StringUtils.isNotEmpty(((WatermarkAttr) o[0]).getText())) { |
|
|
|
map.put("content", ((WatermarkAttr) o[0]).getText()); |
|
|
|
map.put("content", ((WatermarkAttr) o[0]).getText()); |
|
|
|
} |
|
|
|
} |
|
|
|
return map; |
|
|
|
return map; |
|
|
|