other_sql=f"select guild_id,initial_money as balance,income,outcome,create_time,amount_type from v3_guild_account_detail_copy where {' and '.join(guild_cond_list)} and amount_type != 1"
@@ -780,37 +784,29 @@ class HomePageDisplay(object):
Logger(20).logger.info('没找到系统账户')
return[],0,0
assets_cond.append(f" uuid='{acc_uuid[0]}'")
ths_count=math.ceil(count[0]['num']/5000000)
ths=[]
forxinrange(ths_count):
assets_sql=f"select reference_type,type,sum(cast(amount as FLOAT(3))) as amount from {self.date} where {' and '.join(assets_cond)} GROUP BY reference_type,type LIMIT {x * 5000000},{(x+1) * 5000000}"
assets_sql=f"select reference_type,type,sum(cast(amount as decimal(20,6))) as amount from assets_log where {' and '.join(assets_cond)} GROUP BY reference_type,type"