提交 71b53e89 编写于 作者: zhouweidong's avatar zhouweidong

替换代码表中的特殊字符

上级 b482a368
...@@ -30,7 +30,7 @@ public class StaticDict { ...@@ -30,7 +30,7 @@ public class StaticDict {
<#list codeList.getAllPSCodeItems() as codeItem> <#list codeList.getAllPSCodeItems() as codeItem>
<#assign codeItemValue=codeItem.getValue()> <#assign codeItemValue=codeItem.getValue()>
<#assign codeItemText=codeItem.getText()> <#assign codeItemText=codeItem.getText()>
VALUE_${codeItemValue}("${codeItemValue}","${codeItemText}")<#if codeItem_has_next>,<#else>;</#if> VALUE_${replaceCodeItemValue(codeItemValue)}("${codeItemValue}","${codeItemText}")<#if codeItem_has_next>,<#else>;</#if>
</#list> </#list>
</#if> </#if>
...@@ -50,4 +50,10 @@ public class StaticDict { ...@@ -50,4 +50,10 @@ public class StaticDict {
</#list> </#list>
</#if> </#if>
} }
</#if> </#if>
\ No newline at end of file
<#comment>替换代码表中的特殊字符</#comment>
<#function replaceCodeItemValue codeItemValue>
<#assign result=codeItemValue?replace("\\","_")?replace("/","_")?replace("+","_")>
<#return result>
</#function>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册