3435363738394041424344
prToUpdate = rightDao.getRightById(new Long(pr.getPrincipalId())); if (prToUpdate == null) { rightDao.insert(pr); } else { BeanHelper.copy(pr, prToUpdate, User.class); rightDao.update(prToUpdate); } } } } return null;