Search in sources :

Example 1 with StoreEmployeeWarpper

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

the class StoreEmployeeController method list.

/**
 * 获取员工管理列表
 */
@Permission
@RequestMapping(value = "/list")
@ResponseBody
public Object list(String employeeName, String mobile, Integer sex, Long storeId, Long roleId) {
    Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage();
    List<Map<String, Object>> result = storeEmployeeService.getStoreEmployeeList(page, employeeName, mobile, sex, storeId, roleId, page.getOrderByField(), page.isAsc());
    page.setRecords((List<Map<String, Object>>) new StoreEmployeeWarpper(result).warp());
    return super.packForBT(page);
}
Also used : StoreEmployeeWarpper(com.ikoori.vip.server.modular.biz.warpper.StoreEmployeeWarpper) 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 StoreEmployeeWarpper (com.ikoori.vip.server.modular.biz.warpper.StoreEmployeeWarpper)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