package org.dromara.zjk.annualInspection.annualInspectionRecords.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.zjk.annualInspection.annualInspectionRecords.domain.ZjkAnnualInspectionRecords;
import org.dromara.zjk.annualInspection.annualInspectionRecords.domain.bo.ZjkAnnualInspectionRecordsBo;
import org.dromara.zjk.annualInspection.annualInspectionRecords.domain.vo.ZjkAnnualInspectionRecordsVo;

/**
 * 年检记录Mapper接口
 *
 * @author zhangzhou
 * @date 2024-11-13
 */
public interface ZjkAnnualInspectionRecordsMapper extends BaseMapperPlus<ZjkAnnualInspectionRecords, ZjkAnnualInspectionRecordsVo> {


    @DataPermission({
        @DataColumn(key = "deptName", value = "zai.create_dept"),
        @DataColumn(key = "userName", value = "zai.user_id")
    })
    Page<ZjkAnnualInspectionRecordsVo> queryAnnualInspectionRecords(@Param("page") Page<ZjkAnnualInspectionRecordsVo> page, @Param("bo") ZjkAnnualInspectionRecordsBo zjkAnnualInspectionRecordsBo);

}
