|
|
|
@@ -9,6 +9,7 @@ import com.iformall.domain.po.WxAppinfo; |
|
|
|
import com.iformall.domain.po.WxCUser; |
|
|
|
import com.iformall.domain.po.WxOrder; |
|
|
|
import com.iformall.domain.po.WxPayOrder; |
|
|
|
import com.iformall.enums.EnumOrderStatus; |
|
|
|
import com.iformall.enums.EnumPayStatus; |
|
|
|
import com.iformall.enums.EnumPayWay; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
@@ -123,6 +124,10 @@ public class WxPayOrderController extends BaseController { |
|
|
|
payOrder = wxPayOrderService.getById(payOrderId); |
|
|
|
if(payOrder.getPayOrderStatus().equals(EnumPayStatus.PAY_STATUS_SUCCESS.getCode())) { |
|
|
|
order = wxOrderService.getById(orderId); |
|
|
|
if (order.getOrderGroupId() != null) { |
|
|
|
order.setOrderStatus(EnumOrderStatus.ORDER_STATUS_COOPERATING.getCode()); |
|
|
|
wxOrderService.saveOrUpdate(order); |
|
|
|
} |
|
|
|
return new ResultData(Result.SUCCESS, "支付状态更新成功", order); |
|
|
|
} else { |
|
|
|
return new ResultData(ErrorCode.PAY_ORDER_ERROR, "支付未状态,请等待!!"); |
|
|
|
|