自动化立体仓库 - WMS系统
#
LSH
2023-02-13 f638c59bf4d35a4e2f645a157cdc5ce787094012
src/main/resources/mapper/OrderMapper.xml
@@ -42,4 +42,28 @@
    </resultMap>
    <update id="updateSettle">
        update man_order
        set settle = #{settle}
        ,update_time = getdate()
        <if test="userId != null">
            ,update_by = #{userId}
        </if>
        where 1=1
        and id = #{orderId}
    </update>
    <select id="selectComplete" resultMap="BaseResultMap">
        select top 5 *
        from man_order
        where 1=1
        and settle = 4
        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>
</mapper>