|
@@ -65,6 +65,7 @@ public class TerminalPortController {
|
|
|
if (ObjectUtil.isEmpty(locationId)){
|
|
|
terminalPortPage = portService.page(page, new QueryWrapper<TerminalPort>().lambda()
|
|
|
.eq(ObjectUtil.isNotEmpty(portPageByLocationIdParam.getStatus()), TerminalPort::getStatus, portPageByLocationIdParam.getStatus())
|
|
|
+ .eq(ObjectUtil.isNotEmpty(portPageByLocationIdParam.getTerminalId()),TerminalPort::getTerminalId,portPageByLocationIdParam.getTerminalId())
|
|
|
.isNotNull(TerminalPort::getLocationId));
|
|
|
}else {
|
|
|
BasePigpen basePigpen = basePigpenService.getById(locationId);
|
|
@@ -72,7 +73,8 @@ public class TerminalPortController {
|
|
|
List<Integer> idList = list.stream().map(BasePigpen::getId).collect(Collectors.toList());
|
|
|
terminalPortPage = portService.page(page, new QueryWrapper<TerminalPort>().lambda()
|
|
|
.in(TerminalPort::getLocationId,idList)
|
|
|
- .eq(ObjectUtil.isNotEmpty(portPageByLocationIdParam.getStatus()), TerminalPort::getStatus, portPageByLocationIdParam.getStatus()));
|
|
|
+ .eq(ObjectUtil.isNotEmpty(portPageByLocationIdParam.getStatus()), TerminalPort::getStatus, portPageByLocationIdParam.getStatus())
|
|
|
+ .eq(ObjectUtil.isNotEmpty(portPageByLocationIdParam.getTerminalId()),TerminalPort::getTerminalId,portPageByLocationIdParam.getTerminalId()));
|
|
|
}
|
|
|
return new Result(ResultCode.SUCCESS,terminalPortPage);
|
|
|
}
|