分销员开通回调修改

This commit is contained in:
张松
2025-10-30 11:20:02 +08:00
parent 55360f22ef
commit 82d675a2c5
4 changed files with 7 additions and 7 deletions

View File

@@ -533,8 +533,8 @@ public class MkDistributionUserServiceImpl extends ServiceImpl<MkDistributionUse
}
@Override
public void open(Long userId, BigDecimal amount, Long shopId, Long sourceId) {
ShopUser shopUserInfo = shopUserService.getShopUserInfo(shopId, userId);
public void open(Long shopUserId, BigDecimal amount, Long shopId, Long sourceId) {
ShopUser shopUserInfo = shopUserService.getById(shopUserId);
Long mainShopId = shopInfoService.getMainIdByShopId(shopId);
BigDecimal finalAmount = shopInfoService.updateAmount(shopId, amount);
distributionAmountFlowService.save(new MkDistributionAmountFlow()

View File

@@ -9,7 +9,7 @@
left join mk_distribution_user as d on d.id=a.distribution_user_id
left join tb_shop_info as e on e.id=a.shop_id
left join tb_shop_user as b on a.shop_user_id=b.id
left join tb_shop_user as c on c.id=a.shop_user_id
left join tb_shop_user as c on c.id=a.source_shop_user_id
<where>
<if test="shopId != null">
and a.shop_id=#{shopId}