lihang
2023-06-15 b48356e1b39f8e812f85d1627c0fc18e1f4d58ba
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?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.vci.ubcs.omd.mapper.RevisionRuleMapper">
    <resultMap id="BaseResultMap" type="com.vci.ubcs.omd.entity.RevisionRule">
        <id column="oid" jdbcType="VARCHAR" property="oid" />
        <result column="id" jdbcType="VARCHAR" property="id" />
        <result column="name" jdbcType="VARCHAR" property="name" />
        <result column="description" jdbcType="VARCHAR" property="description" />
        <result column="skip_code" jdbcType="VARCHAR" property="skipCode" />
        <result column="start_code" jdbcType="VARCHAR" property="startCode" />
        <result column="serial_step" jdbcType="DECIMAL" property="serialStep" />
        <result column="prefix_code" jdbcType="VARCHAR" property="prefixCode" />
        <result column="suffix_code" jdbcType="VARCHAR" property="suffixCode" />
        <result column="btm_name" property="btmName" jdbcType="VARCHAR" />
        <result column="owner" property="owner" jdbcType="VARCHAR" />
        <result column="creator" jdbcType="VARCHAR" property="creator" />
        <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
        <result column="last_modifier" jdbcType="VARCHAR" property="lastModifier" />
        <result column="last_modify_time" jdbcType="TIMESTAMP" property="lastModifyTime" />
        <result column="ts" jdbcType="TIMESTAMP" property="ts" />
    </resultMap>
 
    <sql id="base_query_column">
        oid, id, name, description, skip_code, start_code, serial_step, prefix_code, suffix_code,
        btm_name, owner, creator, create_time, last_modifier, last_modify_time, ts
    </sql>
 
    <sql id="tableName">
        pl_omd_revision_rule
    </sql>
 
    <select id="selectByIdIgnoreCase" resultMap="BaseResultMap">
        select <include refid="base_query_column"/> from <include refid="tableName"/>
        where lower(id) in
        <foreach collection="records" item="item" index="arrayindex" open=" ( " close=")" >
            #{item,jdbcType=VARCHAR}
            <if test="(arrayindex != records.size() -1)">
                ,
            </if>
        </foreach>
    </select>
 
</mapper>