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行

相关文章:

  • 2021-09-17
  • 2021-06-19
  • 2021-12-28
  • 2021-09-28
  • 2021-12-05
  • 2022-01-15
  • 2021-12-01
猜你喜欢
  • 2021-07-11
  • 2021-11-14
  • 2021-08-02
  • 2022-02-16
  • 2022-02-26
  • 2021-05-06
  • 2021-12-13
相关资源
相似解决方案