|
|
|
|
@ -516,8 +516,8 @@ public class DeviceLedgerServiceImpl implements DeviceLedgerService {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if (pageReqVO.getDeviceLine() != null) {
|
|
|
|
|
Set<Integer> deviceLineIds = new LinkedHashSet<>();
|
|
|
|
|
collectDeviceLineIds(Long.valueOf(pageReqVO.getDeviceLine()), deviceLineIds);
|
|
|
|
|
Set<Long> deviceLineIds = new LinkedHashSet<>();
|
|
|
|
|
collectDeviceLineIds(pageReqVO.getDeviceLine(), deviceLineIds);
|
|
|
|
|
if (deviceLineIds.isEmpty()) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
@ -546,7 +546,7 @@ public class DeviceLedgerServiceImpl implements DeviceLedgerService {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void collectDeviceLineIds(Long deviceLineId, Set<Integer> results) {
|
|
|
|
|
private void collectDeviceLineIds(Long deviceLineId, Set<Long> results) {
|
|
|
|
|
if (deviceLineId == null) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -554,7 +554,7 @@ public class DeviceLedgerServiceImpl implements DeviceLedgerService {
|
|
|
|
|
if (deviceLine == null) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
results.add(deviceLineId.intValue());
|
|
|
|
|
results.add(deviceLineId);
|
|
|
|
|
List<DeviceLineDO> children = deviceLineService.getChildrenDeviceLines(deviceLineId);
|
|
|
|
|
if (CollUtil.isEmpty(children)) {
|
|
|
|
|
return;
|
|
|
|
|
|