Authored by tanling

leftTime

... ... @@ -141,7 +141,12 @@ public abstract class AbsOrderViewService {
}
protected int calLeftTime(int timeout, int creatTime){
return timeout - (DateUtil.getCurrentTimeSecond() - creatTime);
int payExpire = timeout - (DateUtil.getCurrentTimeSecond() - creatTime);
if (payExpire < 0){
payExpire = 0;
}
return payExpire;
}
protected void setPayment(OrderDetailInfo orderDetailInfo, Integer paymentCode){
... ...
... ... @@ -59,7 +59,7 @@ datasources:
- com.yohoufo.dal.order.StoredSellerMapper
- com.yohoufo.dal.order.SuperEntrySellerMapper
- com.yohoufo.dal.order.QiniuLiveRecordMapper
- com.yoho.yhorder.dal.IOrdersPrePayDao
- com.yohoufo.dal.order.OrdersPrePayMapper
ufo_promotion:
servers:
... ...
... ... @@ -59,7 +59,7 @@ datasources:
- com.yohoufo.dal.order.StoredSellerMapper
- com.yohoufo.dal.order.SuperEntrySellerMapper
- com.yohoufo.dal.order.QiniuLiveRecordMapper
- com.yoho.yhorder.dal.IOrdersPrePayDao
- com.yohoufo.dal.order.OrdersPrePayMapper
ufo_promotion:
servers:
... ...