@Override public int changeUserPassword(int userId, String encryptNewPassword) { AdminUser adminUser = new AdminUser(); adminUser.setPassword(encryptNewPassword); AdminUserCriteria criteria = new AdminUserCriteria(); criteria.createCriteria().andIdEqualTo(userId); return adminUserMapper.updateByExampleSelective(adminUser, criteria); }
@Override public int updateByCriteria(AdminUser t, AdminUserCriteria criteria) { return adminUserMapper.updateByExampleSelective(t, criteria); }