zhibo/fix_recharge_bill.sql

14 lines
582 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 查看eb_user_bill表结构
DESCRIBE eb_user_bill;
-- 查看现有的余额变动记录
SELECT * FROM eb_user_bill WHERE uid = 43 ORDER BY id DESC LIMIT 10;
-- 手动插入APP充值记录根据实际表结构调整
-- 如果表有create_time字段
INSERT INTO eb_user_bill (uid, link_id, pm, title, category, type, number, balance, mark, create_time, status)
VALUES (43, 'APP_RECHARGE', 1, '充值', 'now_money', 'recharge', 1200.00, 1001199.00, 'APP充值1200元', NOW(), 1);
-- 如果表没有create_time字段查看有哪些字段
SHOW COLUMNS FROM eb_user_bill;