liujie
2023-08-07 f5ca8f01cf6b8256a25e8c6838d805fe3fca43fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dsh.other.mapper.HonorRulesMapper">
 
 
    <select id="querylistOfIds" resultType="com.dsh.other.entity.HonorRules">
        SELECT
        id,
        type,
        `level`,
        `condition`
        FROM
        t_honor_rules
        where 1=1
        <if test="honorIds.size > 0">
            and `id` in
        <foreach collection="honorIds" index="index" item="item" open="(" separator="," close=")">
            #{item}
        </foreach>
        </if>
    </select>
</mapper>