package org.jeecg.modules.system.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.system.app.entity.ReceiptPaymentDetailsInfo;

/**
 * @Description: 店铺资金明细
 * @Author: jeecg-boot
 * @Date:   2025-08-18
 * @Version: V1.0
 */
public interface ReceiptPaymentDetailsInfoMapper extends BaseMapper<ReceiptPaymentDetailsInfo> {

    @Select(" from nm_receipt_payment_details_info where org_code =#{orgCode}  order by increment_id desc limit 1")
    ReceiptPaymentDetailsInfo findByOrgCode(@Param("orgCode") String orgCode);

    IPage<ReceiptPaymentDetailsInfo> findPage(@Param("receiptPaymentDetailsInfo") Page<ReceiptPaymentDetailsInfo> page, @Param("receiptPaymentDetailsInfo") ReceiptPaymentDetailsInfo receiptPaymentDetailsInfo);
}
