mybatis in 查询

前提是你 提交于 2020-03-02 18:41:01
    List<Testcl> test(List<String> list);
    <select id="test" resultMap="Model">
        select
        *
        from
        t_test
        where n_yx = 1 and c_id in 
        <foreach collection="list" item="id" index="index" open="(" close=")" separator=",">
              #{id}
        </foreach>
        order by d_create
    </select>

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!