微调
This commit is contained in:
@@ -108,14 +108,14 @@ public class articleDao {
|
||||
try{
|
||||
conn = JdbcUtils.getConnection();
|
||||
conn1 = JdbcUtils.getConnection();
|
||||
preparedStatement.setInt(1, id);
|
||||
preparedStatement = conn.prepareStatement(sql);
|
||||
|
||||
preparedStatement1.setInt(1, id);
|
||||
preparedStatement.setInt(1, id);
|
||||
preparedStatement1 = conn1.prepareStatement(sql1);
|
||||
preparedStatement1.setInt(1, id);
|
||||
|
||||
|
||||
rs = preparedStatement.executeQuery();
|
||||
preparedStatement1.executeUpdate(sql1);
|
||||
preparedStatement1.executeUpdate();
|
||||
|
||||
while(rs.next()){
|
||||
int articleid = rs.getInt(1);
|
||||
|
Reference in New Issue
Block a user