update 部分sql适配

This commit is contained in:
yyb
2026-01-21 16:46:50 +08:00
parent fa7b07817c
commit b5931e81d4
8 changed files with 435 additions and 114 deletions

View File

@@ -22,6 +22,7 @@
<sql id="Base_Column_List">
id, order_id, product_id,product_machine_id,`name`, unit, image, quantity, price, create_time, update_time, del
</sql>
<select id="getMachineByOrderStatusIsPayInData" resultType="java.lang.Long">
select product_machine_id AS productMachineId from lease_order_item
where
@@ -127,5 +128,14 @@
)
</select>
<update id="updateSettleAmount">
UPDATE lease_order_item
SET already_pay_real_amount = settle_pay_real_amount,settle_pay_real_amount = 0
WHERE order_id IN (
<foreach collection="list" item="item" separator=",">
#{item.orderId}
</foreach>
)
</update>
</mapper>