|
|
|
@ -257,7 +257,7 @@ public class BatchExportServiceImpl implements BatchExportService {
|
|
|
|
while ((len = bis.read(buf, 0, buf.length)) != -1) {
|
|
|
|
while ((len = bis.read(buf, 0, buf.length)) != -1) {
|
|
|
|
bos.write(buf, 0, len);
|
|
|
|
bos.write(buf, 0, len);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//bis.close(); // 及时关闭流,避免资源泄露
|
|
|
|
bis.close(); // 及时关闭流,避免资源泄露
|
|
|
|
out.reset(); // 重置ByteArrayOutputStream以便下次使用
|
|
|
|
out.reset(); // 重置ByteArrayOutputStream以便下次使用
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
exportTaskDetailsMapper.upStatc(2, list.getId());
|
|
|
|
exportTaskDetailsMapper.upStatc(2, list.getId());
|
|
|
|
|