diff --git a/packages/plugins/@hera/plugin-rental/src/server/sqls/view_invoices_tax.sql b/packages/plugins/@hera/plugin-rental/src/server/sqls/view_invoices_tax.sql index 91a53aae0..a20bbf1db 100644 --- a/packages/plugins/@hera/plugin-rental/src/server/sqls/view_invoices_tax.sql +++ b/packages/plugins/@hera/plugin-rental/src/server/sqls/view_invoices_tax.sql @@ -195,9 +195,16 @@ WITH RECURSIVE -- 主查询 -- 根据计算后的表,获取最终的视图 SELECT - * + row_num, + company_id, + "MONTH" AT TIME ZONE 'UTC' AS "MONTH", + input_tax_amount, + out_tax_amount, + monthly_tax_amount, + super_tax_amount, + monthly_total_tax_amount FROM G_INTIAL_TAX ORDER BY - company_id, - "MONTH" + "MONTH" DESC, + company_id