自动化立体仓库 - WCS系统
Junjie
2023-11-07 6017ff0fac73ee771282f8c4711f20ec9ca67bd7
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.zy.asrs.mapper.BasLiftOptMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.BasLiftOpt">
        <id column="id" property="id" />
        <result column="wrk_no" property="wrkNo" />
        <result column="lift_no" property="liftNo" />
        <result column="send_time" property="sendTime" />
        <result column="update_time" property="updateTime" />
        <result column="update_by" property="updateBy" />
        <result column="memo" property="memo" />
        <result column="command" property="command" />
        <result column="system_status" property="systemStatus" />
        <result column="device_wrk" property="deviceWrk" />
 
    </resultMap>
 
    <select id="selectByDeviceWrk" resultMap="BaseResultMap">
        select top 1 * from asr_bas_lift_opt
        where device_wrk = #{deviceWrk}
        order by send_time desc
    </select>
 
</mapper>