use of com.ikoori.vip.server.modular.biz.warpper.TicketWarpper in project vip by guangdada.
the class TicketController method list.
/**
* 获取小票列表
*/
@Permission
@RequestMapping(value = "/list")
@ResponseBody
public Object list(String ticketName, Long storeId, Model model) {
Long userId = Long.valueOf(ShiroKit.getUser().getId());
Merchant merchant = merchantService.getMerchantUserId(userId);
Page<Ticket> page = new PageFactory<Ticket>().defaultPage();
List<Map<String, Object>> result = ticketService.getTicketList(page, ticketName, storeId, merchant.getId(), page.getOrderByField(), page.isAsc());
page.setRecords((List<Ticket>) new TicketWarpper(result).warp());
return super.packForBT(page);
}
Aggregations