liujie
2023-09-25 8c55ab2701c99cec16eff92a26fefdf77fcdd28f
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>