您好,我的需求是过滤器一个条件要jion其他表进行查询。
由于jmix combobox没有异步加载,数据量较大,因此只能用entitypicker。
但是由于picker选出来的是个entity,但是我的条件是用code属性;
请问<c:where> 里面<![CDATA[p.fdProjectCode = {?.fdCode}]]>
该如何写?
尝试了几种都不生效
<jpqlFilter id="projectFilter" parameterClass="com.dragonpass.salescommon.entity.CusProject"
caption="msg://projectFilter.caption">
<entityPicker metaClass="sales_CusProject">
<actions>
<action id="entityLookup" type="entity_lookup">
<properties>
<property name="openMode" value="DIALOG"/>
</properties>
</action>
<action id="entityClear" type="entity_clear"/>
</actions>
</entityPicker>
<condition>
<c:jpql>
<c:join><![CDATA[left join sale_ContentPackageProjectMapping p on e.fdCode = p.fdPackageCode ]]></c:join>
<c:where><![CDATA[p.fdProjectCode = {?.fdCode}]]></c:where>
</c:jpql>
</condition>
</jpqlFilter>