package org.security.trans.prevent.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.security.trans.dataStatistics.dto.MaterialDataDTO;
import org.security.trans.dataStatistics.dto.StatisticsDataDTO;
import org.security.trans.dataStatistics.vo.MaterialDataVO;
import org.security.trans.prevent.entity.PreventMaterial;
import org.security.trans.prevent.vo.PreventMaterialVO;
import org.springblade.core.datascope.annotation.DataAuth;
import org.springblade.core.datascope.enums.DataScopeEnum;

import java.util.List;

/**
 * 案件材料报送表 Mapper 接口
 *
 * @author BladeX
 * @since 2022-07-07
 */
public interface PreventMaterialMapper extends BaseMapper<PreventMaterial> {

	@DataAuth(type = DataScopeEnum.OWN_DEPT_CHILD, column = "DEPT_ID")
	List<PreventMaterialVO> getPage(IPage<PreventMaterialVO> page, @Param("preventMaterialVO")PreventMaterialVO preventMaterialVO);

	List<MaterialDataVO> getAimStatisticsData(@Param("materialDataDTO") MaterialDataDTO materialDataDTO, @Param("aimDepts") List<String> aimDepts);
}
