فهرست منبع

巡检地点放开修改权限

hanzhengyi 1 سال پیش
والد
کامیت
c30cd10e2a

+ 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);
     }