类 TradeAccountHistoryListDirective
java.lang.Object
com.publiccms.common.directive.BaseTemplateDirective
com.publiccms.common.base.AbstractTemplateDirective
com.publiccms.views.directive.trade.TradeAccountHistoryListDirective
- 所有已实现的接口:
Directive,HttpDirective,freemarker.template.TemplateDirectiveModel,freemarker.template.TemplateModel
tradeAccountHistoryList 账户历史列表查询指令
参数列表
accountId账户iduserId操作用户idstatus状态,【0:预充值,1:消费,2:充值,3:退款】startCreateDate起始创建日期,【2020-01-01 23:59:59】,【2020-01-01】endCreateDate终止创建日期,【2020-01-01 23:59:59】,【2020-01-01】orderType排序类型,【asc:正序,desc:倒叙】,默认为创建日期倒叙pageIndex页码pageSize每页条数
返回结果
pagePageHandlerpage.listList类型 查询结果实体列表TradeAccountHistory
<@trade.accountHistoryList pageSize=10><#list page.list as a>${a.amountChange}<#sep>,</#list></@trade.accountHistoryList>
<script>
$.getJSON('${site.dynamicPath}api/directive/trade/accountHistoryList?authToken=用户登录Token&authUserId=用户id', function(data){
console.log(data.page.totalCount);
});
</script>
-
字段概要
字段从类继承的字段 com.publiccms.common.base.AbstractTemplateDirective
ADVANCED, APP_TOKEN, AUTH_TOKEN, AUTH_USER_ID, siteComponent从类继承的字段 com.publiccms.common.directive.BaseTemplateDirective
log从接口继承的字段 freemarker.template.TemplateModel
NOTHING -
构造器概要
构造器 -
方法概要
从类继承的方法 com.publiccms.common.base.AbstractTemplateDirective
execute, expose, getAdvanced, getApp, getSite, getUser, getUserId, needAppToken, supportAdvanced从类继承的方法 com.publiccms.common.directive.BaseTemplateDirective
execute, getName, getNamespace, getShortName, httpEnabled, setName, setNamespace, setShortName
-
字段详细资料
-
service
-
-
构造器详细资料
-
TradeAccountHistoryListDirective
public TradeAccountHistoryListDirective()
-
-
方法详细资料
-
execute
public void execute(RenderHandler handler) throws IOException, freemarker.template.TemplateException - 参数:
handler-- 抛出:
IOExceptionfreemarker.template.TemplateException
-
needUserToken
public boolean needUserToken()- 覆盖:
needUserToken在类中AbstractTemplateDirective- 返回:
- whether need the user token
-