|
@@ -255,7 +255,7 @@ public class ContractLogServiceImpl extends BaseServiceImpl<ContractLogMapper, C
|
|
|
.isNotNull(ContractLog::getPdfUrl)
|
|
|
.orderByAsc(ContractLog::getRecordTime)
|
|
|
);
|
|
|
- if(CollectionUtil.isNotEmpty(contractLogs)){
|
|
|
+ if(CollectionUtil.isEmpty(contractLogs)){
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -302,7 +302,7 @@ public class ContractLogServiceImpl extends BaseServiceImpl<ContractLogMapper, C
|
|
|
try {
|
|
|
String filePath = FileUtils.getSysLocalFileUrl();
|
|
|
Long id = SnowFlakeUtil.getId();
|
|
|
- String trialPdf = filePath + "/pdf/" + id + ".pdf";
|
|
|
+ String trialPdf = filePath + "pdf/" + id + ".pdf";
|
|
|
File trialPdf2 = ResourceUtil.getFile(trialPdf);
|
|
|
if (trialPdf2.exists()) {
|
|
|
trialPdf2.delete();
|