From 8d6bfcdcdd0627c9f08478ad4384a2a5efd146ea Mon Sep 17 00:00:00 2001 From: tangqian Date: Thu, 15 Jun 2023 16:20:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=94=A8=E4=BA=8E?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B7=B3=E8=BD=AC=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/recharge/RechargeOrderMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/recharge/RechargeOrderMapper.xml b/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/recharge/RechargeOrderMapper.xml index 899877869..062f71e85 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/recharge/RechargeOrderMapper.xml +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/recharge/RechargeOrderMapper.xml @@ -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, From 538daff555eb083e7ca1b6959e20762883eb84bc Mon Sep 17 00:00:00 2001 From: tangqian Date: Thu, 15 Jun 2023 17:43:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=E6=89=AB=E7=89=A9=E4=B8=9A=E7=A0=81?= =?UTF-8?q?=E5=92=8C=E5=90=8E=E5=8F=B0=E6=B3=A8=E5=86=8C=E6=8E=A8=E5=B9=BF?= =?UTF-8?q?=E5=91=98=E7=9A=84=E6=97=B6=E5=80=99=20user=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E4=B8=AD=E6=8E=A8=E5=B9=BF=E5=91=98id=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=BA=E8=87=AA=E5=B7=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../member/service/promoter/PromoterServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/promoter/PromoterServiceImpl.java b/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/promoter/PromoterServiceImpl.java index b62b10bf5..ee3f28db0 100644 --- a/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/promoter/PromoterServiceImpl.java +++ b/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/promoter/PromoterServiceImpl.java @@ -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; });