package cn.com.countrygarden.bi.main.dao.marketing;


import cn.com.countrygarden.bi.main.core.Mapper;
import cn.com.countrygarden.bi.main.model.marketing.Charge;
import cn.com.countrygarden.bi.main.model.marketing.ChargeResult;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;


public interface ChargeMapper extends Mapper<Charge> {
    BigDecimal sumIncreaseChargeArea(Map<String, Object> map);

    /**
     * 当前收费面积排行
     *
     * @param startDate
     * @param endDate
     * @return
     */
    List<ChargeResult> ranking(@Param("startDate") String startDate, @Param("endDate") String endDate);


    /**
     * 本月及上月收费面积
     *
     * @return
     */
    List<Charge> thisAndLastMonthChargeArea();
}