Commit b7920465 by levphon

工单图片下载优化

1 parent bcabb9df
......@@ -48,7 +48,6 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
......@@ -145,11 +144,11 @@ public class WorkOrderService {
List<String> pathList = docsList.stream().map(WorkOrderDocs::getPath).collect(Collectors.toList());
String filename = new String("工单图片_".getBytes(StandardCharsets.UTF_8), StandardCharsets.ISO_8859_1) + DateUtils.formatSerial(new Date());
String filename = "WORKORDER_DOCS_" + DateUtils.formatSerial(new Date());
FileUploadServerData uploadServerData = FileUploadUtil.zipToFileSystem(filename, pathList);
return uploadServerData.getSecureUrl();
return uploadServerData.getUrl();
}
return null;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!