puzhibing
2024-02-05 640ff18d2d7f4be02ddb7f8f75e899f05545eb98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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>
    <select id="getList" resultType="com.dsh.other.entity.HonorRules">
        select * from t_honor_rules
    </select>
 
</mapper>