コード例 #1
0
 @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;
 }
コード例 #2
0
 @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;
 }
コード例 #3
0
 @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;
 }
コード例 #4
0
 @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;
 }