/*
 * Copyright (c) 2024 codvision.com All Rights Reserved.
 */

package com.codvision.basic.mapper.patrol;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.codvision.basic.entity.patrol.PatrolPoint;
import com.codvision.basic.entity.vo.patrol.PatrolPointVO;
import org.apache.ibatis.annotations.Param;

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

/**
 * @author codvision
 */
public interface PatrolPointMapper extends BaseMapper<PatrolPoint> {

    /**
     * 分页通用查询
     * @param page 分页对象
     * @param paraMap 查询条件
     * @return 列表
     */
    IPage<PatrolPoint> getPageResult(IPage<Map<String, Object>> page, @Param("query") Map<String, Object> paraMap);

    List<PatrolPointVO> getPointByRecordIdAndRouteId(@Param("recordId") Integer recordId, @Param("routeId") Integer routeId);

    List<PatrolPointVO> getPointByRecordId(@Param("recordId") Integer recordId, @Param("oid") Integer oid);



}
