自动化立体仓库 - WMS系统
lty
10 小时以前 d44606236559adf331ee38846ef6acb1b25e5eef
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.OrderDetlChangelogMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.OrderDetlChangelog">
        <result column="id" property="id" />
        <result column="action_type" property="actionType" />
        <result column="order_no" property="orderNo" />
        <result column="matnr" property="matnr" />
        <result column="data" property="data" />
        <result column="change_time" property="changeTime" />
        <result column="processed" property="processed" />
 
    </resultMap>
    <select id="selectUnprocessedLogs" resultMap="BaseResultMap">
    SELECT *
    FROM man_order_detl_changelog
    WHERE processed = 0
    ORDER BY id
    </select>
 
    <update id="markProcessed">
    UPDATE man_order_detl_changelog
    SET processed = 1
    WHERE id = #{id}
    </update>
</mapper>