2024-08-26 16:14:50 +08:00
|
|
|
package com.gunshi.project.xyt.mapper;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
2024-08-27 14:38:10 +08:00
|
|
|
import com.gunshi.project.xyt.model.RiskControlDictRel;
|
2024-08-26 16:14:50 +08:00
|
|
|
import com.gunshi.project.xyt.model.RiskControlInfo;
|
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
2024-08-27 14:38:10 +08:00
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
2024-08-26 16:14:50 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 描述: 风险管控清单
|
|
|
|
|
* author: xusan
|
|
|
|
|
* date: 2024-08-22 14:17:28
|
|
|
|
|
*/
|
|
|
|
|
@Mapper
|
|
|
|
|
public interface RiskControlInfoMapper extends BaseMapper<RiskControlInfo> {
|
|
|
|
|
|
2024-08-27 14:38:10 +08:00
|
|
|
@Select("""
|
|
|
|
|
<script>
|
|
|
|
|
select t.*,s.dict_nm from public.risk_control_dict_rel t
|
|
|
|
|
left join public.sys_dict_b s
|
|
|
|
|
on t.sys_dict_id = s.id
|
|
|
|
|
where t.risk_control_id in
|
|
|
|
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
|
|
|
#{id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</script>
|
|
|
|
|
""")
|
|
|
|
|
List<RiskControlDictRel> queryRelList(@Param("ids") List<Long> ids);
|
2024-08-26 16:14:50 +08:00
|
|
|
}
|