|
@@ -142,7 +142,7 @@ public class EsProductPatentService {
|
|
|
return response.hits().total().value();
|
|
|
}
|
|
|
|
|
|
-//添加
|
|
|
+ //添加
|
|
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
|
|
public String addProductPatent(String patentId, Integer productId) throws Exception {
|
|
|
Patent patent = new Patent();
|
|
@@ -151,7 +151,7 @@ public class EsProductPatentService {
|
|
|
patentJoin.setName("product");
|
|
|
patent.setPatentJoin(patentJoin);
|
|
|
patent.setProductId(productId);
|
|
|
- String id= esService.addChildPatent(patent,patentId);
|
|
|
+ String id= esService.addChildPatent(patent,patentId);
|
|
|
return id;
|
|
|
}
|
|
|
}
|