count_sql=f"select count(id) as num from {self.date}"
count_sql=f"select count(id) as num from {self.date}"
...
@@ -777,15 +780,19 @@ class HomePageDisplay(object):
...
@@ -777,15 +780,19 @@ class HomePageDisplay(object):
Logger(20).logger.info('没找到系统账户')
Logger(20).logger.info('没找到系统账户')
return[],0,0
return[],0,0
assets_cond.append(f" uuid='{acc_uuid[0]}'")
assets_cond.append(f" uuid='{acc_uuid[0]}'")
ths_count=math.ceil(count[0]['num']/10000000)
ths_count=math.ceil(count[0]['num']/5000000)
ths=[]
ths=[]
forxinrange(ths_count):
forxinrange(ths_count):
assets_sql=f"select reference_type,type,sum(amount) as amount from {self.date} where {' and '.join(assets_cond)} GROUP BY reference_type,type LIMIT {x * 10000000},{(x+1) * 10000000}"
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}"