package com.testor.ddd.safetyControl.infrastructure.repository.riskOwner.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.testor.ddd.safetyControl.infrastructure.repository.riskOwner.entity.TSafeRiskOwnerDO;
import com.testor.ddd.safetyControl.interfaces.model.dto.riskOwner.TSafeRiskOwnerDTOParam;
import com.testor.ddd.safetyControl.interfaces.model.vo.riskOwner.TSafeRiskOwnerVO;
import com.tongtech.tfw.backend.common.models.supers.SuperDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 管控部门责任人Mapper接口
 *
 * @author testor-framework
 * @date 2022-07-11 10:00:09
 */
public interface TSafeRiskOwnerDao extends SuperDao<TSafeRiskOwnerDO>
{
    /**
     * 分页查询
     * @param param
     * @return
     */
    IPage<TSafeRiskOwnerVO> listPage(Page<TSafeRiskOwnerVO> page, @Param("query") TSafeRiskOwnerDTOParam param);

    List<TSafeRiskOwnerVO> listAll(@Param("query") TSafeRiskOwnerDTOParam param);

}
