package com.ruoyi.project.sems.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.framework.aspectj.lang.annotation.DataScopePlant;
import com.ruoyi.project.sems.domain.TMeasureRecord;
import org.apache.ibatis.annotations.Mapper;

/**
 * 测厚记录Mapper接口
 * 
 * @author ruoyi
 * @date 2021-07-08
 */
@Mapper
public interface TMeasureRecordMapper extends BaseMapper<TMeasureRecord>
{
    /**
     * 查询测厚记录
     * 
     * @param id 测厚记录ID
     * @return 测厚记录
     */
    public TMeasureRecord selectTMeasureRecordById(Long id);

    /**
     * 查询测厚记录列表
     * 
     * @param tMeasureRecord 测厚记录
     * @return 测厚记录集合
     */
    @DataScopePlant(deptAlias = "d")
    public List<TMeasureRecord> selectTMeasureRecordList(TMeasureRecord tMeasureRecord);

    /**
     * 新增测厚记录
     * 
     * @param tMeasureRecord 测厚记录
     * @return 结果
     */
    public int insertTMeasureRecord(TMeasureRecord tMeasureRecord);

    /**
     * 修改测厚记录
     * 
     * @param tMeasureRecord 测厚记录
     * @return 结果
     */
    public int updateTMeasureRecord(TMeasureRecord tMeasureRecord);

    /**
     * 删除测厚记录
     * 
     * @param id 测厚记录ID
     * @return 结果
     */
    public int deleteTMeasureRecordById(Long id);

    /**
     * 批量删除测厚记录
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTMeasureRecordByIds(Long[] ids);

    void deleteTMeasureRecordByDate(TMeasureRecord t);
}
