|
@@ -94,7 +94,7 @@ public class UserIngOrdersService implements IUserIngOrdersService {
|
|
|
if(secretPhone!=null&&secretPhone!=""){
|
|
|
WeixinUserInfo weixinUserInfo=weixinUserInfoRepository.queryBySecretPhone(secretPhone).get();
|
|
|
if(weixinUserInfo!=null){
|
|
|
- ingValue=weixinUserInfo.getPoint();
|
|
|
+ ingValue=weixinUserInfo.getGrowth();
|
|
|
}
|
|
|
//全部等级
|
|
|
List<UserLevelUnit> userLevelUnits=userLevelUnitRepository.findAll();
|
|
@@ -116,18 +116,24 @@ public class UserIngOrdersService implements IUserIngOrdersService {
|
|
|
|
|
|
MemIngProduct mpd=pdlist.isEmpty() ? null : pdlist.get(0);
|
|
|
Set<MemIngProductLevel> mset=new HashSet<MemIngProductLevel>();
|
|
|
- Integer ing=mpd.getMarketIng();
|
|
|
+ Integer ingCode=0;
|
|
|
+
|
|
|
if(mpd!=null){
|
|
|
Set<MemIngProductLevel> productLevel = mpd.getProductLevel();
|
|
|
+ ingCode=productLevel.size();
|
|
|
for(MemIngProductLevel me : productLevel){
|
|
|
if(me.getLevelId().equals(level)){
|
|
|
//指定价格
|
|
|
+ mset.clear();
|
|
|
mset.add(me);
|
|
|
break;
|
|
|
}else if(ingValue>0){
|
|
|
- mset.clear();
|
|
|
- mset.add(me);
|
|
|
+ if(me.getLevel().getLevel()>=ingCode){
|
|
|
+ mset.clear();
|
|
|
+ mset.add(me);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
mpd.setProductLevel(mset);
|
|
|
}
|