소스 검색

计量重新计算task空指针

cr 3 일 전
부모
커밋
d8534ad945

+ 3 - 1
blade-service/blade-meter/src/main/java/org/springblade/meter/service/impl/InterimPayCertificateServiceImpl.java

@@ -235,9 +235,11 @@ public class InterimPayCertificateServiceImpl extends BaseServiceImpl<InterimPay
 
             if (task == null) {
                 System.out.println("未找到任务相关信息");
+                return;
             }
-            if (task != null && task.getStatus() == 3) {
+            if (task.getStatus() == 3) {
                 System.out.println("已废除无法查看报表");
+                return;
             }
 
             String sql = "";