Kaynağa Gözat

值班查岗BUG修复

jichaobo 2 yıl önce
ebeveyn
işleme
704ff8fbdd

+ 4 - 5
service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PostInspectServiceImpl.java

@@ -43,14 +43,13 @@ public class PostInspectServiceImpl extends AbstractCrudService<PostInspectMappe
     public List<PostInspect> postInspectPlatform() {
         List<PostInspect> list = new ArrayList<>();
         SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-//        List<String> companyIdList = baseUserCompanyService.companyIdList();
-//        if (CollectionUtils.isNotEmpty(companyIdList)) {
+        List<String> companyIdList = baseUserCompanyService.companyIdList();
+        if (CollectionUtils.isNotEmpty(companyIdList)) {
             Date date = new Date();
             String startTime = OnlineMethod.minuteDateTime(new Date(), -10);
             String endTime = sdf.format(date);
             LambdaQueryWrapper<PostInspect> queryWrapper = Wrappers.lambdaQuery();
-            queryWrapper
-//                    .in(PostInspect::getCompanyId, companyIdList)
+            queryWrapper.in(PostInspect::getCompanyId, companyIdList)
                     .between(PostInspect::getInspectTime, startTime, endTime)
                     .eq(PostInspect::getInspectStatus, 0);
             list = this.list(queryWrapper);
@@ -60,7 +59,7 @@ public class PostInspectServiceImpl extends AbstractCrudService<PostInspectMappe
                 long time = data1 - data2;
                 list.get(i).setCountdown(600 - time);
             }
-//        }
+        }
         return list;
     }