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