修改注册逻辑
This commit is contained in:
parent
faa73ce1bc
commit
38cd7b6402
|
|
@ -232,7 +232,6 @@ public class DeviceStockController extends BaseModelController<DeviceStockServic
|
|||
|
||||
DeviceStock existData = dsService.getById(deviceStock.getId());
|
||||
dsService.bindPayCode(existData.getSnNo(), ua);
|
||||
|
||||
return ResultGenerator.genSuccessResult("操作成功!!", null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
package cn.pluss.platform.userInfo.impl;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.jiguang.common.utils.StringUtils;
|
||||
import cn.pluss.platform.entity.*;
|
||||
import cn.pluss.platform.exception.MsgException;
|
||||
import cn.pluss.platform.jfShop.JfShopHandler;
|
||||
import cn.pluss.platform.mapper.UserPromotionMapper;
|
||||
import cn.pluss.platform.roleUserInfo.RoleUserInfoService;
|
||||
import cn.pluss.platform.systemConfig.SystemConfigService;
|
||||
import cn.pluss.platform.util.MD5Util;
|
||||
|
|
@ -16,6 +18,7 @@ import org.springframework.context.annotation.Lazy;
|
|||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
|
@ -134,6 +137,14 @@ public class UserInfoServiceImpl extends BaseUserInfoService {
|
|||
UserApp.setRoleInfo(parentApp, userApp,null);
|
||||
//查找代理
|
||||
|
||||
UserPromotion promotion= getUserPromotionByUserId(parentApp.getUserId().toString());
|
||||
String parenId=promotion.getUserId().toString();
|
||||
// BigDecimal fee=promotion.get
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 保存信息
|
||||
userAppService.save(userApp);
|
||||
|
|
@ -177,4 +188,20 @@ public class UserInfoServiceImpl extends BaseUserInfoService {
|
|||
|
||||
// ipRecordService.saveRegIp(userInfo.getId() + "", operatorUserId);
|
||||
}
|
||||
|
||||
private UserPromotionMapper userPromotionMapper;
|
||||
|
||||
private UserPromotion getUserPromotionByUserId(String userId){
|
||||
UserPromotion promotion= userPromotionMapper.selectById(userId);
|
||||
|
||||
if(ObjectUtil.isNotEmpty(promotion)){
|
||||
if("FB".equals(promotion.getTypeCode())||"SB".equals(promotion.getTypeCode())||"1".equals(promotion.toString())){
|
||||
return promotion;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
getUserPromotionByUserId(promotion.getParentUserId());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue