Search in sources :

Example 1 with MemberWarpper

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

the class MemberController method list.

/**
 * 获取会员列表
 */
@RequestMapping(value = "/list")
@Permission
@ResponseBody
public Object list(String memName, String memMobile, Integer memSex, String memNickName, Long cardId, String cardNumber, Integer isActive, String unionid) {
    Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage();
    List<Map<String, Object>> result = memberService.getMemberList(page, memName, memSex, memNickName, memMobile, cardId, cardNumber, isActive, unionid, page.getOrderByField(), page.isAsc());
    page.setRecords((List<Map<String, Object>>) new MemberWarpper(result).warp());
    return super.packForBT(page);
}
Also used : MemberWarpper(com.ikoori.vip.server.modular.biz.warpper.MemberWarpper) HashMap(java.util.HashMap) Map(java.util.Map) 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 MemberWarpper (com.ikoori.vip.server.modular.biz.warpper.MemberWarpper)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1