xiaoyong931011
2021-05-14 fd575f1971b145088b56c125f9f3ce3bf2429ebc
src/main/resources/mapper/yunding/YdOrderDao.xml
@@ -96,4 +96,11 @@
        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>