|
@@ -125,10 +125,10 @@ public class PersonDeviceLogController {
|
|
//需要查出已删除的设备
|
|
//需要查出已删除的设备
|
|
List<DeviceInfo> deviceInfoList = deviceInfoService.findByCompanyId(userCompanyId);
|
|
List<DeviceInfo> deviceInfoList = deviceInfoService.findByCompanyId(userCompanyId);
|
|
|
|
|
|
- List<String> deviceIdList = new ArrayList<String>();
|
|
|
|
|
|
+ List<String> deviceNoList = new ArrayList<>();
|
|
|
|
|
|
for (DeviceInfo deviceInfo : deviceInfoList) {
|
|
for (DeviceInfo deviceInfo : deviceInfoList) {
|
|
- deviceIdList.add(deviceInfo.getId());
|
|
|
|
|
|
+ deviceNoList.add(deviceInfo.getDeviceNo());
|
|
}
|
|
}
|
|
|
|
|
|
//查询关联单位表
|
|
//查询关联单位表
|
|
@@ -138,17 +138,17 @@ public class PersonDeviceLogController {
|
|
List<DeviceInfo> relateDevices = deviceInfoService.findByCompanyId(companyInfo.getId());
|
|
List<DeviceInfo> relateDevices = deviceInfoService.findByCompanyId(companyInfo.getId());
|
|
|
|
|
|
for (DeviceInfo deviceInfo : relateDevices) {
|
|
for (DeviceInfo deviceInfo : relateDevices) {
|
|
- if (!deviceIdList.contains(deviceInfo.getId())){
|
|
|
|
- deviceIdList.add(deviceInfo.getId());
|
|
|
|
|
|
+ if (!deviceNoList.contains(deviceInfo.getDeviceNo())){
|
|
|
|
+ deviceNoList.add(deviceInfo.getDeviceNo());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (deviceIdList.size() == 0) {
|
|
|
|
- deviceIdList.add("-1");
|
|
|
|
|
|
+ if (deviceNoList.size() == 0) {
|
|
|
|
+ deviceNoList.add("-1");
|
|
}
|
|
}
|
|
|
|
|
|
- searchParams.put("deviceIdList", deviceIdList);
|
|
|
|
|
|
+ searchParams.put("deviceNoList", deviceNoList);
|
|
searchParams.put("relateCompanyList", relateCompanyList);
|
|
searchParams.put("relateCompanyList", relateCompanyList);
|
|
|
|
|
|
CompanyInfo companyInfo = companyInfoService.get(userCompanyId);
|
|
CompanyInfo companyInfo = companyInfoService.get(userCompanyId);
|
|
@@ -345,17 +345,17 @@ public class PersonDeviceLogController {
|
|
//去掉了删除判断
|
|
//去掉了删除判断
|
|
//需要查出已删除的设备
|
|
//需要查出已删除的设备
|
|
List<DeviceInfo> deviceInfoList = deviceInfoService.findByCompanyId(userCompanyId);
|
|
List<DeviceInfo> deviceInfoList = deviceInfoService.findByCompanyId(userCompanyId);
|
|
- List<String> deviceIdList = new ArrayList<String>();
|
|
|
|
|
|
+ List<String> deviceNoList = new ArrayList<String>();
|
|
|
|
|
|
for (DeviceInfo deviceInfo : deviceInfoList) {
|
|
for (DeviceInfo deviceInfo : deviceInfoList) {
|
|
- deviceIdList.add(deviceInfo.getId());
|
|
|
|
|
|
+ deviceNoList.add(deviceInfo.getDeviceNo());
|
|
}
|
|
}
|
|
|
|
|
|
- if (deviceIdList.size() == 0) {
|
|
|
|
- deviceIdList.add("-1");
|
|
|
|
|
|
+ if (deviceNoList.size() == 0) {
|
|
|
|
+ deviceNoList.add("-1");
|
|
}
|
|
}
|
|
|
|
|
|
- searchParams.put("deviceIdList", deviceIdList);
|
|
|
|
|
|
+ searchParams.put("deviceNoList", deviceNoList);
|
|
}
|
|
}
|
|
|
|
|
|
if (StringUtil.isNotEmpty(deviceNo)) {
|
|
if (StringUtil.isNotEmpty(deviceNo)) {
|