已领取详情

This commit is contained in:
2026-04-28 10:28:07 +08:00
parent db308e2e26
commit c507df067b

View File

@@ -85,6 +85,15 @@ public class MkShopCouponRecordServiceImpl extends ServiceImpl<MkShopCouponRecor
Map.entry("购买会员赠券", "系统发送")
);
private static final Map<String, Long> RESULT_COUNT_MAP = Map.ofEntries(
Map.entry("用户领取", 0L),
Map.entry("分享获得", 0L),
Map.entry("群聊发放", 0L),
Map.entry("推广发放", 0L),
Map.entry("管理员赠送", 0L),
Map.entry("系统发送", 0L)
);
//"积分兑换", "用户领取"
@Override
@@ -161,12 +170,7 @@ public class MkShopCouponRecordServiceImpl extends ServiceImpl<MkShopCouponRecor
key -> tempMap.getOrDefault(key, 0L)
));
resultmap.put("categoryMap", categoryMap);
Map<String, Long> resultCountMap = new HashMap<>();
resultCountMap.put("用户领取", 0L);
resultCountMap.put("推广发放", 0L);
resultCountMap.put("管理员赠送", 0L);
resultCountMap.put("系统发送", 0L);
resultCountMap.put("群聊发放", 0L);
Map<String, Long> resultCountMap = RESULT_COUNT_MAP;
if (CollUtil.isNotEmpty(recordCountVO)) {
for (CouponRecordCountVO record : recordCountVO) {