12345678910111213141516171819202122232425262728 |
- package com.sinosoft.em.alert.notice.manage.dao;
- import com.persistence.service.JDBCHelper;
- import com.persistence.service.exception.PersistenceException;
- /**
- * 通知单管理dao实现类
- * @author zhuanghuiliang
- * @date 2015-09-15
- */
- public class NoticeDaoImpl implements NoticeDaoAble{
- /**
- * 改变预警通知单状态
- *
- * @param jdbc
- * @param fd_id 主键id
- * @param state 状态值
- * @return
- * @throws PersistenceException
- */
- @Override
- public int changeState(JDBCHelper jdbc, String fd_id,String state) throws PersistenceException {
- // TODO Auto-generated method stub
- String sql = "update ECM_EM_PUBLISH_ALERT_NOTICE set state='"+state+"' where fd_objectid='"+fd_id+"'";
- return jdbc.executeUpdateSQL(sql);
- }
-
- }
|