@RemoteMethod
 public Page queryPage(Map params, int pageIndex, int pageSize) {
   Page<DmStaff> page = new Page<DmStaff>(pageIndex, pageSize);
   page.setParams(params);
   page = dmStaffService.queryPage(page);
   return page;
 }
 @RemoteMethod
 public Map<String, Object> modifyPassword(Map params) {
   AdminLoginInfo currAdmin = getCurrentLoginAdmin();
   params.put("staffId", currAdmin.getStaffId());
   params.put("staffCode", currAdmin.getStaffCode());
   Map<String, Object> ret = dmStaffService.modifyPassword(params);
   return ret;
 }
 @RemoteMethod
 public Map<String, Object> attachRole(DmStaff staff) {
   Map<String, Object> ret = new HashMap<String, Object>();
   ret.put("success", true);
   ret.put("msg", "角色分配成功");
   dmStaffService.attachRole(staff);
   return ret;
 }
 @RemoteMethod
 public Map<String, Object> deleteAction(DmStaff staff) {
   Map<String, Object> ret = new HashMap<String, Object>();
   ret.put("success", true);
   ret.put("msg", "删除成功");
   dmStaffService.delete(staff);
   return ret;
 }