|
|
@@ -23,6 +23,7 @@ import com.goafanti.cognizance.service.OrgTechCenterDetailService;
|
|
|
import com.goafanti.cognizance.service.OrgTechProductService;
|
|
|
import com.goafanti.common.bo.Result;
|
|
|
import com.goafanti.common.constant.ErrorConstants;
|
|
|
+import com.goafanti.common.dao.UserMapper;
|
|
|
import com.goafanti.common.enums.AttachmentType;
|
|
|
import com.goafanti.common.model.OrgActivity;
|
|
|
import com.goafanti.common.model.OrgActivityCost;
|
|
|
@@ -42,6 +43,7 @@ import com.goafanti.common.utils.SHA256Util;
|
|
|
import com.goafanti.common.utils.StringUtils;
|
|
|
import com.goafanti.copyright.bo.CopyrightInfoDetail;
|
|
|
import com.goafanti.copyright.service.CopyrightInfoService;
|
|
|
+import com.goafanti.customer.bo.CustomerOrganizationDetailBo;
|
|
|
import com.goafanti.patent.service.PatentInfoService;
|
|
|
import com.goafanti.techproject.service.TechProjectService;
|
|
|
import com.goafanti.user.service.OrgHumanResourceService;
|
|
|
@@ -84,6 +86,8 @@ public class PreviewController extends BaseApiController {
|
|
|
private OrgStandardService orgStandardService;
|
|
|
@Resource
|
|
|
private OrganizationIdentityService organizationIdentityService;
|
|
|
+ @Resource
|
|
|
+ private UserMapper userMapper;
|
|
|
|
|
|
@Value(value = "${aesSecretKey}")
|
|
|
private String secretKey = null;
|
|
|
@@ -104,6 +108,12 @@ public class PreviewController extends BaseApiController {
|
|
|
case PATENT_PRORY_STATEMENT:
|
|
|
case PATENT_WRITING:
|
|
|
case AUTHORIZATION_NOTICE:
|
|
|
+ case ORGANIZATION_APPLICATION:
|
|
|
+ CustomerOrganizationDetailBo u=userMapper.findOrganizationCustomerDetail(token);
|
|
|
+ TechProject p=new TechProject();
|
|
|
+ p.setApprovalUrl(u.getPojectApplicationUrl());
|
|
|
+ handleTechProjectPreview(response, p, attachmentType);
|
|
|
+ break;
|
|
|
case PATENT_CERTIFICATE:
|
|
|
PatentInfo pi = patentInfoService.selectByPrimaryKey(token);
|
|
|
if (pi == null) {
|
|
|
@@ -249,6 +259,8 @@ public class PreviewController extends BaseApiController {
|
|
|
downloadFile(response, pi.getPatentCertificateDownloadFileName(), pi.getPatentCertificateUrl());
|
|
|
} else if (attachmentType == AttachmentType.PATENT_PRORY_STATEMENT) {
|
|
|
downloadFile(response, pi.getPatentProryStatementDownloadFileName(), pi.getPatentProryStatementUrl());
|
|
|
+ } else if (attachmentType == AttachmentType.ORGANIZATION_APPLICATION) {
|
|
|
+ downloadFile(response, pi.getPatentProryStatementDownloadFileName(), pi.getPojectApplicationUrl());
|
|
|
}
|
|
|
}
|
|
|
|