|
@@ -283,7 +283,7 @@ public class WxNotifyController {
|
|
|
//根据订单查询推荐主播
|
|
|
UserInfo zhubo = userInfoService.getById(wxOrder.getReferralUserId());
|
|
|
//根据主播查询合伙人
|
|
|
- UserInfo hehuoren = userInfoService.getOne(new QueryWrapper<UserInfo>().eq("union_id",zhubo.getUnionId()));
|
|
|
+ UserInfo hehuoren = userInfoService.getOne(new QueryWrapper<UserInfo>().eq("union_id",zhubo.getParentUnionId()));
|
|
|
//根据合伙人查询合伙人以及主播的分佣
|
|
|
List<SysDictData> partnerConfigs = sysDictTypeService.selectDictDataByType("partner_config");
|
|
|
Optional<SysDictData> first = partnerConfigs.stream().filter(o -> hehuoren.getUnionId().equals(o.getDictLabel())).findFirst();
|