#
Junjie
2024-06-03 312e4a25f2c96e8349369cf1838c79b34f816ca5
zy-asrs-common/src/main/resources/mapper/wms/OrderDetlMapper.xml
@@ -136,4 +136,21 @@
        </choose>
    </update>
    <update id="increaseWorkQty">
        update man_order_detl
        set work_qty = work_qty + #{workQty}
        where 1=1
        and order_id = #{orderId}
        and matnr = #{matnr}
        and host_id = #{hostId}
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
    </update>
</mapper>