#
whycq
2022-02-09 cba44928e313cfe5c58a62ba1767a3d2d4337a09
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="zy.cloud.wms.system.mapper.HostMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="zy.cloud.wms.system.entity.Host">
        <id column="id" property="id" />
        <result column="name" property="name" />
        <result column="flag" property="flag" />
        <result column="create_time" property="createTime" />
        <result column="create_by" property="createBy" />
        <result column="update_time" property="updateTime" />
        <result column="update_by" property="updateBy" />
        <result column="status" property="status" />
        <result column="memo" property="memo" />
    </resultMap>
 
    <select id="selectTop1" resultMap="BaseResultMap">
        select top 1 * from sys_host where 1=1 order by id
    </select>
 
</mapper>