90 lines
2.4 KiB
Java
90 lines
2.4 KiB
Java
package com.rzyc.mapper;
|
|
|
|
import com.rzyc.bean.RiskSource.RiskSourceStatistic;
|
|
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;
|
|
|
|
/**
|
|
* <p>
|
|
* Mapper 接口
|
|
* </p>
|
|
*
|
|
* @author
|
|
* @since 2022-08-02
|
|
*/
|
|
@Repository
|
|
public interface RkSourcesMapper extends BaseMapper<RkSources> {
|
|
|
|
/*风险源列表*/
|
|
List<RkSources> sourcesList(@Param("condition") String condition,
|
|
@Param("enterpriseId") String enterpriseId,
|
|
@Param("riskGrade") Integer riskGrade);
|
|
|
|
|
|
/*风险源列表*/
|
|
List<RkSources> findByIndex(@Param("enterpriseId") String enterpriseId);
|
|
|
|
/*已经标记的危险源列表*/
|
|
List<RkSources> signedSource(@Param("enterpriseId") String enterpriseId,
|
|
@Param("documentId") String documentId);
|
|
|
|
/*取消危险源标记*/
|
|
Integer changeIndex(@Param("sourceId") String sourceId);
|
|
|
|
|
|
/**
|
|
* 危险源统计
|
|
* @param orgCode
|
|
* @param industryId
|
|
* @return RkSources
|
|
* */
|
|
List<RkSourceStatistic> sourcesEntStatistic(@Param("industryId") String industryId,@Param("orgCode")String orgCode);
|
|
|
|
|
|
/**
|
|
* 风险源信息分页查询
|
|
* @param RkSourcesDto
|
|
* @return
|
|
*/
|
|
List<RkSources> selectPageRkSources(RkSourcesDto RkSourcesDto);
|
|
|
|
|
|
|
|
/**
|
|
* 风险源信息分页查询
|
|
* @return RiskSourceStatistic
|
|
*/
|
|
RiskSourceStatistic riskSourceStatistic();
|
|
|
|
|
|
/**
|
|
* 风险源信息分页查询
|
|
* @return RiskSourceStatistic
|
|
*/
|
|
List<RiskSourceStatistic>riskSourceStatisticByIndustry();
|
|
|
|
|
|
/**
|
|
* 风险源详细列表
|
|
* @param companyName
|
|
* @param industryId
|
|
* @param riskGrade
|
|
* @param riskSourceId
|
|
* @param accidentType
|
|
* @param enterpriseId
|
|
* @return List<RkSources>
|
|
* */
|
|
List<RkSources> riskSourceTable(@Param("companyName") String companyName,@Param("industryId") String industryId,@Param("riskSourceId")String riskSourceId,@Param("accidentType")String accidentType,
|
|
@Param("enterpriseId") String enterpriseId, @Param("riskGrade")Integer riskGrade);
|
|
|
|
|
|
}
|