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