package com.elephant.framework.galaxy.aroad.module.zhtj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elephant.framework.galaxy.aroad.module.zhtj.entity.ZhtjGllmqk;
import org.apache.ibatis.annotations.Param;

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

/**
 * 综合统计_公路路面情况
 *
 * @author xuyanqi
 * @date 2019-03-12 11:04:15
 */
public interface ZhtjGllmqkMapper extends BaseMapper<ZhtjGllmqk> {
// 根据年份、类型查询各地市路面情况
    List<ZhtjGllmqk> electZhtjGllmqks(String year, String type,String area);
    Map<String, Object> selectOrdinary(String type, String year, String area);
// 查询数据最新年份
    String newYear(@Param("type") String type);

    /**
     *普通国省道路面情况
     * @param zhtjGllmqk
     * @return
     */
    ZhtjGllmqk selectLmqkForPtgsd(@Param("lm")ZhtjGllmqk zhtjGllmqk);
}
