Commit 6fed1b6a by levphon

工单详情-验证、激活

1 parent 2275d8f4
...@@ -136,7 +136,13 @@ public class WorkOrderService { ...@@ -136,7 +136,13 @@ public class WorkOrderService {
for (WorkOrderDocs doc : woDocs) { for (WorkOrderDocs doc : woDocs) {
byte[] bytes = HttpUtils.downloadBytes(doc.getPath()); byte[] bytes = HttpUtils.downloadBytes(doc.getPath());
zos.putNextEntry(new ZipEntry(vinPath + doc.getName())); String filename = doc.getName();
if (!filename.contains(".")) {
String suffix = doc.getPath().substring(doc.getPath().lastIndexOf("."));
filename = filename + suffix;
}
zos.putNextEntry(new ZipEntry(vinPath + filename));
zos.write(bytes, 0, bytes.length); zos.write(bytes, 0, bytes.length);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!