修改:IBP盘bug

This commit is contained in:
joylink_zhangsai 2021-06-29 18:02:06 +08:00
parent def44e9db2
commit af25264080

View File

@ -23,12 +23,16 @@ public class VirtualRealityIbp {
public VirtualRealityIbp(IbpData ibpData) {
if (!CollectionUtils.isEmpty(ibpData.getDrawData().getSquareButtonList())) {
for (IbpData.SquareButtonVO vo : ibpData.getDrawData().getSquareButtonList()) {
if (vo.getMean() == null)
continue;
SquareButton button = new SquareButton(vo.getCode(), vo.getMean(), false, vo.getSectionCode(), vo.getDirection());
addElement(button);
}
}
if (!CollectionUtils.isEmpty(ibpData.getDrawData().getCircularLampList())) {
for (IbpData.CircularLampVO vo : ibpData.getDrawData().getCircularLampList()) {
if (vo.getMean() == null)
continue;
addElement(new IbpElement(vo.getCode(), vo.getMean(), false, vo.getDirection()));
}
}
@ -39,6 +43,8 @@ public class VirtualRealityIbp {
}
if (!CollectionUtils.isEmpty(ibpData.getDrawData().getKeyList())) {
for (IbpData.KeyVO vo : ibpData.getDrawData().getKeyList()) {
if (vo.getMean() == null)
continue;
addElement(new IbpElement(vo.getCode(), vo.getMean(), false, vo.getMean().equals(Mean.SXYS)));
}
}