|
|
|
@ -16,10 +16,12 @@ import com.hai.common.utils.WxUtils; |
|
|
|
|
import com.hai.config.*; |
|
|
|
|
import com.hai.dao.*; |
|
|
|
|
import com.hai.entity.*; |
|
|
|
|
import com.hai.entity.OutRechargeOrder; |
|
|
|
|
import com.hai.enum_type.*; |
|
|
|
|
import com.hai.model.*; |
|
|
|
|
import com.hai.msg.entity.MsgTopic; |
|
|
|
|
import com.hai.order.type.OrderPayType; |
|
|
|
|
import com.hai.order.utils.OrderUtil; |
|
|
|
|
import com.hai.service.*; |
|
|
|
|
import com.hai.service.pay.impl.GoodsOrderServiceImpl; |
|
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
@ -2265,4 +2267,31 @@ public class HighOrderServiceImpl implements HighOrderService { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void phoneBillOrderMigration(HighOrder highOrder) { |
|
|
|
|
highOrderMapper.insert(highOrder); |
|
|
|
|
HighChildOrder highChildOrder = new HighChildOrder(); |
|
|
|
|
|
|
|
|
|
highChildOrder.setOrderNo(highOrder.getOrderNo()); |
|
|
|
|
highChildOrder.setChildOrderNo(OrderUtil.generateChildOrderNo()); |
|
|
|
|
highChildOrder.setChildOrderStatus(highOrder.getOrderStatus()); |
|
|
|
|
highChildOrder.setTotalPrice(highOrder.getTotalPrice()); |
|
|
|
|
highChildOrder.setGoodsPrice(highOrder.getTotalPrice()); |
|
|
|
|
highChildOrder.setGoodsActualPrice(highOrder.getPayPrice()); |
|
|
|
|
highChildOrder.setGoodsName(highOrder.getTitle()); |
|
|
|
|
highChildOrder.setGoodsType(6); |
|
|
|
|
highChildOrder.setSaleCount(1); |
|
|
|
|
highChildOrder.setGiveawayType(false); |
|
|
|
|
highChildOrder.setMemId(highOrder.getMemId()); |
|
|
|
|
highChildOrder.setTotalDeductionPrice(highOrder.getTotalDeductionPrice()); |
|
|
|
|
highChildOrder.setGoodsSpecName("话费充值"); |
|
|
|
|
highChildOrder.setCreateTime(highOrder.getCreateTime()); |
|
|
|
|
highChildOrder.setOrderId(highOrder.getId()); |
|
|
|
|
highChildOrder.setCancelTime(highOrder.getCancelTime()); |
|
|
|
|
highChildOrder.setFinishTime(highOrder.getFinishTime()); |
|
|
|
|
highChildOrder.setRefundTime(highOrder.getRefundTime()); |
|
|
|
|
highChildOrder.setPayTime(highOrder.getPayTime()); |
|
|
|
|
highChildOrderMapper.insert(highChildOrder); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|