|
|
@@ -224,13 +224,15 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
//真实性
|
|
|
if (StringUtils.isNotBlank(vo.getAuthenticity()) && "1".equals(vo.getAuthenticity())) {
|
|
|
//获取文件数字摘要
|
|
|
- RemoteFileMD5Calculator.MD5Result remoteFileMD5FromHeaders = RemoteFileMD5Calculator.getRemoteFileMD5FromHeaders(file.getPdfFileUrl());
|
|
|
- String md5Hash = remoteFileMD5FromHeaders.getMd5Hash();
|
|
|
+ RemoteFileMD5Calculator.MD5Result fileUrL = RemoteFileMD5Calculator.getRemoteFileMD5FromHeaders(file.getFileUrl());
|
|
|
+ RemoteFileMD5Calculator.MD5Result pdfFileUrl = RemoteFileMD5Calculator.getRemoteFileMD5FromHeaders(file.getPdfFileUrl());
|
|
|
+ String fileMd5 = fileUrL.getMd5Hash();
|
|
|
+ String pdfMd5 = pdfFileUrl.getMd5Hash();
|
|
|
if(vo.getAuthenticityList().contains("1")){
|
|
|
//检测项目下所有工序资料PDF签章有效性
|
|
|
CertBeanVO cb = eVisaClient.onlineCheckSeal(file.getPdfFileUrl());
|
|
|
//数字摘要判断和电签
|
|
|
- if (cb == null || !file.getFileName().equals(md5Hash)) {
|
|
|
+ if (cb == null || !file.getFileMd5().equals(fileMd5) || !file.getPdfMd5().equals(pdfMd5)) {
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
map.put("examiningItem", ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对固化信息有效性检测");
|
|
|
map.put("unqualifiedObject", file.getFileName());
|
|
|
@@ -241,7 +243,7 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对固化信息有效性检测", unqualifiedCount, unqualifiedCount == 0 ? "无" : "详见附件", unqualifiedCount == 0 ? 0 : 1));
|
|
|
}
|
|
|
if(vo.getAuthenticityList().contains("2")){
|
|
|
- if (!file.getFileName().equals(md5Hash)) {
|
|
|
+ if (!file.getFileMd5().equals(fileMd5) || !file.getPdfMd5().equals(pdfMd5)) {
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
map.put("examiningItem", ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对固化信息有效性检测");
|
|
|
map.put("unqualifiedObject", file.getFileName());
|