소스 검색

巡检地点放开修改权限

hanzhengyi 1 년 전
부모
커밋
c30cd10e2a
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PatrolInspectionSiteServiceImpl.java

+ 6 - 6
service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PatrolInspectionSiteServiceImpl.java

@@ -162,12 +162,12 @@ public class PatrolInspectionSiteServiceImpl extends AbstractCrudService<PatrolI
 
     @Override
     public void updatePatrolInspectionSite(PatrolInspectionSite patrolInspectionSite) {
-        LambdaQueryWrapper<PatrolInspectionPlanSite> queryWrapperOne = Wrappers.lambdaQuery();
-        queryWrapperOne.eq(PatrolInspectionPlanSite::getSiteId, patrolInspectionSite.getId());
-        List<PatrolInspectionPlanSite> planSiteList = planSiteService.list(queryWrapperOne);
-        if (planSiteList.size() > 0) {
-            throw new BusinessException("巡检地点已绑定计划不可修改");
-        }
+//        LambdaQueryWrapper<PatrolInspectionPlanSite> queryWrapperOne = Wrappers.lambdaQuery();
+//        queryWrapperOne.eq(PatrolInspectionPlanSite::getSiteId, patrolInspectionSite.getId());
+//        List<PatrolInspectionPlanSite> planSiteList = planSiteService.list(queryWrapperOne);
+//        if (planSiteList.size() > 0) {
+//            throw new BusinessException("巡检地点已绑定计划不可修改");
+//        }
         this.updateById(patrolInspectionSite);
     }