Search in sources :

Example 11 with PagesQueryCondition

use of com.actionworks.flashsale.domain.model.PagesQueryCondition in project flash-sale by ThoughtsBeta.

the class FlashOrderDomainServiceImpl method getOrders.

@Override
public List<FlashOrder> getOrders(PagesQueryCondition pagesQueryCondition) {
    if (pagesQueryCondition == null) {
        pagesQueryCondition = new PagesQueryCondition();
    }
    List<FlashOrder> flashOrders = flashOrderRepository.findFlashOrdersByCondition(pagesQueryCondition.buildParams());
    logger.info("Get flash orders:{},{}", flashOrders.size());
    return flashOrders;
}
Also used : FlashOrder(com.actionworks.flashsale.domain.model.entity.FlashOrder) PagesQueryCondition(com.actionworks.flashsale.domain.model.PagesQueryCondition)

Aggregations

PagesQueryCondition (com.actionworks.flashsale.domain.model.PagesQueryCondition)11 FlashItem (com.actionworks.flashsale.domain.model.entity.FlashItem)4 BetaTrace (com.actionworks.flashsale.config.annotion.BetaTrace)2 FlashActivity (com.actionworks.flashsale.domain.model.entity.FlashActivity)2 FlashOrder (com.actionworks.flashsale.domain.model.entity.FlashOrder)2 DistributedLock (com.actionworks.flashsale.lock.DistributedLock)2 Scheduled (org.springframework.scheduling.annotation.Scheduled)2 FlashActivitiesCache (com.actionworks.flashsale.app.service.activity.cache.model.FlashActivitiesCache)1 FlashItemsCache (com.actionworks.flashsale.app.service.item.cache.model.FlashItemsCache)1