package com.chushang.inspection.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chushang.common.mybatis.page.CommonParam;
import com.chushang.datascope.annotation.DataScope;
import com.chushang.inspection.project.po.InspectionData;
import com.chushang.inspection.work.vo.InspectionConfigVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
  * @auther: zhao
  * @date: 2024/6/18 15:39
  */
public interface InspectionDataMapper extends BaseMapper<InspectionData> {
    @DataScope(deptAlias = "ic")
    List<InspectionConfigVO> listInspectionsByWrkId(@Param("wrkId") Long wrkId, @Param("query") CommonParam query);
    @DataScope(deptAlias = "ic")
    List<InspectionConfigVO> listInspectionsByWrkIds(@Param("wrkIds") Set<Long> wrkIds, @Param("query") CommonParam query);
}
