|
|
@@ -77,7 +77,7 @@ public class BackTrackService {
|
|
|
|
|
|
public HttpResult getParts(String projectId) {
|
|
|
//首先获取项目中全部设备
|
|
|
- List<DeviceDataDTO> list = deviceMapper.selectDeviceAllNotDeviceRelation(projectId);
|
|
|
+ List<DeviceDataDTO> list = deviceMapper.selectAllDeviceByProject(projectId);
|
|
|
List<String> devicesId = list.stream().map(DeviceDataDTO::getDeviceId).toList();
|
|
|
if(devicesId.size() == 0){
|
|
|
return HttpResult.ok(Collections.emptyList());
|
|
|
@@ -93,7 +93,7 @@ public class BackTrackService {
|
|
|
|
|
|
public HttpResult getDeviceByParts(String parts,String projectId) {
|
|
|
//获取项目中的设备
|
|
|
- List<DeviceDataDTO> listDevice = deviceMapper.selectDeviceAllNotDeviceRelation(projectId);
|
|
|
+ List<DeviceDataDTO> listDevice = deviceMapper.selectAllDeviceByProject(projectId);
|
|
|
List<String> devicesId = listDevice.stream().map(DeviceDataDTO::getDeviceId).toList();
|
|
|
//在获取设备的要素
|
|
|
String[] arr = parts.split(",");
|