自动化立体仓库 - WMS系统
zjj
2025-02-17 8aa26cdd7fd9c4ed2d9fc56be0f9c9c05f531b18
src/main/resources/mapper/OrderMapper.xml
@@ -39,6 +39,7 @@
        <result column="update_by" property="updateBy" />
        <result column="update_time" property="updateTime" />
        <result column="memo" property="memo" />
        <result column="move_status" property="moveStatus" />
    </resultMap>
@@ -62,6 +63,15 @@
        order by create_time asc
    </select>
    <select id="selectComplete8" resultMap="BaseResultMap">
        select top 5 *
        from man_order
        where 1=1
        and settle = 8
        and status = 1
        order by create_time asc
    </select>
    <insert id="addToLogTable">
        INSERT INTO man_order_log SELECT * FROM man_order WHERE id = #{id}
    </insert>
@@ -75,4 +85,19 @@
        </if>
    </select>
    <select id="selectOrderMoveStatus" resultMap="BaseResultMap">
        select top 1 *
        from man_order
        where 1=1
        and move_status = 2
    </select>
    <select id="selectOrderMoveStatusInitial" resultMap="BaseResultMap">
        select top 1 *
        from man_order
        where 1=1
        and move_status = 1
        order by update_time
    </select>
</mapper>