Browse Source

在线预览BUG修复

anderx 7 years ago
parent
commit
10bb05508a

+ 1 - 1
src/main/java/com/goafanti/common/controller/PreviewController.java

@@ -280,7 +280,7 @@ public class PreviewController extends BaseApiController {
 	}
 
 	private void handleTechProjectPreview(HttpServletResponse response, TechProject tp, AttachmentType attachmentType) {
-		if (attachmentType == AttachmentType.TECH_PROJECT) {
+		if (attachmentType == AttachmentType.TECH_PROJECT||attachmentType == AttachmentType.ORGANIZATION_APPLICATION) {
 			downloadFile(response, tp.getApprovalDownloadFileName(), tp.getApprovalUrl());
 		}
 	}