zwl
2025-07-09 958883d6f4dac68fcbbccadb4e7f87e963eee0e8
zy-asrs-common/src/main/resources/mapper/wms/OrderDetlMapper.xml
@@ -24,8 +24,15 @@
        and qty < anfme
    </select>
    <select id="selectItem" resultType="com.zy.asrs.common.wms.entity.OrderDetl">
    <select id="selectDetls" resultType="com.zy.asrs.common.wms.entity.OrderDetl">
        select * from wms_order_detl
        where 1=1
          and order_id = #{orderId}
          and host_id = #{hostId}
    </select>
    <select id="selectItem" resultType="com.zy.asrs.common.wms.entity.OrderDetl">
        select top 1 * from wms_order_detl
        where 1=1
        and order_id = #{orderId}
        and matnr = #{matnr}
@@ -34,9 +41,9 @@
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
<!--            <otherwise>-->
<!--                and (batch IS NULL OR batch = '')-->
<!--            </otherwise>-->
        </choose>
    </select>
@@ -137,7 +144,7 @@
    </update>
    <update id="increaseWorkQty">
        update man_order_detl
        update wms_order_detl
        set work_qty = work_qty + #{workQty}
        where 1=1
        and order_id = #{orderId}
@@ -153,4 +160,7 @@
        </choose>
    </update>
    <insert id="addToLogTable">
        INSERT INTO man_order_detl_log SELECT * FROM man_order_detl WHERE id = #{id}
    </insert>
</mapper>