|
@@ -104,13 +104,13 @@ public class IsLotoSwitchMapServiceImpl extends ServiceImpl<IsLotoSwitchMapMappe
|
|
|
// 开始绑定
|
|
// 开始绑定
|
|
|
iIsIsolationPointService.update(Wrappers.<IsIsolationPoint>lambdaUpdate()
|
|
iIsIsolationPointService.update(Wrappers.<IsIsolationPoint>lambdaUpdate()
|
|
|
.in(IsIsolationPoint::getPointId, dto.getBindingPointIds())
|
|
.in(IsIsolationPoint::getPointId, dto.getBindingPointIds())
|
|
|
- .set(IsIsolationPoint::getLotoId, dto.getSwitchMapId()));
|
|
|
|
|
|
|
+ .set(IsIsolationPoint::getSwitchMapId, dto.getSwitchMapId()));
|
|
|
}
|
|
}
|
|
|
if (!dto.getUnbindPointIds().isEmpty()) {
|
|
if (!dto.getUnbindPointIds().isEmpty()) {
|
|
|
// 开始解绑
|
|
// 开始解绑
|
|
|
iIsIsolationPointService.update(Wrappers.<IsIsolationPoint>lambdaUpdate()
|
|
iIsIsolationPointService.update(Wrappers.<IsIsolationPoint>lambdaUpdate()
|
|
|
.in(IsIsolationPoint::getPointId, dto.getUnbindPointIds())
|
|
.in(IsIsolationPoint::getPointId, dto.getUnbindPointIds())
|
|
|
- .set(IsIsolationPoint::getLotoId, null));
|
|
|
|
|
|
|
+ .set(IsIsolationPoint::getSwitchMapId, null));
|
|
|
}
|
|
}
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|