Commit b3bf832d authored by xianyang's avatar xianyang

优化业务类型汇总

parent 519198c2
......@@ -88,6 +88,8 @@ class CalculationMonthlyBill(object):
else:
q_sql = f"SELECT reference_type, type, sum(cast(amount as decimal(20,3))) as money FROM (select reference_type,type,amount FROM {self.date} limit {page},{size}) as a GROUP BY reference_type, type ORDER BY reference_type"
count_data = LinkMysql(env.DB_HISTORY).query_mysql(q_sql)
if not count_data:
count_data = []
self.query_data = self.query_data + count_data
def data_deal_with(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment