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