|
|
@@ -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);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 支付宝回调
|
|
|
*/
|