statement.setLong(i + 1, Long.parseLong(ids[i].getValue()));
}
rs = statement.executeQuery();
while (rs.next()){
Attachment attachment = new AttachmentImpl(DataAccessFactory.getInstance().createUUID(Long.toString(rs.getLong(1))));
attachment.setSize(rs.getLong(2));
attachment.setName(rs.getString(3));
attachment.setCreateUser(rs.getString(4));
attachment.setCreateTime(rs.getTimestamp(5));
if (needData){
//分布式文件系统
// byte[] data = FileUpDownLoadHandler.downloadData(rs.getString("file_id"));
byte[] data = rs.getBytes("data");
attachment.setData(data);
}
attachmentList.add(attachment);
}
}
catch (Exception e){