Search in sources :

Example 1 with RedpackLogWarpper

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

the class RedpackLogController method list.

/**
 * 获取红包记录列表
 */
@RequestMapping(value = "/list")
@ResponseBody
@Permission
public Object list(String billno, String unionid, Integer sendStatus, String sendS, String sendE, Integer redpackId) {
    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 = redpackLogService.getRedpackLogList(page, merchant.getId(), billno, unionid, sendStatus, sendS, sendE, redpackId, page.getOrderByField(), page.isAsc());
    page.setRecords((List<Map<String, Object>>) new RedpackLogWarpper(result).warp());
    return super.packForBT(page);
}
Also used : Merchant(com.ikoori.vip.common.persistence.model.Merchant) Map(java.util.Map) RedpackLogWarpper(com.ikoori.vip.server.modular.biz.warpper.RedpackLogWarpper) Permission(com.ikoori.vip.common.annotion.Permission) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Aggregations

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