package com.ruoyi.project.intact.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.intact.domain.TApproveMaintenance;
import com.ruoyi.project.sems.domain.TApprove;

/**
 * 设备完整性维修申请Mapper接口
 * 
 * @author ruoyi
 * @date 2022-06-27
 */
public interface TApproveMaintenanceMapper extends BaseMapper<TApproveMaintenance>
{
    /**
     * 查询设备完整性维修申请
     * 
     * @param id 设备完整性维修申请ID
     * @return 设备完整性维修申请
     */
    public TApproveMaintenance selectTApproveMaintenanceById(Long id);

    /**
     * 查询设备完整性维修申请列表
     * 
     * @param tApproveMaintenance 设备完整性维修申请
     * @return 设备完整性维修申请集合
     */
    @DataScope(deptAlias = "d")
    public List<TApproveMaintenance> selectTApproveMaintenanceList(TApproveMaintenance tApproveMaintenance);

    /**
     * 新增设备完整性维修申请
     * 
     * @param tApproveMaintenance 设备完整性维修申请
     * @return 结果
     */
    public int insertTApproveMaintenance(TApproveMaintenance tApproveMaintenance);

    /**
     * 修改设备完整性维修申请
     * 
     * @param tApproveMaintenance 设备完整性维修申请
     * @return 结果
     */
    public int updateTApproveMaintenance(TApproveMaintenance tApproveMaintenance);

    /**
     * 删除设备完整性维修申请
     * 
     * @param id 设备完整性维修申请ID
     * @return 结果
     */
    public int deleteTApproveMaintenanceById(Long id);

    /**
     * 批量删除设备完整性维修申请
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTApproveMaintenanceByIds(Long[] ids);
}
