|
@@ -1544,7 +1544,9 @@ public class PatentStarApiService {
|
|
String claimStr = claim.replaceAll("\t", "\n");
|
|
String claimStr = claim.replaceAll("\t", "\n");
|
|
builder.append(" 权利要求");
|
|
builder.append(" 权利要求");
|
|
builder.append("\n");
|
|
builder.append("\n");
|
|
- builder.append(claimStr);
|
|
|
|
|
|
+ if (claim.length() > 50) {
|
|
|
|
+ builder.append(claimStr);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1558,11 +1560,13 @@ public class PatentStarApiService {
|
|
builder.append("\n");
|
|
builder.append("\n");
|
|
builder.append(" 说明书");
|
|
builder.append(" 说明书");
|
|
builder.append("\n");
|
|
builder.append("\n");
|
|
- builder.append(specification);
|
|
|
|
|
|
+ if (specification.length() > 50) {
|
|
|
|
+ builder.append(specification);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
String result = builder.toString();
|
|
String result = builder.toString();
|
|
- if (StringUtils.isNotEmpty(result)) {
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(result) && result.length() > 100) {
|
|
byte[] bytes = result.getBytes();
|
|
byte[] bytes = result.getBytes();
|
|
MultipartFile multipartFile = FileUtils.convertBytesToMultipartFile(bytes, patentNo + "-" + "文本文档.txt");
|
|
MultipartFile multipartFile = FileUtils.convertBytesToMultipartFile(bytes, patentNo + "-" + "文本文档.txt");
|
|
List<String> list = fileManagerService.uploadFileGetGuid(Collections.singletonList(multipartFile));
|
|
List<String> list = fileManagerService.uploadFileGetGuid(Collections.singletonList(multipartFile));
|