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
@@ -44,7 +44,7 @@ func (s *Store) WalletLedgers(ctx context.Context, tenantID, memberID int64, biz
items := make([]WalletLedger, 0)
err := s.db.SelectContext(ctx, &items, `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
`+walletLedgerTimeUTC()+` AS occurred_at
FROM hg_wallet_ledger`+where+` ORDER BY occurred_at DESC,id DESC LIMIT ? OFFSET ?`, args...)
return &WalletLedgerPage{Items: items, Total: total}, err
}