如何比较.xbre
规则文件中的日期。
例如,我有以下规则:
<ObjectLookup id ="EmpObj" objectId ="EmpLvl" member ="JoinDate"/>
<Logic>
<If>
<And>
<Between leftId ="2009-10-10" rightId ="2010-10-10" valueId ="EmpObj">
</Between>
</And>
<Do>
<Modify id ="LVL" type="String" value ="Sr"/>
</Do>
</If>
<ElseIf>
<And>
<Between leftId ="2010-10-10" rightId ="2014-10-10" valueId ="EmpObj" excludeLeft ="true">
</Between>
</And>
<Do>
<Modify id ="LVL" type="String" value ="Jr"/>
</Do>
</ElseIf>
</Logic>
根据传递的 JoinDate,我需要根据日期范围获取一个字符串。当我运行上述规则时,它采用中提到的日期leftId
,rightId
但不采用日期范围。
如何检查日期范围/日期之间?