package com.njzscloud.supervisory.money.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.supervisory.money.pojo.entity.MoneyAccountEntity;
import com.njzscloud.supervisory.money.pojo.result.MoneyAccountResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 资金账户表
 */
@Mapper
public interface MoneyAccountMapper extends BaseMapper<MoneyAccountEntity> {

    /**
     * 分页查询资金账户（关联用户或企业信息）
     */
    IPage<MoneyAccountResult> selectMoneyAccountWithName(Page<MoneyAccountResult> page, @Param("entity") MoneyAccountEntity entity);

    /**
     * 根据ID查询资金账户详情（包含关联信息）
     */
    MoneyAccountResult selectMoneyAccountDetailById(@Param("id") Long id);

}
