update 部分sql适配
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user