|
|
@@ -300,14 +300,14 @@ public class PreviewController extends BaseApiController {
|
|
|
|
|
|
private void handleIntellectualPropertyPreview(HttpServletResponse response, OrgIntellectualProperty oip,
|
|
|
AttachmentType attachmentType) {
|
|
|
- if (attachmentType == AttachmentType.TECH_PRODUCT) {
|
|
|
+ if (attachmentType == AttachmentType.PROPERTY_RIGHT) {
|
|
|
downloadFile(response, oip.getPropertyRightDownloadFileName(), oip.getPropertyRightUrl());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private void handleAchievementPreview(HttpServletResponse response, OrgTechAchievement ota,
|
|
|
AttachmentType attachmentType) {
|
|
|
- if (attachmentType == AttachmentType.TECH_PRODUCT) {
|
|
|
+ if (attachmentType == AttachmentType.ACHIEVEMENT) {
|
|
|
downloadFile(response, ota.getEnclosureDownloadFileName(), ota.getEnclosureUrl());
|
|
|
}
|
|
|
}
|