修改中西汇通和中医学平级,中医学vip可看
This commit is contained in:
@@ -119,7 +119,7 @@ public class UserVipServiceImpl extends ServiceImpl<UserVipDao, UserVip> impleme
|
||||
for (CourseToMedicine ctm:list) {
|
||||
CourseMedicine cm = topLabel(ctm.getMedicalId());
|
||||
if (cm != null){
|
||||
if ((cm.getId()==1&&userVip.getType()==4)||//中医学
|
||||
if (((cm.getId()==1||cm.getId()==74)&&userVip.getType()==4)||//中医学、中西汇通
|
||||
(cm.getId()==2&&userVip.getType()==5)||//针灸学
|
||||
(cm.getId()==5&&userVip.getType()==6)){//肿瘤学
|
||||
return userVip;
|
||||
@@ -166,7 +166,7 @@ public class UserVipServiceImpl extends ServiceImpl<UserVipDao, UserVip> impleme
|
||||
.eq(CourseToMedicine::getCourseId,courseId));
|
||||
for (CourseToMedicine ctm:mlist) {
|
||||
CourseMedicine cm = topLabel(ctm.getMedicalId());
|
||||
if (cm.getId()==1){//中医学
|
||||
if (cm.getId()==1||cm.getId()==74){//中医学、中西汇通
|
||||
set.add(4);
|
||||
}else if (cm.getId() == 2) {//针灸学
|
||||
set.add(5);
|
||||
|
||||
Reference in New Issue
Block a user