单独查询订单支付结果接口
parent
2ab3fede64
commit
1459f5ff0d
|
|
@ -32,6 +32,7 @@ import com.ruoyi.xkt.dto.order.*;
|
|||
import com.ruoyi.xkt.enums.EOrderStatus;
|
||||
import com.ruoyi.xkt.enums.EPayChannel;
|
||||
import com.ruoyi.xkt.enums.EPayPage;
|
||||
import com.ruoyi.xkt.enums.EPayStatus;
|
||||
import com.ruoyi.xkt.manager.PaymentManager;
|
||||
import com.ruoyi.xkt.service.IExpressService;
|
||||
import com.ruoyi.xkt.service.IStoreOrderService;
|
||||
|
|
@ -121,6 +122,16 @@ public class StoreOrderController extends XktBaseController {
|
|||
return success(respVO);
|
||||
}
|
||||
|
||||
@ApiOperation("订单支付结果")
|
||||
@GetMapping("pay/result")
|
||||
public R<Boolean> getPayResult(@RequestParam("storeOrderId") Long storeOrderId) {
|
||||
StoreOrder order = storeOrderService.getById(storeOrderId);
|
||||
if (order == null) {
|
||||
return R.ok(false);
|
||||
}
|
||||
return R.ok(EPayStatus.PAID.getValue().equals(order.getPayStatus()));
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasAnyRoles('seller,agent')")
|
||||
@Log(title = "订单", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation("取消订单")
|
||||
|
|
|
|||
Loading…
Reference in New Issue