package com.rongwei.sfcommon.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rongwe.scentity.domian.AspRiskMapDo;
import com.rongwe.scentity.vo.CompanyInfoVo;
import com.rongwei.rwcommonentity.commonservers.domain.SysFileItemDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface RiskSynchronizationDao extends BaseMapper<AspRiskMapDo> {


    @Select({
            "<script>",
            "SELECT * FROM sys_file_item",
            "WHERE ID IN",
            "<foreach item='id' collection='distributeIdList' open='(' separator=',' close=')'>",
            "#{id}",
            "</foreach>",
            "</script>"
    })
    List<SysFileItemDo> getFilePathById(@Param("distributeIdList") List<String> distributeIdList);


    List<CompanyInfoVo> companyInfoList(@Param("tenantIds") List<String> tenantIds);
}
