提交 80c76b3b 编写于 作者: zhouweidong's avatar zhouweidong

补充属性值规则

上级 a9c9ffb1
......@@ -124,13 +124,12 @@ public class ${item.getCodeName()}DTO extends ${dtoBase} implements Serializable
<#if defield !=''>
<#if defield.getAllPSDEFValueRules()??>
<#list defield.getAllPSDEFValueRules() as defieldVR>
<#if defieldVR.getPSDEFVRGroupCondition?? && defieldVR.getPSDEFVRGroupCondition()??>
<#list defieldVR.getPSDEFVRGroupCondition() as defieldVRCond>
<#if defieldVRCond.getCondType()=='SIMPLE'>
<#comment>属性默认值规则</#comment>
<#elseif defieldVRCond.getCondType()=='GROUP' && defieldVR.getCodeName()=='Default'>
<#if defieldVRCond.getPSDEFVRConditions?? && defieldVRCond.getPSDEFVRConditions()??>
<#list defieldVRCond.getPSDEFVRConditions() as subVRCond>
<#if defieldVR.getPSDEFVRGroupCondition?? && defieldVR.getPSDEFVRGroupCondition()?? && defieldVR.getCodeName()=='Default'>
<#assign vrCond=defieldVR.getPSDEFVRGroupCondition()>
<#assign vrCondType=vrCond.getCondType()>
<#assign vrCondOp=vrCond.getCondOp()>
<#if vrCond.getPSDEFVRConditions?? && vrCond.getPSDEFVRConditions()??>
<#list vrCond.getPSDEFVRConditions() as subVRCond>
<#if subVRCond.getCondType()=='STRINGLENGTH'>
<#if subVRCond.getMaxValue()?c!='-1'>
@Size(min = 0, max = ${subVRCond.getMaxValue()?c}, message = "${subVRCond.getRuleInfo()}")
......@@ -145,9 +144,6 @@ public class ${item.getCodeName()}DTO extends ${dtoBase} implements Serializable
</#if>
</#list>
</#if>
<#else>
</#if>
</#list>
</#if>
</#list>
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册