package com.yuchen.saas.park.service.mapper;


import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuchen.saas.park.api.entity.park.PmgBatParkInfo;
import com.yuchen.saas.park.api.vo.park.PmgBatParkCountVo;
import com.yuchen.saas.park.api.vo.park.PmgBatParkInfoCountVo;
import com.yuchen.saas.park.api.vo.park.PmgParkBuildingInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author 刘通
 * @date 2020/12/25 17:35
 */
public interface PmgBatParkInfoMapper extends BaseMapper<PmgBatParkInfo> {
    /**
     * 园区总数据的统计
     *
     * @param id
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    PmgBatParkInfoCountVo statementCount(Long id);


    /**
     *
     *
     * @param id
     * @return
     */
    List<PmgBatParkInfo> deptPark(String id);


    /**
     *
     *
     * @param id
     * @return
     */
    List<PmgBatParkInfo> rolePark(List<Long> id);

    /**
     * 园区销控报表
     *
     * @param id
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    List<PmgBatParkCountVo> parkIntoCount(Long id);

    /**
     * 楼栋统计信息
     *
     * @param id
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    List<PmgParkBuildingInfoVo> buildingCount(Long id);

    /**
     * 获取所有租户下的园区
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    List<PmgBatParkInfo> listAll(@Param("cityName") String cityName);
}
