|
|
|
@@ -10,6 +10,7 @@ import com.iformall.mapper.*; |
|
|
|
import com.iformall.service.WxOrderService; |
|
|
|
import com.iformall.service.WxProfitSharingOrderService; |
|
|
|
import com.iformall.service.WxRefundOrderService; |
|
|
|
import com.iformall.utils.DateUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@@ -120,6 +121,12 @@ public class CouponOrderExpiringSchedule { |
|
|
|
appinfo.setType(EnumAppType.B.getCode()); |
|
|
|
appinfo = wxAppinfoMapper.findList(appinfo).get(0); |
|
|
|
|
|
|
|
Date limitDate = DateUtils.getTimeAfterDays(180, co.getCreateDate()); |
|
|
|
if (limitDate.before(new Date())) { |
|
|
|
// 系统只自动处理180天内的订单 |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
wxRefundOrderService.createRefundOrder(appinfo, co.getId(), EnumPayType.PAY_AUTO_REFUND, null); |
|
|
|
} catch (MallinkException e) { |
|
|
|
|