|
@@ -167,7 +167,7 @@ public class ImportFromWebToEsService implements PatentImportImp {
|
|
|
Integer startPage = calculate.getStartPage();
|
|
|
Integer endPage = calculate.getEndPage();
|
|
|
|
|
|
- for (int i = startPage; i <= endPage; i++) {
|
|
|
+ for (int i = startPage; i < endPage; i++) {
|
|
|
PatentStarListDTO patentStarListDTOTemp = new PatentStarListDTO();
|
|
|
BeanUtils.copyProperties(patentStarListDto, patentStarListDTOTemp);
|
|
|
patentStarListDTOTemp.setPageNum(i + 1);
|
|
@@ -260,7 +260,7 @@ public class ImportFromWebToEsService implements PatentImportImp {
|
|
|
BeanUtils.copyProperties(patent, orgPatent, FormatUtil.getNullPropertyNames(patent));
|
|
|
Patent patent1 = new Patent();
|
|
|
BeanUtils.copyProperties(orgPatent, patent1);
|
|
|
- dtos.removeIf(i->i.getIndex().equals(uploadPatentWebDTO.getIndex()));
|
|
|
+ uploadPatentWebDTOS.removeIf(i->i.getIndex().equals(uploadPatentWebDTO.getIndex()));
|
|
|
savePatentToEsThread.awakeTask(patent1);
|
|
|
}
|
|
|
else {
|