@Override public boolean hangkongAdd(Hangkong hk) throws Exception { // TODO 增 String sql = "insert into hangkong (daima,name,shui,bizongId) values (?,?,?,?)"; int count = this.update(sql, hk.getDaima(), hk.getName(), hk.getShui(), hk.getBizongId()); return count > 0; }
@Override public boolean hangkongUpdate(Hangkong hk) throws Exception { // TODO Auto-generated method stub String sql = "update hangkong set daima=?,name=?,shui=?,bizongId=? where id=?"; int count = this.update(sql, hk.getDaima(), hk.getName(), hk.getShui(), hk.getBizongId(), hk.getId()); return count > 0; }