package com.wzj.soopin.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzj.soopin.member.domain.po.MemberCart;
import com.wzj.soopin.member.domain.bo.MemberCartBO;
import com.wzj.soopin.member.domain.vo.MemberCartVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 购物车Mapper接口
 *
 * @author zcc
 */
public interface MemberCartMapper extends BaseMapper<MemberCart> {
    /**
     * 查询购物车列表
     *
     * @param memberCart 购物车
     * @return 购物车集合
     */
    List<MemberCart> selectByEntity(MemberCart memberCart);

    /**
     *
     */
    List<MemberCartVO> selectByPage(MemberCartBO query);

    int statAddCount(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);
}
