`
jiasudu1649
  • 浏览: 711366 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

增强OFBiz通用查询方法思路

 
阅读更多

增强OFBiz通用查询方法思路

 

 

<service name="performFindListPro" auth="false" engine="java" invoke="performFindListPro" location="org.ofbiz.common.FindServices">
       
        <attribute name="entityName" type="String" mode="IN" optional="false"/>
        <attribute name="dictionaryFields" type="java.util.Map" mode="IN" optional="false"/>
        <attribute name="inputFields" type="java.util.Map" mode="IN" optional="false"/>
        <attribute name="orderBy" type="String" mode="IN" optional="true"/>
        <attribute name="noConditionFind" type="String" mode="IN" optional="true"><!-- find with no condition (empty entityConditionList) only done when this is Y --></attribute>
        <attribute name="filterByDate" type="String" mode="IN" optional="true"/>
        <attribute name="filterByDateValue" type="Timestamp" mode="IN" optional="true"/>
        <attribute name="viewIndex" type="Integer" mode="IN" optional="true"/>
        <attribute name="viewSize" type="Integer" mode="IN" optional="true"/>
        <attribute name="list" type="List" mode="OUT" optional="true"/>
        <attribute name="listSize" type="Integer" mode="OUT" optional="false"/>
        <attribute name="queryString" type="String" mode="OUT" optional="true"/>
        <attribute name="queryStringMap" type="java.util.Map" mode="OUT" optional="true"/>
    </service>

 

可以查询分页,唯一遗憾就是数据字典显示

id name statudId desc    
001 名称1 s011 描述1    
002 名称2 s022 描述2    
           
           



id name statudId desc    
001 名称1 新建 描述1    
002 名称2 完成 描述2    
           
           



key             Map

1 字段名称  2  服务名称(表名)  3  codeKey  4  codeValue()

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics