充值修改
This commit is contained in:
@@ -153,13 +153,7 @@ public class UShopUserServiceImpl implements UShopUserService {
|
|||||||
Long mainId = shopInfoService.getMainIdByShopId(shopId);
|
Long mainId = shopInfoService.getMainIdByShopId(shopId);
|
||||||
// 当前用户信息
|
// 当前用户信息
|
||||||
UserInfo userInfo = userInfoService.getById(userId);
|
UserInfo userInfo = userInfoService.getById(userId);
|
||||||
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getSourceShopId, shopId).eq(ShopUser::getUserId, userInfo.getId()));
|
ShopUser shopUser = shopUserService.getShopUserInfo(shopId, userId);
|
||||||
if (shopUser == null) {
|
|
||||||
shopUser = new ShopUser();
|
|
||||||
shopUser.setUserId(userId);
|
|
||||||
shopUser.setSourceShopId(shopId);
|
|
||||||
shopUser.setMainShopId(mainId);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 查询系统添加的会员
|
// 查询系统添加的会员
|
||||||
UserInfo oriInfo = userInfoService.getOne(new QueryWrapper().eq(UserInfo::getPhone, shopUserAddDTO.getPhone()));
|
UserInfo oriInfo = userInfoService.getOne(new QueryWrapper().eq(UserInfo::getPhone, shopUserAddDTO.getPhone()));
|
||||||
|
|||||||
@@ -75,19 +75,16 @@ public class MemberOrderServiceImpl extends ServiceImpl<MemberOrderMapper, Membe
|
|||||||
userInfo.setBirthDay(orderDTO.getBirthDay());
|
userInfo.setBirthDay(orderDTO.getBirthDay());
|
||||||
}
|
}
|
||||||
|
|
||||||
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getUserId, orderDTO.getUserId()).eq(ShopUser::getSourceShopId, orderDTO.getShopId()));
|
uShopUserService.join(orderDTO.getShopId(), orderDTO.getUserId(), new ShopUserAddDTO()
|
||||||
if (shopUser == null) {
|
.setPhone(userInfo.getPhone())
|
||||||
uShopUserService.join(orderDTO.getShopId(), orderDTO.getUserId(), new ShopUserAddDTO()
|
.setSex(userInfo.getSex())
|
||||||
.setPhone(userInfo.getPhone())
|
.setHeadImg(userInfo.getHeadImg())
|
||||||
.setSex(userInfo.getSex())
|
.setAmount(BigDecimal.ZERO)
|
||||||
.setHeadImg(userInfo.getHeadImg())
|
.setBirthDay(userInfo.getBirthDay())
|
||||||
.setAmount(BigDecimal.ZERO)
|
.setIsVip(0)
|
||||||
.setBirthDay(userInfo.getBirthDay())
|
.setAccountPoints(0)
|
||||||
.setIsVip(0)
|
.setNickName(userInfo.getNickName())
|
||||||
.setAccountPoints(0)
|
);
|
||||||
.setNickName(userInfo.getNickName())
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if ("PAY".equals(memberConfigVO.getOpenType())){
|
if ("PAY".equals(memberConfigVO.getOpenType())){
|
||||||
|
|||||||
Reference in New Issue
Block a user