select
c.id,
c.orderId,
c.orderNo,
c.orderTime,
c.referrerId,
c.referrerRole,
c.referrerStoreID,
c.buyerId,
c.buyerRole,
c.sellerId,
c.sellerRole,
c.orderAmount,
c.totalAmount,
c.businessCategory,
c.orderStatus,
c.finishTime,
c.delFlag,
c.createUser,
c.createTime,
c.updateUser,
c.updateTime
from t_commission_order c
update t_commission_order
orderAmount = orderAmount- #{orderAmount},
totalAmount = totalAmount- #{totalAmount},
orderStatus = #{orderStatus},
finishTime = #{finishTime},
delFlag = #{delFlag},
updateUser = #{updateUser},
updateTime = #{updateTime},
where id = #{id}
#{orderStatus})
]]>