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

补充属性值规则

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