package cn.reghao.tnb.user.app.db.mapper;

import cn.reghao.jutil.jdk.web.db.BaseMapper;
import cn.reghao.tnb.user.api.dto.WalletChargeDto;
import cn.reghao.tnb.user.app.model.po.WalletCharge;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author reghao
 * @date 2024-07-06 11:25:57
 */
@Mapper
public interface WalletChargeMapper extends BaseMapper<WalletCharge> {
    void updateStatus(@Param("chargeId") long chargeId, @Param("status") int status);

    List<WalletChargeDto> findByStatus(int status);
    WalletCharge findByChargeId(long chargeId);
}
