示例#1
0
文件: models.py 项目: tair/api-python
 def getById(partyId):
     parties = Party.getById(partyId)
     return Subscription.objects.filter(partyId__in=parties)
示例#2
0
文件: models.py 项目: tair/api-python
 def getById(partyId):
     parties = Party.getById(partyId)
     return Subscription.objects.filter(partyId__in=parties)
示例#3
0
文件: models.py 项目: tair/api-python
 def getByIdAndPartner(partyId, partnerId):
     parties = Party.getById(partyId)
     return UsageUnitPurchase.objects.filter(partyId__in=parties) \
                             .filter(partnerId=partnerId) \