fix: 财务接口+恢复今日收入
This commit is contained in:
@@ -33,14 +33,14 @@ def get_order_user_id(order):
|
||||
return None
|
||||
|
||||
|
||||
def update_daily_income(amount, club_id=None):
|
||||
def update_daily_income(amount, club_id=None, stat_date=None):
|
||||
"""
|
||||
原子更新当日收入统计(金额累加,笔数加1)。
|
||||
用于微信支付成功回调。
|
||||
"""
|
||||
from jituan.constants import CLUB_ID_DEFAULT
|
||||
cid = club_id or CLUB_ID_DEFAULT
|
||||
today = date.today()
|
||||
today = stat_date or date.today()
|
||||
year, month, day = today.year, today.month, today.day
|
||||
|
||||
with transaction.atomic():
|
||||
|
||||
Reference in New Issue
Block a user