自动化立体仓库 - WMS系统
zhangc
2024-12-31 83b8b7cecfe8266a44bfce696d857b3be7149e3f
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
<?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.BasMapMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.BasMap">
        <id column="id" property="id" />
        <result column="data" property="data" />
        <result column="create_time" property="createTime" />
        <result column="update_time" property="updateTime" />
        <result column="last_data" property="lastData" />
        <result column="lev" property="lev" />
 
    </resultMap>
 
    <select id="selectLatestMap" resultMap="BaseResultMap">
        select top 1 *
        from asr_bas_map
        where lev = #{lev}
        order by id desc
    </select>
 
    <delete id="deleteByLev">
        delete from asr_bas_map
        where lev = #{lev}
    </delete>
 
</mapper>