package com.yeejoin.amos.boot.module.jg.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jg.api.entity.SafetyProblemTracing;
import com.yeejoin.amos.boot.module.jg.api.model.SafetyProblemTracingModel;
import org.apache.ibatis.annotations.Param;

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

/**
 * 安全追溯问题 Mapper 接口
 *
 * @author system_generator
 * @date 2024-05-21
 */
public interface SafetyProblemTracingMapper extends BaseMapper<SafetyProblemTracing> {

    Page<SafetyProblemTracingModel> queryForSafetyProblemTracingPage(Page<SafetyProblemTracingModel> page, @Param("problemModel")SafetyProblemTracingModel problemModel);

    Page<Map<String, Object>> queryEquipListByProblemId(Page<Map<String, Object>> page, String problemId);

    Page<Map<String, Object>> queryPrincipalUnitByProblemId(Page<Map<String, Object>> page, String problemId, String sourceTypeCode);

    List<Map<String, Object>> queryOutOfMaintenanceRecord();
}
