Commit fc0fb540 by levphon

工单标准接口

1 parent 89e1125b
......@@ -943,7 +943,7 @@ public class WorkOrderService {
log.info("检测工单{} 设备信息:{}", workOrderId, JSONUtil.toJsonStr(devices));
if (CollectionUtils.isNotEmpty(devices)) {
Map<Integer, List<SimpleDeviceItem>> deviceGroup = devices.stream().filter(simpleDeviceItem -> simpleDeviceItem.getWireType() != null).collect(Collectors.groupingBy(SimpleDeviceItem::getWireType));
if (CollectionUtils.sizeIsEmpty(deviceGroup)) {
if (!CollectionUtils.sizeIsEmpty(deviceGroup)) {
//有线设备
List<SimpleDeviceItem> wireDevices = deviceGroup.get(1);
//无线设备
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!