Эх сурвалжийг харах

质检-日志填报
1、按月封装 非空判断错误调整

LHB 1 сар өмнө
parent
commit
ead61400a9

+ 2 - 2
blade-service/blade-business/src/main/java/org/springblade/business/service/impl/ContractLogServiceImpl.java

@@ -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();