use of com.ikoori.vip.server.modular.biz.warpper.CardWarpper in project vip by guangdada.
the class CardController method list.
/**
* 获取会员卡列表
*/
@RequestMapping(value = "/list")
@Permission
@ResponseBody
public Object list(String condition) {
Long userId = Long.valueOf(ShiroKit.getUser().getId());
Merchant merchant = merchantService.getMerchantUserId(userId);
Page<Card> page = new PageFactory<Card>().defaultPage();
List<Map<String, Object>> result = cardService.getCardList(page, condition, page.getOrderByField(), page.isAsc(), merchant.getId());
page.setRecords((List<Card>) new CardWarpper(result).warp());
return super.packForBT(page);
}
Aggregations