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