Commit c5e358bd by 杨林龙

1.23.0 优化新增设备校验逻辑

1 parent a35c1014
......@@ -1434,11 +1434,10 @@ public class VehicleService extends AbstractCommonService {
return;
}
// List<String> modifySnList = new ArrayList<>();
List<SimpleDeviceItem> devices = Lists.newArrayList();
vehicleInfoVo.getDeviceInfoDtos().forEach(device -> {
// 只有工单正常激活的才校验设备组合类型
if (ActiveFlagEnum.WORKORDER_ACTIVE.getCode().equals(device.getActiveFlag()) || device.getActiveFlag()==null) {
if (ActiveFlagEnum.WORKORDER_ACTIVE.getCode().equals(device.getActiveFlag()) || device.getActiveFlag() == null) {
SimpleDeviceItem item = new SimpleDeviceItem();
item.setSn(device.getSn());
item.setModel(device.getDeviceClassifyName());
......@@ -1446,11 +1445,10 @@ public class VehicleService extends AbstractCommonService {
}
});
// 补充逻辑,如果是修改设备号则不进行设备验证 这一步逻辑可以不用
// if (!CollectionUtil.isEmpty(modifySnList)) {
// log.info("update vehicle device snList is:" + JSON.toJSONString(modifySnList));
// return;
// }
if (CollectionUtil.isEmpty(devices)) {
log.info("devices is null");
return;
}
DevicesComposeVerifyBO verifyBO = new DevicesComposeVerifyBO();
verifyBO.setWorkOrderId(vehicle.getWorkOrderId());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!