Commit 9d6c1478 by fudahua

zip压缩

parent ea7cb06d
......@@ -841,7 +841,8 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
logger.info("[ runDownloadTask.run ]: {}", "准备生成自助指标下载文件 " + condition.getTaskId() + ".xlsx");
int filePos=0;
if (condition.getAmount()>XLS_SIZE){
while (rs.isLast()) {
int num = (condition.getAmount() / XLS_SIZE)+(condition.getAmount()%XLS_SIZE>0?1:0);
while (num-->0) {
originalFilePath = SAVE_FOLDER + "/" + condition.getTaskId()+"-"+filePos + ".xlsx";
filePos++;
saveXlsSplit(originalFilePath,helper,rs,condition);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment