package com.hzs.member.account.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.member.account.CuMemberAccountDetail;
import com.hzs.common.domain.member.account.CuMemberAccountDetailExt;
import com.hzs.member.account.vo.CuMemberAccountDetailLookVO;
import com.hzs.member.account.vo.CuMemberAccountDetailVO;

import java.util.List;

/**
 * <p>
 * 会员账户详情 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2022-10-31
 */
public interface CuMemberAccountDetailMapper extends BaseMapper<CuMemberAccountDetail> {

    /**
     * 余额汇总查询
     *
     * @param memberAccountDetailVO 余额汇总详情
     * @return List<CuMemberAccountDetail>
     */
    List<CuMemberAccountDetail> selectAccountDetailList(CuMemberAccountDetailVO memberAccountDetailVO);

    /**
     * 余额汇总查看查询
     *
     * @param memberAccountDetailLookVO 余额汇总查看
     * @return List<CuMemberAccountDetailExt>
     */
    List<CuMemberAccountDetailExt> selectAccountDetailLookList(CuMemberAccountDetailLookVO memberAccountDetailLookVO);

    /**
     * 定时插入会员账户详情信息
     *
     * @return Integer
     */
    Integer insertAccountDetail();

    /**
     * 每月月初定时删除上上个月的数据
     *
     * @return Integer
     */
    Integer deleteAccontDetailByMonth();

}
