自动化立体仓库 - WMS系统
zhangc
2024-12-09 29632eff966d228531e89473d83cdc0bad2c4d33
src/main/resources/mapper/OrderMapper.xml
@@ -42,6 +42,13 @@
    </resultMap>
    <update id="updateTel">
        update man_order
        set tel = #{tel}
        where 1=1
        and id = #{orderId}
    </update>
    <update id="updateSettle">
        update man_order
        set settle = #{settle}
@@ -53,13 +60,34 @@
        and id = #{orderId}
    </update>
    <update id="updateSettle2">
        update man_order
        set settle = #{settle}
        ,update_time = getdate()
        <if test="plt != null">
            ,plt_type = #{plt}
        </if>
        ,in_time = #{inTime}
        where 1=1
        and id = #{orderId}
    </update>
    <select id="selectComplete" resultMap="BaseResultMap">
        select top 5 *
        select TOP 5 *
        from man_order
        where 1=1
        and settle = 4
        and status = 1
        order by create_time asc
        order by newID(), create_time asc
    </select>
    <select id="selectorderNoL" resultMap="BaseResultMap">
        select top 10 *
        from man_order
        where 1=1
        <if test="orderNo != null">
            and order_no = #{orderNo}
        </if>
    </select>
</mapper>