|
@@ -547,7 +547,9 @@ public class DeviceInfoDataImpl implements IDeviceInfoData, IJPACommData<DeviceI
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public Paging<DeviceInfo> findByConditionsAndTenantId(String uid, String subUid, String productKey, String group, String state, String keyword, Integer page, Integer size, String tenantId) {
|
|
|
|
|
|
|
+ public Paging<DeviceInfo> findByConditionsAndTenantId(String uid, String subUid, String productKey,
|
|
|
|
|
+ String group, String state, String keyword, Integer page,
|
|
|
|
|
+ Integer size, String tenantId,Long deptId) {
|
|
|
if(StringUtils.isBlank(tenantId)){
|
|
if(StringUtils.isBlank(tenantId)){
|
|
|
return new Paging<>(0, Collections.emptyList());
|
|
return new Paging<>(0, Collections.emptyList());
|
|
|
}
|
|
}
|
|
@@ -579,7 +581,7 @@ public class DeviceInfoDataImpl implements IDeviceInfoData, IJPACommData<DeviceI
|
|
|
// }
|
|
// }
|
|
|
if (StringUtils.isNotBlank(tenantId)){
|
|
if (StringUtils.isNotBlank(tenantId)){
|
|
|
query.where(tbDeviceInfo.tenantId.eq(tenantId));
|
|
query.where(tbDeviceInfo.tenantId.eq(tenantId));
|
|
|
- List<Long> finalDeptList = PredicateBuilder.queryCacheChildDeptIds(tenantId);
|
|
|
|
|
|
|
+ List<Long> finalDeptList = PredicateBuilder.queryCacheChildDeptsByDeptId(tenantId,deptId);
|
|
|
if(CollectionUtil.isNotEmpty(finalDeptList)){
|
|
if(CollectionUtil.isNotEmpty(finalDeptList)){
|
|
|
query.where(tbDeviceInfo.createDept.in(finalDeptList));
|
|
query.where(tbDeviceInfo.createDept.in(finalDeptList));
|
|
|
}
|
|
}
|