package cn.pluss.platform.memberOrder;

import java.util.List;
import java.util.Map;

import cn.pluss.platform.entity.MemberOrder;
import com.baomidou.mybatisplus.extension.service.IService;

public interface MemberOrderService extends IService<MemberOrder> {

    MemberOrder queryMemberOrder(MemberOrder memberOrder);

    List<MemberOrder> queryMemberOrderList(MemberOrder memberOrder);

    void saveMemberOrder(MemberOrder memberOrder);

    void updateMemberOrder(MemberOrder memberOrder);

    void deleteMemberOrder(MemberOrder memberOrder);

    List<MemberOrder> queryMemberOrderPage(Map map);

    Integer queryMemberOrderPageCount(Map map);

    Double queryMemberOrderTotalOrderFeeByTime(Map map);

    Integer queryMemberOrderPageCountByTime(Map map);

    /**
     * 根据订单类型统计订单数量
     * @param map
     * @return
     */
    Map<String, Map<String, Object>> queryMemberOrderCountByTimeGroupData(Map map);

    List<MemberOrder> queryMemberOrderPageByTime(Map<String, Object> queryMap);

    /**
     * sumMemberOrderMoney:(统计商家的会员消费金额  充值金额). <br/>
     *
     * @param merchantCode 商家code
     * @param orderType    0会员消费  1会员充值
     * @return
     * @author Administrator
     * @since JDK 1.8
     */
    Double sumMemberOrderMoney(Map<String, Object> map);

}

