fix: display finance records and ledgers in Beijing time
Deploy olons-server production / deploy (push) Successful in 34s

This commit is contained in:
richjohnrambo
2026-10-23 00:13:07 +08:00
parent 8ce67648b1
commit f56b84bb10
9 changed files with 224 additions and 30 deletions
+1 -1
View File
@@ -815,7 +815,7 @@ func (s *Store) OrderLedgers(ctx context.Context, tenantID, memberID int64, busi
return []map[string]any{}, nil
}
query, args, err := sqlx.In(`SELECT id,ledger_no,biz_type,biz_no,entry_type,direction,amount,before_amount,after_amount,currency,remark,
DATE_FORMAT(occurred_at,'%Y-%m-%dT%H:%i:%sZ') AS occurred_at FROM hg_wallet_ledger
`+walletLedgerTimeUTC()+` AS occurred_at FROM hg_wallet_ledger
WHERE tenant_id=? AND member_id=? AND biz_no IN (?) ORDER BY occurred_at,id`, tenantID, memberID, businessNumbers)
if err != nil {
return nil, err