Commit 40fe23a0 by levphon

返回有线无线类型

1 parent aaff4c58
......@@ -39,4 +39,10 @@ public class DeviceVerifyDTO {
* 设备类型
*/
private String deviceClassifyName;
/**
* 有线无线:1有线,0无线
*/
private Integer wireType;
}
......@@ -47,6 +47,7 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
......@@ -417,6 +418,8 @@ public class WorkOrderService {
return null;
}
Map<String, SimpleDeviceItem> deviceMap = verifyBO.getDevices().stream().collect(Collectors.toMap(SimpleDeviceItem::getSn, Function.identity(), (o, n) -> n));
R verifyR = workOrderClient.verify(verifyBO);
if (verifyR.isSuccess()) {
String json = JSONUtil.toJsonStr(verifyR.getData());
......@@ -451,6 +454,7 @@ public class WorkOrderService {
}
String deviceModelBySn = deviceService.getDeviceModelBySn(gbd.getSn());
verifyDTO.setDeviceClassifyName(deviceModelBySn);
verifyDTO.setWireType(deviceMap.get(gbd.getSn()).getWireType());
verifyDTO.setVin(vin);
verifyDTO.setOwnerName(ownerName);
verifyDTO.setGpsBsData(gbd);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!