类 TradeOrderProductDirective

所有已实现的接口:
Directive, HttpDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

@Component public class TradeOrderProductDirective extends AbstractTemplateDirective
tradeOrderProduct 订单产品查询指令

参数列表

  • id 订单产品id,结果返回object TradeOrderProduct
  • ids 多个订单产品id,逗号或空格间隔,当id为空时生效,结果返回map(id,object)
使用示例

<@trade.orderProduct id=1>${object.quantity}</@trade.orderProduct>

<@trade.orderProduct ids=1,2,3><#list map as k,v>${k}:${v.quantity}<#sep>,</#list></@trade.orderProduct>

 <script>
  $.getJSON('${site.dynamicPath}api/directive/trade/orderProduct?id=1&appToken=接口访问授权Token', function(data){    
    console.log(data.quantity);
  });
  </script>
 
  • 字段详细资料

  • 构造器详细资料

    • TradeOrderProductDirective

      public TradeOrderProductDirective()
  • 方法详细资料