package cn.iocoder.mall.pay.biz.dao;

import cn.iocoder.mall.pay.biz.dataobject.PayTransactionDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface PayTransactionMapper {

    void insert(PayTransactionDO entity);

    int update(@Param("entity") PayTransactionDO entity,
               @Param("whereStatus") Integer whereStatus);

    PayTransactionDO selectByAppIdAndOrderId(@Param("appId") String appId,
                                             @Param("orderId") String orderId);

    PayTransactionDO selectById(@Param("id") Integer appId);

}