b0e766cd5523362ee9235728fd10051949437b82.svn-base 570 B

123456789101112131415161718192021222324
  1. package com.sinosoft.em.alert.duty.records.dao;
  2. import org.springframework.jdbc.core.JdbcTemplate;
  3. import com.persistence.SpringJdbcTemplate;
  4. public class EcmDutySpringDao extends SpringJdbcTemplate {
  5. public boolean updateStat(String fdid, String svalue, String rvalue) {
  6. boolean flag = false;
  7. JdbcTemplate jdbcTemplate = super.getJdbcTemplate();
  8. String strSql = " update ECM_EM_DUTY set STATE = ?, RELEASE = ? where FD_OBJECTID = ?";
  9. Object[] args = { fdid, svalue, rvalue };
  10. jdbcTemplate.update(strSql, args);
  11. flag = true;
  12. return flag;
  13. }
  14. }