...
|
...
|
@@ -7,6 +7,8 @@ import com.yohoufo.dal.order.OrdersPayMapper; |
|
|
import com.yohoufo.dal.order.model.OrdersPay;
|
|
|
import com.yohoufo.order.mq.DelayTime;
|
|
|
import com.yohoufo.order.service.proxy.DeliveryMinutesService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
...
|
...
|
@@ -15,7 +17,7 @@ import org.springframework.stereotype.Service; |
|
|
*/
|
|
|
@Service
|
|
|
public class OrdersPayService {
|
|
|
|
|
|
private final Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
@Autowired
|
|
|
private OrdersPayMapper ordersPayMapper;
|
|
|
|
...
|
...
|
@@ -34,9 +36,12 @@ public class OrdersPayService { |
|
|
|
|
|
//订单的支付时间如果大于上线时间,则120小时算,否则还是36小时
|
|
|
int timelimit;
|
|
|
if(createTime.intValue()>=deliveryMinutesService.getOnlineTime()){
|
|
|
int onLineTime = deliveryMinutesService.getOnlineTime();
|
|
|
if(createTime.intValue()>=onLineTime){
|
|
|
logger.info("OrdersPayService createTime bigger than online time ,set 120 hours ,orderCode {},createTime {} ,onLineTime {}",orderCode,createTime,onLineTime);
|
|
|
timelimit = deliveryMinutesService.getDeliverMinutesThird()* 60;
|
|
|
}else{
|
|
|
logger.info("OrdersPayService createTime smaller than online time ,set 36 hours ,orderCode {},createTime {} ,onLineTime {}",orderCode,createTime,onLineTime);
|
|
|
timelimit = DelayTime.MINUTES_36_HOURS * 60;
|
|
|
}
|
|
|
//int timelimit = DelayTime.MINUTES_36_HOURS * 60;
|
...
|
...
|
|