zoujiajian 1 年之前
父节点
当前提交
ccb1ec3be7

+ 18 - 0
netflix-web/src/main/java/com/cyksj/web/controller/mirrorshop/UserMirrorShopFrontController.java

@@ -1,5 +1,6 @@
 package com.cyksj.web.controller.mirrorshop;
 
+import com.cyksj.common.exception.BusinessRuntimeException;
 import com.cyksj.config.zfb.BaseZfbConfig;
 import com.cyksj.config.zfb.ZfbProductCode;
 import com.cyksj.dto.Result;
@@ -81,6 +82,23 @@ public class UserMirrorShopFrontController {
 		return GatewayResponse.SUCCESS.newBuilder().toResult(aliPayParams.getBody());
 	}
 
+	/**
+	 * 订单支付状态
+	 */
+	@GetMapping("/get/order/status/{orderId}")
+	public Result<UserMirrorShopFeeOrderDon> getFeeOrderStatusById(@PathVariable Long orderId) {
+		if (orderId < 1) {
+			throw BusinessRuntimeException.getInstance("订单不存在");
+		}
+		UserMirrorShopFeeOrderDon orderDonView = beanSearcher.searchFirst(UserMirrorShopFeeOrderDon.class, MapUtils.builder()
+				.put("orderId", String.format("where id = %s", orderId))
+				.build());
+		if (orderDonView == null) {
+			throw BusinessRuntimeException.getInstance("订单不存在");
+		}
+		return GatewayResponse.SUCCESS.newBuilder().toResult(orderDonView);
+	}
+
 	/**
 	 * 支付宝回调
 	 */