Hibernate-Sql修改语句

@Override
public void updateTemMsg(String ticket,String time) {

String sql="UPDATE INTER_TEMPTOKEN_MSG A SET A.ISDEL = '0',A.DESTROYTIME='"+time+"'"+ "WHERE a.ticket='"+ticket+"'";
this.getCurrentSession().createSQLQuery(sql).executeUpdate();

}

posted on 2018-07-17 14:17  贾广祥  阅读(1853)  评论(0)    收藏  举报

导航