自动化立体仓库 - WCS系统
*
lsh
2025-04-01 b424d6493efb60cb8d93a2e16526086da1fc2ea9
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
<?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.zy.system.mapper.ConfigMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.system.entity.Config">
        <id column="id" property="id" />
        <result column="name" property="name" />
        <result column="code" property="code" />
        <result column="value" property="value" />
        <result column="type" property="type" />
        <result column="status" property="status" />
 
    </resultMap>
 
    <select id="selectByCode" resultMap="BaseResultMap">
        select top 1 * from "SOURCE"."sys_config"
        where "code" = #{code}
    </select>
 
    <select id="selectByCodes" resultMap="BaseResultMap">
        select * from "SOURCE"."sys_config"
        where "code" in
        <foreach item="item" collection="codes" index="index"  separator="," open="(" close=")">
            #{item}
        </foreach>
    </select>
 
</mapper>