package com.iformall.mapper;

import com.iformall.common.CommonMapper;
import com.iformall.domain.po.WxCoupon;
import com.iformall.domain.po.WxOrder;
import com.iformall.domain.po.WxOrderGroup;
import com.iformall.domain.vo.WxCouponStatisVo;
import com.iformall.domain.vo.WxOrderGroupMarketing;

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

/**
 * @author gongbiao
 */
public interface WxOrderGroupMapper extends CommonMapper<WxOrderGroup, Long> {

    Map<String, Object> queryRemainOne(WxOrderGroup group);

    List<Map<String, Object>> queryOrderGroup(WxOrder wxOrder);

    int updateOrderGroup(WxOrderGroup wxOrderGroup);

    List<WxOrderGroupMarketing> queryOrderGroupMarketingList(WxOrderGroupMarketing marketing);

    List<Map<String, Object>> queryOrderGroupSuccessCountAndTime(Map<String, Object> params);

    List<Map<String, Object>> queryOrderGroupVerifyCountAndTime(Map<String, Object> params);

    long queryOrderGroupCount(Map<String, Object> params);

    long queryOrderGroupSuccessCount(Map<String, Object> params);

    long queryOrderGroupPeopleCount(Map<String, Object> params);

    long queryOrderGroupVerifyCount(Map<String, Object> params);

    List<WxCouponStatisVo> queryOrderGroupCountHistory(WxCoupon wxCoupon);

    long queryOrderGroupSuccessPeopleCount(Map<String, Object> params);


}

