|
|
@ -19,6 +19,7 @@ import com.hai.entity.HighOrder; |
|
|
|
import com.hai.model.OrderRefundModel; |
|
|
|
import com.hai.model.OrderRefundModel; |
|
|
|
import com.hai.model.ResponseData; |
|
|
|
import com.hai.model.ResponseData; |
|
|
|
import com.hai.service.HighOrderService; |
|
|
|
import com.hai.service.HighOrderService; |
|
|
|
|
|
|
|
import com.hai.service.HighUserService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
@ -49,6 +50,9 @@ public class TuanYouController { |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private HighGasOrderRefundMapper highGasOrderRefundMapper; |
|
|
|
private HighGasOrderRefundMapper highGasOrderRefundMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private HighUserService highUserService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/orderPaymentNotify", method = RequestMethod.POST) |
|
|
|
@RequestMapping(value = "/orderPaymentNotify", method = RequestMethod.POST) |
|
|
|
@ApiOperation(value = "订单支付回调") |
|
|
|
@ApiOperation(value = "订单支付回调") |
|
|
@ -94,6 +98,14 @@ public class TuanYouController { |
|
|
|
order.setRefundPrice(order.getPayRealPrice()); |
|
|
|
order.setRefundPrice(order.getPayRealPrice()); |
|
|
|
highOrderService.updateOrderDetail(order); |
|
|
|
highOrderService.updateOrderDetail(order); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else if (order.getPayType() == 3){ |
|
|
|
|
|
|
|
// 积分退款
|
|
|
|
|
|
|
|
highUserService.goldHandle(order.getMemId(), order.getPayGold(),1, 2, order.getId()); |
|
|
|
|
|
|
|
order.setOrderStatus(4); |
|
|
|
|
|
|
|
order.setRefundTime(new Date()); |
|
|
|
|
|
|
|
order.setRefundPrice(order.getPayRealPrice()); |
|
|
|
|
|
|
|
highOrderService.updateOrderDetail(order); |
|
|
|
|
|
|
|
|
|
|
|
} else if (order.getPayType() == 4) { |
|
|
|
} else if (order.getPayType() == 4) { |
|
|
|
String refundOrderNo = String.valueOf(System.currentTimeMillis()); |
|
|
|
String refundOrderNo = String.valueOf(System.currentTimeMillis()); |
|
|
|
JSONObject refund = HuiLianTongUnionCardConfig.refund(refundOrderNo, order.getPaySerialNo()); |
|
|
|
JSONObject refund = HuiLianTongUnionCardConfig.refund(refundOrderNo, order.getPaySerialNo()); |
|
|
|