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

属性值规则(规则组)

上级 8a8754cc
......@@ -91,8 +91,11 @@ public class ValueRuleValidator implements ConstraintValidator<ValueRuleCheck, D
<#comment>获取单项条件表达式</#comment>
<#function getFieldCond fieldRule>
<#assign childRuleType=fieldRule.getCondType()>
<#assign fieldCond="(" >
<#assign condBody="">
<#assign condBody="1==1">
<#comment>常规规则</#comment>
<#if childRuleType=='SIMPLE'>
<#assign targetFieldName=fieldRule.getDEFName()><#comment>目标属性名称</#comment>
<#assign targetDEField=((de.getPSDEField(targetFieldName,true))!'')><#comment>目标属性</#comment>
<#assign targetDBValueOP=fieldRule.getCondOp()><#comment>表达式</#comment>
......@@ -101,6 +104,7 @@ public class ValueRuleValidator implements ConstraintValidator<ValueRuleCheck, D
<#assign targetFieldName=srfcaseformat(targetDEField.codeName,'l_u2lC')>
</#if>
<#assign condBody="T(${pub.getPKGCodeName()}.util.helper.RuleUtils).test(#dto.get(\""+targetFieldName+"\"),\""+targetDBValueOP+"\","+"\""+targetValue+"\")">
</#if>
<#assign fieldCond=fieldCond+condBody >
<#assign fieldCond=fieldCond+")" >
<#return fieldCond/>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册