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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuchen.saas.park.api.entity.park.ScanPrevention;
import com.yuchen.saas.park.api.request.ScanPageQueryRequest;
import com.yuchen.saas.park.api.response.ScanPreventionResponse;
import com.yuchen.saas.park.api.response.ScanPreventionStaticsResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 颜艺波
 * @create 2022/6/16 15:56
 */
public interface ScanPreventionMapper extends BaseMapper<ScanPrevention> {
    IPage<ScanPreventionResponse> listPage(IPage<ScanPreventionResponse> iPage, @Param("scan") ScanPageQueryRequest scanPageQueryRequest,
                                           String tenantId, Long parkId);
    List<ScanPreventionStaticsResponse> historyScanPreventionStatics(Long tenantId, Long parkId);
}
