package com.ruoyi.payment.infrastructure.persistence.mapper; import com.ruoyi.payment.domain.model.PaymentOrder; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; /** * 支付订单Mapper * * @author ruoyi */ @Mapper public interface PaymentOrderMapper { /** * 插入支付订单 */ int insert(PaymentOrder order); /** * 更新支付订单 */ int update(PaymentOrder order); /** * 根据ID查询订单 */ PaymentOrder selectById(@Param("id") Long id); /** * 根据业务订单号和渠道查询订单 */ PaymentOrder selectByBizOrderIdAndChannel(@Param("bizOrderId") String bizOrderId, @Param("channel") String channel); /** * 根据渠道交易号查询订单 */ PaymentOrder selectByChannelTradeNo(@Param("channelTradeNo") String channelTradeNo); }