Search in sources :

Example 1 with PointTradeWarpper

use of com.ikoori.vip.server.modular.biz.warpper.PointTradeWarpper in project vip by guangdada.

the class PointTradeController method list.

/**
 * 获取积分明细列表
 */
@RequestMapping(value = "/list")
@ResponseBody
public Object list(String nickname, String mobile, Integer inOut, Long pointId, Integer tradeType) {
    Long userId = Long.valueOf(ShiroKit.getUser().getId());
    Merchant merchant = merchantService.getMerchantUserId(userId);
    Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage();
    List<Map<String, Object>> result = pointTradeService.getPointTradeList(page, nickname, mobile, inOut, pointId, merchant.getId(), tradeType, page.getOrderByField(), page.isAsc());
    page.setRecords((List<Map<String, Object>>) new PointTradeWarpper(result).warp());
    return super.packForBT(page);
}
Also used : Merchant(com.ikoori.vip.common.persistence.model.Merchant) PointTradeWarpper(com.ikoori.vip.server.modular.biz.warpper.PointTradeWarpper) Map(java.util.Map) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Aggregations

Merchant (com.ikoori.vip.common.persistence.model.Merchant)1 PointTradeWarpper (com.ikoori.vip.server.modular.biz.warpper.PointTradeWarpper)1 Map (java.util.Map)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1