Compare commits

...

2 Commits

Author SHA1 Message Date
lzh
b91131b7cd Merge branch 'dev-lzh' into dev 2025-06-15 14:36:06 +08:00
lzh
21504e78f2 补充金额字段 2025-06-15 14:35:39 +08:00

View File

@ -123,7 +123,7 @@ func GetBundleBalanceList(req *bundle.GetBundleBalanceListReq) (data []model.Bun
func GetBundleBalanceByUserId(req *bundle.GetBundleBalanceByUserIdReq) (data model.UserBundleBalancePo, err error) {
err = app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_balance AS bb").
Select("bb .*,bor.uuid AS order_uuid, bor.bundle_name AS bundle_name, bor.status AS bundle_status, bor.pay_time AS pay_time, bor.expiration_time AS expired_time").
Select("bb .*,bor.uuid AS order_uuid, bor.bundle_name AS bundle_name, bor.status AS bundle_status, bor.pay_time AS pay_time, bor.expiration_time AS expired_time,bor.amount AS payment_amount").
Joins("LEFT JOIN bundle_order_records bor ON bor.customer_id = bb.user_id").
Joins("LEFT JOIN `micro-account`.`user` u ON u.id = bb.user_id").
Where("bor.deleted_at IS NULL").