Browse Source

BUg修复

jichaobo 2 years ago
parent
commit
028866f1da

+ 1 - 0
service-fire/service-fire-biz/src/main/java/com/usky/fire/controller/web/BscEnterpriseAutonomyController.java

@@ -48,6 +48,7 @@ public class BscEnterpriseAutonomyController {
      */
     @GetMapping("streetCompany")
     public ApiResult<Void> streetCompany() {
+//        bscEnterpriseAutonomyService.patrolInspection();
         bscEnterpriseAutonomyService.enterpriseAutonomyTask();
         return ApiResult.success();
     }

+ 1 - 3
service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/BscEnterpriseAutonomyServiceImpl.java

@@ -632,9 +632,7 @@ public class BscEnterpriseAutonomyServiceImpl extends AbstractCrudService<BscEnt
         LambdaQueryWrapper<PatrolInspectionPlan> queryWrapper = Wrappers.lambdaQuery();
         queryWrapper.select(PatrolInspectionPlan::getId)
 //                .eq(PatrolInspectionPlan::getTenantId, SecurityUtils.getTenantId())
-                .eq(PatrolInspectionPlan::getEnable, 1)
-                .between(PatrolInspectionPlan::getEndDate, startDate, endDate)
-                .between(PatrolInspectionPlan::getStartDate, startDate, endDate);
+                .eq(PatrolInspectionPlan::getEnable, 1);
         List<PatrolInspectionPlan> planList = patrolInspectionPlanService.list(queryWrapper);
         if (CollectionUtils.isNotEmpty(planList)) {
             List<Integer> planIdList = new ArrayList<>();