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.PmgBatWarningCategory;
import com.yuchen.saas.park.api.vo.park.GetCountTime24RespVo;
import com.yuchen.saas.park.api.vo.park.PmgBatWarningCategoryVo;
import com.yuchen.saas.park.api.vo.park.WarningCategoryLevelName;
import org.apache.ibatis.annotations.Param;
import org.nest.springwrap.core.datascope.annotation.DataAuth;
import org.nest.springwrap.core.datascope.enums.DataScopeEnum;

import java.util.List;


/**
 * @blame Android Team
 */
public interface WarningCategoryMapper extends BaseMapper<PmgBatWarningCategory> {
    @DataAuth(type = DataScopeEnum.OWN_DEPT_CHILD)
    PmgBatWarningCategoryVo queryByIdentify(@Param("identity") String identity);
    @DataAuth(type = DataScopeEnum.OWN_DEPT_CHILD)
     List<GetCountTime24RespVo> getCountTime24(String productKey);
    /**
     * 获取报警类型对象信息-分页
     * @param page 分页信息
     * @return
     */
    @DataAuth(type = DataScopeEnum.OWN_DEPT_CHILD)
    IPage<WarningCategoryLevelName> getWarningCategoryPage(IPage<Object> page);
}
