修改:IBP盘试灯按钮逻辑修改

This commit is contained in:
joylink_zhangsai 2021-07-07 11:07:00 +08:00
parent 4a39c9bf89
commit 85091f8af6

View File

@ -272,8 +272,9 @@ public class VirtualRealityIbpService implements IVirtualRealityIbpService {
List<VirtualRealityIbp.IbpElement> sdList = vrIbp.queryByMean(VirtualRealityIbp.Mean.SD); List<VirtualRealityIbp.IbpElement> sdList = vrIbp.queryByMean(VirtualRealityIbp.Mean.SD);
boolean sd = false; boolean sd = false;
if (!CollectionUtils.isEmpty(sdList)) { if (!CollectionUtils.isEmpty(sdList)) {
VirtualRealityIbp.SquareButton sdButton = (VirtualRealityIbp.SquareButton) sdList.get(0); sd = sdList.stream().anyMatch(VirtualRealityIbp.IbpElement::isOn);
sd = sdButton.isOn(); // VirtualRealityIbp.SquareButton sdButton = (VirtualRealityIbp.SquareButton) sdList.get(0);
// sd = sdButton.isOn();
} }
for (VirtualRealityIbp.IbpElement element : vrIbp.getElementList()) { for (VirtualRealityIbp.IbpElement element : vrIbp.getElementList()) {
List<Stand> stands = chooseStands(station, element, config); List<Stand> stands = chooseStands(station, element, config);