huangxingxing 3 ヶ月 前
コミット
59f687ea3b
1 ファイル変更2 行追加0 行削除
  1. 2 0
      src/main/resources/templates/pipenet.ftl

+ 2 - 0
src/main/resources/templates/pipenet.ftl

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