/** 修改通知 */ public boolean modifyNotic(Notic notic) throws ManagerException { boolean r = false; DBUtil db = new DBUtil(); String sql = "update TD_SD_NOTIC set" + " topic='" + notic.getTopic() + "', content='" + notic.getContent() + "', begintime=" + SQLManager.getInstance().getDBAdapter().getDateString(notic.getBeginTime()) + ", endtime=" + SQLManager.getInstance().getDBAdapter().getDateString(notic.getEndTime()) + ", place='" + notic.getPlace() + "', SOURCE=" + notic.getSource() + " where schedular_id=" + notic.getNoticID() + ""; try { db.executeUpdate(sql); r = true; } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } return r; }