@Override
 @Transactional
 public void updateUserGroup(UserGroup userGroup, String userName) {
   Date currentDate = new Date();
   userGroup.setUpdateUser(userName);
   userGroup.setUpdateDate(currentDate);
   userGroupDao.update(userGroup);
 }
 @Override
 @Transactional
 public void deleteUserGroup(UserGroup userGroup) {
   userGroupDao.delete(userGroup);
 }
 @Override
 @Transactional(readOnly = true)
 public List<UserGroup> getUserGroups(String search) {
   return userGroupDao.findUserGroupByKeyword(search);
 }
 @Override
 @Transactional(readOnly = true)
 public List<UserGroup> getAllUserGroups() {
   return userGroupDao.findAll();
 }