public void modifyLinkPf(HR_Link_Performance lp) throws Exception{
Integer id = lp.getId();
int nrdt = lp.getSumnrdt();
int sample = lp.getSampleNum();
int error = lp.getErrorNum();
float grade = lp.getGrade();
String re = lp.getRe();       
String sql = "{call HR_UpdateLinkPf(?,?,?,?,?,?)}";
Connection conn = getContextStrategy().getDBConnection();
try{
CallableStatement cs = conn.prepareCall(sql);
cs.setInt(1,id);
cs.setInt(2,nrdt);
cs.setInt(3,sample);
cs.setInt(4,error);
cs.setFloat(5,grade);
cs.setString(6,re);

cs.executeUpdate();
cs.close();
}catch(Exception ex){
ex.printStackTrace();
}finally{
conn.close();
}

}
存储过程单独执行没有问题。所传参数检查过了,也没有问题。而且返回的受影响行数为1,可是数据库中的纪录并没有更新。小妹刚开始转到java组,求救。
还有以这种方式执行更新的有好几个地方,一样的写法和调用方法,有的可以更新,有的却不可以,小妹百思不得其解