Search in sources :

Example 1 with BizParameter

use of com.stardata.starshop2.sharedcontext.domain.BizParameter in project starshop by beautautumn.

the class OrderManagingService method getConfirmExpired.

public List<Order> getConfirmExpired() {
    BizParameter parameter = parameterRepository.instanceOf("max_minutes_remain_toconfirm");
    int maxMinutes = parameter.toInteger();
    return orderRepository.findConfirmExpired(maxMinutes);
}
Also used : BizParameter(com.stardata.starshop2.sharedcontext.domain.BizParameter)

Example 2 with BizParameter

use of com.stardata.starshop2.sharedcontext.domain.BizParameter in project starshop by beautautumn.

the class OrderManagingService method getPayExpired.

public List<Order> getPayExpired() {
    BizParameter parameter = parameterRepository.instanceOf("max_minutes_remain_topay");
    int maxMinutes = parameter.toInteger();
    return orderRepository.findPayExpired(maxMinutes);
}
Also used : BizParameter(com.stardata.starshop2.sharedcontext.domain.BizParameter)

Aggregations

BizParameter (com.stardata.starshop2.sharedcontext.domain.BizParameter)2