|
@@ -1,11 +1,9 @@
|
|
|
package com.gree.mall.manager.logic.order;
|
|
|
|
|
|
-import com.gree.mall.manager.logic.ExpressLogic;
|
|
|
import com.gree.mall.manager.plus.entity.OrderRefund;
|
|
|
import com.gree.mall.manager.plus.service.OrderRefundService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -14,10 +12,10 @@ import java.util.List;
|
|
|
public class OrderRefundSchedule {
|
|
|
@Autowired
|
|
|
OrderRefundService orderRefundService;
|
|
|
- @Autowired
|
|
|
- ExpressLogic expressLogic;
|
|
|
+// @Autowired
|
|
|
+// ExpressLogic expressLogic;
|
|
|
|
|
|
- @Scheduled(fixedDelay = 5 * 60 * 1000)
|
|
|
+// @Scheduled(fixedDelay = 5 * 60 * 1000)
|
|
|
public void orderRefund(){
|
|
|
// id = 1 status = false ..
|
|
|
// id = 2 status = false
|
|
@@ -28,7 +26,7 @@ public class OrderRefundSchedule {
|
|
|
for (OrderRefund orderRefund :OrderRefundList){
|
|
|
if (StringUtils.isNotEmpty(orderRefund.getLogisticsNo())){
|
|
|
//1.订阅
|
|
|
- expressLogic.subscribeExpress(orderRefund.getLogisticsNo(),null,orderRefund.getRecePhone());
|
|
|
+// expressLogic.subscribeExpress(orderRefund.getLogisticsNo(),null,orderRefund.getRecePhone());
|
|
|
//2.标记为已订阅
|
|
|
orderRefundService.lambdaUpdate()
|
|
|
.eq(OrderRefund::getOrderRefundId,orderRefund.getOrderRefundId())
|