chenlu
2024-03-07 ae0bbc7e8fce2cc23e15aa730e0c53c524b4112e
north-glass-erp/src/main/resources/mapper/sd/OrderDetail.xml
@@ -53,5 +53,19 @@
             )
        </foreach>
    </insert>
    <update id="updateOrderMoney" parameterType="java.util.List">
        <foreach collection="orderDetails"  item="item" index="index" open="" close="" separator=";">
            update order_detail as a
            set
                a.price = #{item.price},
                a.gross_amount = #{item.grossAmount}
            where
                a.order_id = #{item.orderId} and
                a.order_number =  #{item.orderNumber}
        </foreach>
    </update>
</mapper>