光辉飞翔

导航

 

 public void updateProcessHistoryStatus(String className, Long id, Integer status) {
  final String hql = "UPDATE ProcessHistory SET flowStatus = :status WHERE instanceType=:instanceType and instancePk = :instancePk";
  this.getSession().createQuery(hql).setInteger("status", status).setLong("instancePk", id)
    .setString("instanceType", className).executeUpdate();
 }

posted on 2012-11-02 14:37  光辉飞翔  阅读(739)  评论(0编辑  收藏  举报