Compare commits

...

3 Commits

2 changed files with 8 additions and 1 deletions

View File

@ -107,7 +107,7 @@
a.out_trade_no,
a.pay_time,
b.nickname,
b.nickname as realName,
a.real_name,
a.uid,
a.user_phone,
a.confirm_phone,

View File

@ -89,11 +89,14 @@ public class PromoterServiceImpl implements PromoterService {
promoter.setUserId(memberUserDO.getId());
promoter.setCreateTime(LocalDateTime.now());
promoterMapper.insert(promoter);
memberUserDO.setPromoterId(memberUserDO.getId());
memberUserService.updateById(memberUserDO);
// 返回
return promoter.getId();
}
@Override
@Transactional
public Long appCreatePromoter(AppPromoterCreateReqVO createReqVO) {
//判断手机号是否注册
MemberUserDO memberUserDO = memberUserService.getUserByMobile(createReqVO.getMobile());
@ -127,6 +130,8 @@ public class PromoterServiceImpl implements PromoterService {
promoter.setCreateTime(LocalDateTime.now());
promoter.setSourceType(createReqVO.getSourceType());
promoterMapper.insert(promoter);
memberUserDO.setPromoterId(memberUserDO.getId());
memberUserService.updateById(memberUserDO);
// 返回
return promoter.getId();
}
@ -278,6 +283,8 @@ public class PromoterServiceImpl implements PromoterService {
}
promoter.setDeptId(deptRespDTO.getId());
promoterMapper.insert(promoter);
memberUserDO.setPromoterId(memberUserDO.getId());
memberUserService.updateById(memberUserDO);
respVO.getCreateUsernames().add(importUser.getNickName());
return;
});