use of com.ikoori.vip.server.modular.biz.warpper.PointTradeWarpper in project vip by guangdada.
the class PointTradeController method list.
/**
* 获取积分明细列表
*/
@RequestMapping(value = "/list")
@ResponseBody
public Object list(String nickname, String mobile, Integer inOut, Long pointId, Integer tradeType) {
Long userId = Long.valueOf(ShiroKit.getUser().getId());
Merchant merchant = merchantService.getMerchantUserId(userId);
Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage();
List<Map<String, Object>> result = pointTradeService.getPointTradeList(page, nickname, mobile, inOut, pointId, merchant.getId(), tradeType, page.getOrderByField(), page.isAsc());
page.setRecords((List<Map<String, Object>>) new PointTradeWarpper(result).warp());
return super.packForBT(page);
}
Aggregations