package com.zioinfo.mall.payment.mapper;

import com.zioinfo.mall.payment.MallPayment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PaymentMapper {
    MallPayment findById(@Param("id") Long id);
    MallPayment findByOrderId(@Param("orderId") Long orderId);
    List<MallPayment> findAll(@Param("status") String status, @Param("limit") int limit);
    int insert(MallPayment p);
    int updateStatus(@Param("id") Long id, @Param("status") String status);
}
