|
|
|
@ -9,6 +9,8 @@ import com.hai.entity.HighChildOrder; |
|
|
|
|
import com.hai.entity.HighGasOrderRefund; |
|
|
|
|
import com.hai.entity.HighOrder; |
|
|
|
|
import com.hai.model.OrderRefundModel; |
|
|
|
|
import com.hai.order.type.OrderChildStatus; |
|
|
|
|
import com.hai.order.type.OrderStatus; |
|
|
|
|
import com.hai.service.HighOrderService; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
@ -79,17 +81,24 @@ public class QzOrderController { |
|
|
|
|
|
|
|
|
|
// 5:已支付(默认不发) 10:已出票 -5:已取消 15:交易成功
|
|
|
|
|
if (dataObject.getInteger("eventType") == -5) { |
|
|
|
|
childOrder.setChildOrderStatus(5); |
|
|
|
|
order.setOrderStatus(5); |
|
|
|
|
childOrder.setChildOrderStatus(OrderChildStatus.STATUS5.getNumber()); |
|
|
|
|
order.setOrderStatus(OrderStatus.STATUS5.getNumber()); |
|
|
|
|
order.setCancelTime(new Date()); |
|
|
|
|
order.setCancelRemarks(data.getString("cancelReason")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (dataObject.getInteger("eventType") == 15) { |
|
|
|
|
if (dataObject.getInteger("eventType") == 10) { |
|
|
|
|
childOrder.setChildOrderStatus(OrderChildStatus.STATUS3.getNumber()); |
|
|
|
|
order.setOrderStatus(OrderStatus.STATUS3.getNumber()); |
|
|
|
|
order.setFinishTime(new Date()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 交易成功:开场后两小时,订单状态从已出票自动变成交易成功
|
|
|
|
|
/* if (dataObject.getInteger("eventType") == 15) { |
|
|
|
|
childOrder.setChildOrderStatus(3); |
|
|
|
|
order.setOrderStatus(3); |
|
|
|
|
order.setFinishTime(new Date()); |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|