Commit 9db5aff0 by 杨林龙

1.25.0 优化设备类型校验

1 parent f348fd72
......@@ -983,7 +983,13 @@ public class WorkOrderService {
R<DeviceDTO> deviceDTOR = deviceFeignService.getOrStoreDeviceBySn(deviceItem.getSn(), true);
DeviceDTO deviceDTO = deviceDTOR.getData(DeviceDTO.class);
if (deviceDTO != null) {
deviceItem.setWireType(deviceDTO.getSource());
// 增加设备类型校验
// deviceItem.setWireType(deviceDTO.getSource());
if (!deviceDTO.getSource().equals(deviceItem.getWireType())) {
throw new StdInterfaceException("656565", "设备类型不匹配");
}
} else {
throw new StdInterfaceException("656565", "该设备尚未入库");
}
});
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!