package com.rzyc.mapper;
import com.rzyc.bean.risk.RkSourcesDto;
import com.rzyc.model.RkSourceStatistic;
import com.rzyc.model.RkSources;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.List;
/**
*
* Mapper 接口
*
*
* @author
* @since 2022-08-02
*/
@Repository
public interface RkSourcesMapper extends BaseMapper {
/*风险源列表*/
List sourcesList(@Param("condition") String condition,
@Param("enterpriseId") String enterpriseId,
@Param("riskGrade") Integer riskGrade);
/*风险源列表*/
List findByIndex(@Param("enterpriseId") String enterpriseId);
/*已经标记的危险源列表*/
List signedSource(@Param("enterpriseId") String enterpriseId,
@Param("documentId") String documentId);
/*取消危险源标记*/
Integer changeIndex(@Param("sourceId") String sourceId);
/**
* 危险源统计
* @param orgCode
* @param industryId
* @return RkSources
* */
List sourcesEntStatistic(@Param("industryId") String industryId,@Param("orgCode")String orgCode);
/**
* 风险源信息分页查询
* @param RkSourcesDto
* @return
*/
List selectPageRkSources(RkSourcesDto RkSourcesDto);
}