自动化立体仓库 - WMS系统
pang.jiabao
2025-09-03 e7d8e2c64facfa261e8b168b84e81ef6c835f57d
src/main/resources/mapper/OrderMapper.xml
@@ -58,6 +58,17 @@
        where 1=1
        and id = #{orderId}
    </update>
    <update id="updateSettleAndGroupingFlag">
        update
            man_order
        set
            settle = #{settle},
            account_day = #{account_day} ,
            update_time = getdate()
        where
            1 = 1
          and id = #{orderId}
    </update>
    <select id="selectWork" resultMap="BaseResultMap">
        select top 5 *
@@ -98,6 +109,17 @@
            and order_no = #{orderNo}
        </if>
    </select>
    <select id="selectorderNoL2" resultMap="BaseResultMap">
        SELECT TOP 10 *
        FROM man_order
        WHERE 1=1
        <if test="orderNo != null and orderNo != ''">
            AND order_no LIKE '%' + #{orderNo} + '%'
        </if>
        AND doc_type IN (34, 36, 37, 39, 40)
        AND settle IN (1, 2)
        ORDER BY create_time DESC
    </select>
    <select id="selectOrderMoveStatus" resultMap="BaseResultMap">
        select top 1 *
@@ -113,5 +135,17 @@
        and move_status = 1
        order by update_time
    </select>
    <select id="selectNotGroupingList" resultMap="BaseResultMap">
        select
            *
        from
            man_order mo
                left join man_doc_type mdt on
                mo.doc_type = mdt.doc_id
        where
            mdt.pakin = 1
          and mo.account_day = 0
          and mo.settle = 1
    </select>
</mapper>