修改身份优先级
This commit is contained in:
@@ -64,12 +64,12 @@ public class TrainingClassServiceImpl extends ServiceImpl<TrainingClassDao, Trai
|
||||
String[] svipTypes = trainingClass.getSvipType().split(",");
|
||||
for (String svipType : svipTypes) {
|
||||
if ("1".equals(svipType)&&userVipService.is4569SVip(userId)){
|
||||
if (fee.compareTo(trainingClass.getSvipFee())>0){
|
||||
if (fee.compareTo(trainingClass.getSvipFee())>=0){
|
||||
fee = trainingClass.getSvipFee();
|
||||
identity = "医学svip";
|
||||
}
|
||||
}else if ("2".equals(svipType)&&userVipService.is78SVip(userId)){
|
||||
if (fee.compareTo(trainingClass.getSvipFee())>0){
|
||||
if (fee.compareTo(trainingClass.getSvipFee())>=0){
|
||||
fee = trainingClass.getSvipFee();
|
||||
identity = "国学心理学svip";
|
||||
}
|
||||
@@ -83,7 +83,7 @@ public class TrainingClassServiceImpl extends ServiceImpl<TrainingClassDao, Trai
|
||||
Map<String,Object> map = userContributionService.getMap(wrapper);
|
||||
if (map != null&&map.containsKey("score")){
|
||||
if (new BigDecimal(map.get("score").toString()).compareTo(new BigDecimal(90))>=0){
|
||||
if (fee.compareTo(trainingClass.getThreeHuFee())>0){
|
||||
if (fee.compareTo(trainingClass.getThreeHuFee())>=0){
|
||||
fee = trainingClass.getThreeHuFee();
|
||||
identity = "三星湖粉";
|
||||
}
|
||||
@@ -97,7 +97,7 @@ public class TrainingClassServiceImpl extends ServiceImpl<TrainingClassDao, Trai
|
||||
Map<String,Object> map = userContributionService.getMap(wrapper);
|
||||
if (map != null&&map.containsKey("score")){
|
||||
if (new BigDecimal(map.get("score").toString()).compareTo(new BigDecimal(150))>=0){
|
||||
if (fee.compareTo(trainingClass.getFiveHuFee())>0){
|
||||
if (fee.compareTo(trainingClass.getFiveHuFee())>=0){
|
||||
fee = trainingClass.getFiveHuFee();
|
||||
identity = "五星湖粉";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user