|
@@ -4,6 +4,7 @@ import cn.cslg.pas.common.core.base.IfConstant;
|
|
|
import cn.cslg.pas.common.dto.PatentColumnDTO;
|
|
|
import cn.cslg.pas.common.dto.PatentDTO;
|
|
|
//import cn.cslg.pas.common.dto.business.EsPatentFamilyDTO;
|
|
|
+import cn.cslg.pas.common.dto.business.EsPatentFamilyDTO;
|
|
|
import cn.cslg.pas.common.model.request.MapRequest;
|
|
|
import cn.cslg.pas.common.model.request.OrderDTO;
|
|
|
import cn.cslg.pas.common.model.request.QueryRequest;
|
|
@@ -381,19 +382,19 @@ public class EsService {
|
|
|
|
|
|
/**
|
|
|
* 更新同族
|
|
|
- * @param familyPatent
|
|
|
+ * @param message
|
|
|
* @param id
|
|
|
* @return
|
|
|
*/
|
|
|
- public Integer updateatentFamily(FamilyPatent familyPatent, String id) {
|
|
|
- UpdateRequest<FamilyPatent, FamilyPatent> req;
|
|
|
+ public Integer updatePatentFamily(PatentFamilyMessage message, String id) {
|
|
|
+ UpdateRequest<PatentFamilyMessage, PatentFamilyMessage> req;
|
|
|
req = UpdateRequest.of(
|
|
|
b -> b.index("patent_family")
|
|
|
.id(id)
|
|
|
- .doc(familyPatent)
|
|
|
+ .doc(message)
|
|
|
);
|
|
|
try {
|
|
|
- client.update(req, FamilyPatent.class);
|
|
|
+ client.update(req, PatentFamilyMessage.class);
|
|
|
return 1;
|
|
|
} catch (IOException e) {
|
|
|
return -1;
|