src/main/resources/mapper/yunding/YdOrderDao.xml
@@ -94,5 +94,13 @@ from yd_order a inner join (select * from member a where find_in_set(#{inviteId}, a.referer_ids) or invite_id=#{inviteId}) b on a.member_id=b.id inner join yd_product c on c.id = a.product_id where a.type=1 </select> <update id="updateOrderProfit"> update yd_order set total_profit=total_profit+#{profit}, today_profit=#{profit} where id=#{id} </update> </mapper>