@Override public Integer update(String id, String username){ String sql = "update Team_CheLiang set username=:username where id =:id"; Query query=this.getSession().createSQLQuery(sql); query.setString("username", username); query.setString("id", id); return query.executeUpdate(); }
时间: 2024-10-10 06:34:58