Ver Fonte

求解配置文件生成

huangxingxing há 2 meses atrás
pai
commit
9e5e52776c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/main/resources/templates/pipenet.ftl

+ 1 - 1
src/main/resources/templates/pipenet.ftl

@@ -11,7 +11,7 @@
  <#list coms as c>
     <${c.com.code}<#if c.com.type??> type="${c.com.type}"</#if> ID="${c.pcom.idCode}${c.pcom.ser}">
       <#list c.atts as a>
-       <#if a.value??>
+       <#if a.value?? && a.value!"">
         <${a.code}<#if a.unitType??&&a.unitType!="无"> unit="${a.unit!""}"<#else></#if>>${a.value!""}</${a.code}>
        </#if>
       </#list>