自动化立体仓库 - WMS系统
1
ZY
2024-10-29 cae5ed7160b2071033580a9eabca7ff645a0db91
src/main/resources/mapper/OrderMapper.xml
@@ -46,9 +46,39 @@
        update man_order
        set settle = #{settle}
        ,update_time = getdate()
        ,update_by = #{userId}
        <if test="userId != null">
            ,update_by = #{userId}
        </if>
        where 1=1
        and id = #{orderId}
    </update>
    <update id="updateSettle2">
        update man_order
        set settle = #{settle}
        ,update_time = getdate()
          ,plt_type = #{plt}
        ,in_time = #{inTime}
        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>
    <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>