Explorar o código

fix(recon): 修复 billing_receivable_account SQL 字符串续行

上一提交误把行续反斜杠与 SELECT 挤在同一行,导致 Rust 无法编译。

Co-authored-by: Cursor <cursoragent@cursor.com>
cg hai 1 día
pai
achega
4647f1be34
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/modules/account/src/handlers/billing.rs

+ 2 - 1
src/modules/account/src/handlers/billing.rs

@@ -2507,7 +2507,8 @@ pub(crate) async fn freeze_period(db: &UdsClient, period: &str) -> Result<bool,
         ).await?;
         // 在期账号(M4:**按订阅**取账号——席位归属订阅,同一客户多份订阅各算各的;未开通不计;
         // 天数=订阅本期计费天数=分账号开通/停机口径,G-4 2026-11-24 确认)。
-        dmlx(db, "receivable", "INSERT INTO billing_receivable_account (period, subscription_id, sub_account_id, in_period_days, created_at) \             SELECT $1, $2, a.sub_account_id, $3, now() FROM sub_account a \
+        dmlx(db, "receivable", "INSERT INTO billing_receivable_account (period, subscription_id, sub_account_id, in_period_days, created_at) \
+             SELECT $1, $2, a.sub_account_id, $3, now() FROM sub_account a \
              WHERE a.subscription_id = $2 AND COALESCE(a.status,'') <> 'not_opened' \
                AND NOT EXISTS (SELECT 1 FROM billing_receivable_account x \
                     WHERE x.period=$1 AND x.subscription_id=$2 AND x.sub_account_id=a.sub_account_id)",