1 <service verb="get" noun="ProductsByCategory"> 2 <in-parameters> 3 <parameter name="productCategoryId" required="true"/> 4 <parameter name="level" type="Integer" default-value="1"/> 5 <parameter name="pageIndex" type="Integer" default-value="0"/> 6 <parameter name="pageSize" type="Integer" default-value="100"/> 7 <parameter name="pageNoLimit" type="Boolean" default="false"/> 8 <parameter name="orderByField" type="String"/> 9 </in-parameters> 10 <out-parameters> 11 <parameter name="productList"><parameter name="product" type="Map"> 12 <auto-parameters entity-name="mantle.product.Product"/> 13 </parameter></parameter> 14 </out-parameters> 15 <actions> 16 <service-call name="da.product.CategoryServices.get#ChildProductCategoryIds" in-map="[productCategoryId:productCategoryId,level:level]" out-map="context"/> 17 <set field="paginateMap" from="[pageIndex: pageIndex, pageSize: pageSize, pageNoLimit: pageNoLimit, orderByField: orderByField]"/> 18 <entity-find entity-name="mantle.product.category.ProductCategoryMember" list="pcmList"> 19 <search-form-inputs input-fields-map="paginateMap"/> 20 <date-filter/> 21 <econdition field-name="productCategoryId" operator="in" from="productCategoryIds"/> 22 </entity-find> 23 <entity-find entity-name="mantle.product.Product" list="productList"> 24 <econdition field-name="statusId" value="ProductOnShelf"/> 25 <econdition field-name="productId" operator="in" from="pcmList.productId"/> 26 </entity-find> 27 <service-call name="da.common.CommonServices.add#PaginateResponseHeaders" in-map="[pageIndex:pageIndex, 28 pageSize:pageSize, totalCount:pcmListCount,pageMaxIndex:pcmListPageMaxIndex, 29 pageRangeLow:pcmListPageRangeLow, pageRangeHigh:pcmListPageRangeHigh]"/> 30 </actions> 31 </service>
17行和第19行
时间: 2024-11-02 21:38:08