自动化立体仓库 - WMS系统
zwl
2025-10-22 4ef4e287fe6597543a9628b6dae294c19f2b1d9c
src/main/resources/mapper/asrs/OrderDetlMapper.xml
@@ -200,4 +200,23 @@
        </choose>
    </update>
    <update id="increaseWorkQty2">
        update man_order_detl
        set work_qty = work_qty + #{workQty}
        <if test="color!=null and color!='' ">
            , color = #{color}
        </if>
        where 1=1
        and order_id = #{orderId}
        and matnr = #{matnr}
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
    </update>
</mapper>