package com.engine.htxc.contract.mapper;

import com.engine.htxc.contract.entity.UfDsfgl;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CounterPartyMapper {
    @Select({"<script> ",
            "select t.id,dsflx,dsfmc,frxm,frsfzhm,lxdh,email,d.zjhm,dsfbm,d.zjlx from uf_dsfgl t,uf_dsfgl_dt1 d where d.mainid=t.id and d.zjhm in " ,
            "<foreach item='item' index='index' collection='items' open='(' separator=',' close=')'>",
            "#{item}",
            "</foreach>",
            "</script>"})
    List<UfDsfgl> selectCounterPartyByCertCode(@Param("items") List<String> certCodes);
}
