Commit 58260716 authored by fangxinjiang's avatar fangxinjiang

税友反馈文件下载-fxj

parent eb7f31b9
...@@ -8490,7 +8490,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -8490,7 +8490,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
byte[] data = EntityUtils.toByteArray(entity); byte[] data = EntityUtils.toByteArray(entity);
String entryName =socialId; String entryName =socialId;
if (null != socialVo){ if (null != socialVo){
entryName = generateFileName(url, socialVo.getEmpName() + "_" + socialVo.getEmpIdcard() + "_" + (i + 1)); if (i==0){
entryName = generateFileName(url, socialVo.getEmpName() + "_" + socialVo.getEmpIdcard() + "_社保");
}else {
entryName = generateFileName(url, socialVo.getEmpName() + "_" + socialVo.getEmpIdcard() + "_社保" + "_" + (i + 1));
}
} }
ZipArchiveEntry zipEntry = new ZipArchiveEntry(entryName); ZipArchiveEntry zipEntry = new ZipArchiveEntry(entryName);
zipOutput.putArchiveEntry(zipEntry); zipOutput.putArchiveEntry(zipEntry);
......
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