Browse Source

双十一活动调整

zouxuan 1 year ago
parent
commit
e614a961dd

+ 1 - 1
mec-application/src/main/java/com/ym/mec/student/controller/ActivityController.java

@@ -205,7 +205,7 @@ public class ActivityController extends BaseController {
     }
 
     @ApiOperation(value = "查询乐团编制")
-    @GetMapping(value = "/querySubject", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
+    @GetMapping(value = "/querySubject")
     public HttpResponseResult<MusicGroupPlanMakingDto> query(Integer id) throws Exception {
         MusicGroupPlanMaking pm = musicGroupPlanMakingService.get(id);
 

+ 5 - 4
mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupActivityServiceImpl.java

@@ -779,21 +779,22 @@ public class VipGroupActivityServiceImpl extends BaseServiceImpl<Integer, VipGro
 			if(StringUtils.isEmpty(activity.getVipGroupCategoryIdList())){
 				activity.setActivityTypeEnum("PRACTICE");
 			}else {
-				if(StringUtils.equals(activity.getVipGroupCategoryNames(),"小组课")){
+				activity.setActivityTypeEnum(activity.getVipGroupCategoryNames());
+				/*if(StringUtils.equals(activity.getVipGroupCategoryNames(),"小组课")){
 					activity.setActivityTypeEnum("THEORY");
 				}else{
 					activity.setActivityTypeEnum(activity.getVipGroupCategoryNames());
-				}
+				}*/
 			}
 		}
-		String giveCourseType = activity.getGiveCourseType();
+		/*String giveCourseType = activity.getGiveCourseType();
 		if(StringUtils.isNotEmpty(giveCourseType)){
 			if(StringUtils.equals(giveCourseType,"VIP")){
 				if(StringUtils.equals(activity.getGiveCategoryName(),"小组课")){
 					activity.setGiveCourseType("THEORY");
 				}
 			}
-		}
+		}*/
     }
 
 	@Override