mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fixed some bugs
This commit is contained in:
parent
aca8ef79cd
commit
8d5f0f9f6c
@ -187,7 +187,7 @@ public class DataCenterIpAddressDaoImpl extends GenericDaoBase<DataCenterIpAddre
|
||||
AllIpCount.done();
|
||||
|
||||
AllAllocatedIpCount = createSearchBuilder(Integer.class);
|
||||
AllAllocatedIpCount.select(null, Func.COUNT, AllIpCount.entity().getId());
|
||||
AllAllocatedIpCount.select(null, Func.COUNT, AllAllocatedIpCount.entity().getId());
|
||||
AllAllocatedIpCount.and("pod", AllAllocatedIpCount.entity().getPodId(), SearchCriteria.Op.EQ);
|
||||
AllAllocatedIpCount.and("removed", AllAllocatedIpCount.entity().getTakenAt(), SearchCriteria.Op.NNULL);
|
||||
AllAllocatedIpCount.done();
|
||||
|
||||
@ -166,7 +166,7 @@ public class DataCenterLinkLocalIpAddressDaoImpl extends GenericDaoBase<DataCent
|
||||
AllIpCount.done();
|
||||
|
||||
AllAllocatedIpCount = createSearchBuilder(Integer.class);
|
||||
AllAllocatedIpCount.select(null, Func.COUNT, AllIpCount.entity().getId());
|
||||
AllAllocatedIpCount.select(null, Func.COUNT, AllAllocatedIpCount.entity().getId());
|
||||
AllAllocatedIpCount.and("pod", AllAllocatedIpCount.entity().getPodId(), SearchCriteria.Op.EQ);
|
||||
AllAllocatedIpCount.and("removed", AllAllocatedIpCount.entity().getTakenAt(), SearchCriteria.Op.NNULL);
|
||||
AllAllocatedIpCount.done();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user