分销记录

This commit is contained in:
张松 2025-10-30 11:31:21 +08:00
parent 92f0d5e5b5
commit 9ed1548487
1 changed files with 2 additions and 2 deletions

View File

@ -48,10 +48,10 @@ public class MkDistributionFlowServiceImpl extends ServiceImpl<MkDistributionFlo
Page<MkDistributionFlowVO> page = PageUtil.convert(new PageInfo<>(list));
Map<String, Object> map = BeanUtil.beanToMap(page);
map.put("successAmount", getOne(new QueryWrapper().eq(MkDistributionFlow::getShopId, shopId)
.eq(MkDistributionFlow::getType, TableValueConstant.DistributionFlow.Status.SUCCESS.getCode())
.eq(MkDistributionFlow::getStatus, TableValueConstant.DistributionFlow.Status.SUCCESS.getCode())
.select("sum(reward_amount)")));
map.put("pendingAmount", getOne(new QueryWrapper().eq(MkDistributionFlow::getShopId, shopId)
.eq(MkDistributionFlow::getType, TableValueConstant.DistributionFlow.Status.PENDING.getCode())
.eq(MkDistributionFlow::getStatus, TableValueConstant.DistributionFlow.Status.PENDING.getCode())
.select("sum(reward_amount)")));
map.put("balanceAmount", shopInfoService.getById(shopId).getAmount());
return map;