This commit is contained in:
jiaji.H 2026-06-11 13:19:07 +08:00
parent 669e5377bb
commit 24b6506be8
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ func GetPayLaterBundleBalanceList(req *bundle.GetPayLaterBundleBalanceListReq) (
Joins(`INNER JOIN ( Joins(`INNER JOIN (
SELECT customer_id, MAX(created_at) AS max_created_time SELECT customer_id, MAX(created_at) AS max_created_time
FROM bundle_order_records FROM bundle_order_records
WHERE order_type = 2 AND deleted_at is NULL AND bor.pay_later_status > 0 WHERE order_type = 2 AND deleted_at is NULL AND pay_later_status > 0
GROUP BY customer_id GROUP BY customer_id
) bor2 ON bor1.customer_id = bor2.customer_id AND bor1.created_at = bor2.max_created_time`) ) bor2 ON bor1.customer_id = bor2.customer_id AND bor1.created_at = bor2.max_created_time`)

View File

@ -923,7 +923,7 @@ func buildDefaultPayLaterBalanceLayout() string {
{"艺人手机号", "userPhoneNumber", 1}, {"艺人手机号", "userPhoneNumber", 1},
{"用户编号", "customerNum", 1}, {"用户编号", "customerNum", 1},
{"最后购买的套餐", "bundleName", 1}, {"最后购买的套餐", "bundleName", 1},
{"下单时间", "payTime", 1}, {"最新下单时间", "payTime", 1},
{"过期时间", "expiredTime", 1}, {"过期时间", "expiredTime", 1},
{"视频总数", "bundleVideoSumNumber", 1}, {"视频总数", "bundleVideoSumNumber", 1},
{"可用视频数", "bundleVideoNumber", 1}, {"可用视频数", "bundleVideoNumber", 1},