|
@@ -78,23 +78,25 @@ public class CountryPatentService {
|
|
|
BeanUtil.copyProperties(record, patent);
|
|
BeanUtil.copyProperties(record, patent);
|
|
|
patent.setSort(patentRepo.findMax());
|
|
patent.setSort(patentRepo.findMax());
|
|
|
|
|
|
|
|
- //寰球案号
|
|
|
|
|
- PatentType type = patent.getType();
|
|
|
|
|
- patent.setUwNo(partnerService.getUwNo(patent.getClientPartnerId(), CaseType.valueOf(type.name()), CaseStage.COUNTRY, record
|
|
|
|
|
|
|
+ // 寰球案号
|
|
|
|
|
+ String type = patent.getType().name();
|
|
|
|
|
+ // pct国家申请专利 + 巴黎公约
|
|
|
|
|
+ String applyRoute = record.getApplyRoute().name();
|
|
|
|
|
+ patent.setUwNo(partnerService.getUwNo(patent.getClientPartnerId(), CaseType.valueOf(type), CaseStage.valueOf(applyRoute), record
|
|
|
.getCountry(), patent
|
|
.getCountry(), patent
|
|
|
.getSort()));
|
|
.getSort()));
|
|
|
patent.setApplyStatus(ApplyStatus.APPLY_STAGE);
|
|
patent.setApplyStatus(ApplyStatus.APPLY_STAGE);
|
|
|
patent = patentRepo.save(patent);
|
|
patent = patentRepo.save(patent);
|
|
|
|
|
|
|
|
- CountryPatent iPatent = new CountryPatent(record);
|
|
|
|
|
- iPatent.setPatentId(patent.getId());
|
|
|
|
|
- iPatent = countryPatentRepo.save(iPatent);
|
|
|
|
|
|
|
+ CountryPatent cPatent = new CountryPatent(record);
|
|
|
|
|
+ cPatent.setPatentId(patent.getId());
|
|
|
|
|
+ cPatent = countryPatentRepo.save(cPatent);
|
|
|
|
|
|
|
|
// 保存附件
|
|
// 保存附件
|
|
|
if (CollectionUtils.isNotEmpty(record.getAttachments())) {
|
|
if (CollectionUtils.isNotEmpty(record.getAttachments())) {
|
|
|
attachmentService.batchSave(record.getAttachments(), userId, record.getCid());
|
|
attachmentService.batchSave(record.getAttachments(), userId, record.getCid());
|
|
|
}
|
|
}
|
|
|
- return iPatent;
|
|
|
|
|
|
|
+ return cPatent;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public ApplyStatus getApplyStatus(CountryWorkflow workflow) {
|
|
public ApplyStatus getApplyStatus(CountryWorkflow workflow) {
|