/** * 修改密码 * * @param user */ @Transactional(readOnly = false) public void updatePwd(User user) { entryptPassword(user); userDao.save(user); }
/** * 保存用户 * * @param user */ @Transactional(readOnly = false) public void save(User user) { entryptPassword(user); user.setCreateDate(DateUtils.getSysTimestamp()); userDao.save(user); }