|  | @@ -16,6 +16,7 @@ import static com.ym.mec.biz.dal.enums.PaymentStatusEnum.YES;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import java.io.IOException;
 | 
	
		
			
				|  |  |  import java.math.BigDecimal;
 | 
	
		
			
				|  |  | +import java.sql.Connection;
 | 
	
		
			
				|  |  |  import java.text.SimpleDateFormat;
 | 
	
		
			
				|  |  |  import java.util.ArrayList;
 | 
	
		
			
				|  |  |  import java.util.Arrays;
 | 
	
	
		
			
				|  | @@ -34,11 +35,13 @@ import com.ym.mec.biz.dal.dao.*;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.*;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.enums.*;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.*;
 | 
	
		
			
				|  |  | +import com.ym.mec.common.controller.BaseController;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.tenant.TenantContextHolder;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.slf4j.Logger;
 | 
	
		
			
				|  |  |  import org.slf4j.LoggerFactory;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | +import org.springframework.http.HttpStatus;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  import org.springframework.transaction.annotation.Propagation;
 | 
	
		
			
				|  |  |  import org.springframework.transaction.annotation.Transactional;
 | 
	
	
		
			
				|  | @@ -662,13 +665,20 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  | -    public Map pay(RegisterPayDto registerPayDto) throws Exception {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    public HttpResponseResult pay(RegisterPayDto registerPayDto) throws Exception {
 | 
	
		
			
				|  |  | +        //判断用户是否已存在订单
 | 
	
		
			
				|  |  | +        List<StudentPaymentOrder> applyOrderList = studentPaymentOrderService.findMusicGroupApplyOrderByStatus(registerPayDto.getUserId(), registerPayDto.getMusicGroupId(), DealStatusEnum.ING);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        if (applyOrderList != null && applyOrderList.size() > 0) {
 | 
	
		
			
				|  |  | +            HttpResponseResult result = studentPaymentOrderService.checkRepeatPay(applyOrderList.get(0), registerPayDto.getRepeatPay());
 | 
	
		
			
				|  |  | +            if(result.getCode() != 200){
 | 
	
		
			
				|  |  | +                return result;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          StudentRegistration studentRegistration = studentRegistrationService.get(registerPayDto.getRegisterId().longValue());
 | 
	
		
			
				|  |  |          if (studentRegistration == null) {
 | 
	
		
			
				|  |  |              throw new BizException("报名信息有误,请核查");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        
 | 
	
		
			
				|  |  |          MusicGroupPaymentCalender musicGroupRegCalender = musicGroupPaymentCalenderDao.findByMusicGroupRegCalender(studentRegistration.getMusicGroupId());
 | 
	
		
			
				|  |  |          if(musicGroupRegCalender == null){
 | 
	
		
			
				|  |  |          	throw new BizException("缴费信息不存在");
 | 
	
	
		
			
				|  | @@ -677,12 +687,13 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |          if(musicGroup == null){
 | 
	
		
			
				|  |  |              throw new BizException("查询乐团信息失败");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        Integer tenantId = TenantContextHolder.getTenantId();
 | 
	
		
			
				|  |  | +//        Integer tenantId = TenantContextHolder.getTenantId();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        Long calenderId = musicGroupRegCalender.getId();
 | 
	
		
			
				|  |  |          Integer userId = studentRegistration.getUserId();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          BigDecimal amount = registerPayDto.getAmount(); //前端获取的价格
 | 
	
		
			
				|  |  | -        BigDecimal orderAmount = new BigDecimal("0");
 | 
	
		
			
				|  |  | +        BigDecimal orderAmount = BigDecimal.ZERO;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          //获取课程价格
 | 
	
		
			
				|  |  |  //        MusicGroupSubjectPlan musicOneSubjectClassPlan = musicGroupSubjectPlanService.getMusicOneSubjectClassPlan(studentRegistration.getMusicGroupId(), studentRegistration.getActualSubjectId());
 | 
	
	
		
			
				|  | @@ -693,7 +704,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |          BigDecimal courseRemitFee = BigDecimal.ZERO; //课程减免费用
 | 
	
		
			
				|  |  |          boolean remitCourseRFeeFlag = false; //减免课程费用标识
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        //乐器及打包辅件
 | 
	
		
			
				|  |  | +        //乐器及打包辅件价格
 | 
	
		
			
				|  |  |          List<MusicGroupSubjectGoodsGroup> goodsGroups = new ArrayList<>();
 | 
	
		
			
				|  |  |          if (registerPayDto.getGoodsGroups() != null && registerPayDto.getGoodsGroups().size() > 0) {
 | 
	
		
			
				|  |  |              String goodsGroupIds = registerPayDto.getGoodsGroups().keySet().stream().map(Object::toString).collect(Collectors.joining(","));
 | 
	
	
		
			
				|  | @@ -710,6 +721,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |                  if (!kitGroupPurchaseType.equals("GROUP")) {
 | 
	
		
			
				|  |  |                      goodsGroup.setPrice(kitGroupPurchaseType.equals("FREE") ? new BigDecimal(0) : goodsGroup.getDepositFee());
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  | +                    //购买乐器是否减免课程费用
 | 
	
		
			
				|  |  |                      remitCourseRFeeFlag = goodsGroup.getGroupRemissionCourseFee().equals(1);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  goodsGroup.setKitGroupPurchaseType(KitGroupPurchaseTypeEnum.valueOf(kitGroupPurchaseType));
 | 
	
	
		
			
				|  | @@ -743,20 +755,37 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |          if (musicGroupRegCalender.getPayUserType() == PayUserType.STUDENT && registerPayDto.getNewCourse() != null && registerPayDto.getNewCourse().size() > 0) {
 | 
	
		
			
				|  |  |              newCourses = musicGroupPaymentCalenderCourseSettingsDao.getCalenderCourseSettings(registerPayDto.getNewCourse());
 | 
	
		
			
				|  |  |              for (MusicGroupPaymentCalenderCourseSettings calenderCourseSetting : newCourses) {
 | 
	
		
			
				|  |  | -                if (remitCourseRFeeFlag && !calenderCourseSetting.getIsStudentOptional()) {
 | 
	
		
			
				|  |  | +                if (remitCourseRFeeFlag) {
 | 
	
		
			
				|  |  |                      courseRemitFee = courseRemitFee.add(calenderCourseSetting.getCourseCurrentPrice());
 | 
	
		
			
				|  |  | -                    continue;
 | 
	
		
			
				|  |  | +                }else {
 | 
	
		
			
				|  |  | +                    orderAmount = orderAmount.add(calenderCourseSetting.getCourseCurrentPrice());
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                orderAmount = orderAmount.add(calenderCourseSetting.getCourseCurrentPrice());
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        //乐器保养
 | 
	
		
			
				|  |  | +        //活动价格
 | 
	
		
			
				|  |  | +        List<Long> buyCalenderActivityIdList = registerPayDto.getBuyCalenderActivityId();
 | 
	
		
			
				|  |  | +        if(buyCalenderActivityIdList != null && buyCalenderActivityIdList.size() > 0){
 | 
	
		
			
				|  |  | +            orderAmount = orderAmount.add(musicGroupPaymentCalenderService.getActivityAmount(buyCalenderActivityIdList));
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        //乐器保养价格
 | 
	
		
			
				|  |  |          if (registerPayDto.getBuyMaintenance()) {
 | 
	
		
			
				|  |  | -            String configValue = sysTenantConfigService.getTenantConfigValue(SysConfigService.ONE_YEAR_MUSICAL_REPAIR_AMOUNT, tenantId);
 | 
	
		
			
				|  |  | -            if(StringUtils.isEmpty(configValue)){
 | 
	
		
			
				|  |  | -                throw new BizException("乐保价格异常,请联系指导老师");
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            orderAmount = orderAmount.add(new BigDecimal(configValue));
 | 
	
		
			
				|  |  | +            orderAmount = orderAmount.add(musicGroupPaymentCalenderService.getRepairAmount(calenderId));
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        //云教练价格和订单
 | 
	
		
			
				|  |  | +//        CloudTeacherOrder cloudTeacherOrder = null;
 | 
	
		
			
				|  |  | +        if (registerPayDto.getBuyCloudTeacher()){
 | 
	
		
			
				|  |  | +            orderAmount = orderAmount.add(musicGroupPaymentCalenderService.getMemberAmount(calenderId));
 | 
	
		
			
				|  |  | +//            studentRegistration.setHasCloudTeacher(0);
 | 
	
		
			
				|  |  | +//            //创建订单
 | 
	
		
			
				|  |  | +//            cloudTeacherOrder = new CloudTeacherOrder();
 | 
	
		
			
				|  |  | +//            cloudTeacherOrder.setType(PeriodEnum.MONTH);//月
 | 
	
		
			
				|  |  | +//            cloudTeacherOrder.setTime(musicGroupRegCalender.getMemberValidDate() == null ? 6 : musicGroupRegCalender.getMemberValidDate());
 | 
	
		
			
				|  |  | +//            cloudTeacherOrder.setOrganId(musicGroup.getOrganId());
 | 
	
		
			
				|  |  | +//            cloudTeacherOrder.setStudentId(studentRegistration.getUserId());
 | 
	
		
			
				|  |  | +//            cloudTeacherOrder.setLevel(musicGroupRegCalender.getMemberRankSettingId() == null ? 1 : musicGroupRegCalender.getMemberRankSettingId());
 | 
	
		
			
				|  |  | +//            cloudTeacherOrder.setAmount(cloudTeacherPrice);
 | 
	
		
			
				|  |  | +//            cloudTeacherOrder.setStatus(0);
 | 
	
		
			
				|  |  | +//            cloudTeacherOrder.setMusicGroupId(musicGroup.getId());
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  |          studentRegistration.setMusicGroupPaymentCalenderId(musicGroupRegCalender.getId());
 | 
	
	
		
			
				|  | @@ -766,36 +795,6 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          Date date = new Date();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        CloudTeacherOrder cloudTeacherOrder = null;
 | 
	
		
			
				|  |  | -        //云教练/云教练+
 | 
	
		
			
				|  |  | -        if (registerPayDto.getBuyCloudTeacher() || registerPayDto.getBuyCloudTeacherPlus()) {
 | 
	
		
			
				|  |  | -            BigDecimal cloudTeacherPrice = BigDecimal.ZERO;
 | 
	
		
			
				|  |  | -			if (musicGroupRegCalender.getMemberRankSettingId() != null) {
 | 
	
		
			
				|  |  | -				cloudTeacherPrice = musicGroupRegCalender.getMemberPaymentAmount();
 | 
	
		
			
				|  |  | -			} else {
 | 
	
		
			
				|  |  | -				if (musicGroup.getCloudTeacherType() != null) {
 | 
	
		
			
				|  |  | -					OrganizationCloudTeacherFee cloudTeacher = organizationCloudTeacherFeeDao.getByOrganId(studentRegistration.getOrganId());
 | 
	
		
			
				|  |  | -					cloudTeacherPrice = musicGroup.getCloudTeacherType() == 0 ? cloudTeacher.getPrice() : cloudTeacher.getPlusPrice();
 | 
	
		
			
				|  |  | -				}
 | 
	
		
			
				|  |  | -			}
 | 
	
		
			
				|  |  | -            
 | 
	
		
			
				|  |  | -            orderAmount = orderAmount.add(cloudTeacherPrice);
 | 
	
		
			
				|  |  | -            studentRegistration.setHasCloudTeacher(0);
 | 
	
		
			
				|  |  | -            
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            //创建订单
 | 
	
		
			
				|  |  | -            cloudTeacherOrder = new CloudTeacherOrder();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    		cloudTeacherOrder.setType(PeriodEnum.MONTH);//月
 | 
	
		
			
				|  |  | -			cloudTeacherOrder.setTime(musicGroupRegCalender.getMemberValidDate() == null ? 6 : musicGroupRegCalender.getMemberValidDate());
 | 
	
		
			
				|  |  | -    		
 | 
	
		
			
				|  |  | -    		cloudTeacherOrder.setOrganId(musicGroup.getOrganId());
 | 
	
		
			
				|  |  | -    		cloudTeacherOrder.setStudentId(studentRegistration.getUserId());
 | 
	
		
			
				|  |  | -    		cloudTeacherOrder.setLevel(musicGroupRegCalender.getMemberRankSettingId() == null ? 1 : musicGroupRegCalender.getMemberRankSettingId());
 | 
	
		
			
				|  |  | -    		cloudTeacherOrder.setAmount(cloudTeacherPrice);
 | 
	
		
			
				|  |  | -    		cloudTeacherOrder.setStatus(0);
 | 
	
		
			
				|  |  | -            cloudTeacherOrder.setMusicGroupId(musicGroup.getId());
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  |          String orderNo = idGeneratorService.generatorId("payment") + "";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          String channelType = "";
 | 
	
	
		
			
				|  | @@ -810,6 +809,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |                  registerPayDto.getBuyMaintenance(),
 | 
	
		
			
				|  |  |                  registerPayDto.getBuyCloudTeacher(),
 | 
	
		
			
				|  |  |                  registerPayDto.getBuyCloudTeacherPlus(),registerPayDto.getCouponIdList());
 | 
	
		
			
				|  |  | +        studentPaymentOrder.setCalenderId(calenderId);
 | 
	
		
			
				|  |  |          orderAmount = studentPaymentOrder.getActualAmount();
 | 
	
		
			
				|  |  |          if (amount.compareTo(orderAmount) != 0) {
 | 
	
		
			
				|  |  |              throw new BizException("商品价格不符");
 | 
	
	
		
			
				|  | @@ -820,12 +820,12 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |          studentPaymentOrder = studentPaymentOrderService.get(studentPaymentOrder.getId());
 | 
	
		
			
				|  |  |          boolean canPay = studentPaymentOrder.getClassGroupId() != null && studentPaymentOrder.getClassGroupId().equals(206);
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  | -        if(cloudTeacherOrder != null){
 | 
	
		
			
				|  |  | -    		cloudTeacherOrder.setOrderId(studentPaymentOrder.getId());
 | 
	
		
			
				|  |  | -    		cloudTeacherOrder.setCreateTime(date);
 | 
	
		
			
				|  |  | -    		cloudTeacherOrder.setUpdateTime(date);
 | 
	
		
			
				|  |  | -    		cloudTeacherOrderService.insert(cloudTeacherOrder);
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +//        if(cloudTeacherOrder != null){
 | 
	
		
			
				|  |  | +//    		cloudTeacherOrder.setOrderId(studentPaymentOrder.getId());
 | 
	
		
			
				|  |  | +//    		cloudTeacherOrder.setCreateTime(date);
 | 
	
		
			
				|  |  | +//    		cloudTeacherOrder.setUpdateTime(date);
 | 
	
		
			
				|  |  | +//    		cloudTeacherOrderService.insert(cloudTeacherOrder);
 | 
	
		
			
				|  |  | +//        }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          BigDecimal balance = BigDecimal.ZERO;
 | 
	
		
			
				|  |  |          if (registerPayDto.getUseBalancePayment() && amount.compareTo(BigDecimal.ZERO) > 0) {
 | 
	
	
		
			
				|  | @@ -869,12 +869,11 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |              userPhoneMap.put(endTeacher.getId(), endTeacher.getPhone());
 | 
	
		
			
				|  |  |              sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, MessageTypeEnum.NO_BUY_CLOUD_TEACHER_MSG,
 | 
	
		
			
				|  |  |                      userPhoneMap, null, 0, null, null, musicGroup.getName(), studentRegistration.getName());
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |              if(!canPay){
 | 
	
		
			
				|  |  |                  Map<String, String> notifyMap = new HashMap<>();
 | 
	
		
			
				|  |  |                  notifyMap.put("hasPaidZero", "205");
 | 
	
		
			
				|  |  |                  notifyMap.put("orderNo", studentPaymentOrder.getOrderNo());
 | 
	
		
			
				|  |  | -                return notifyMap;
 | 
	
		
			
				|  |  | +                return BaseController.failed(HttpStatus.RESET_CONTENT, notifyMap, "报名审核中");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -886,7 +885,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |              notifyMap.put("channelType", channelType);
 | 
	
		
			
				|  |  |              notifyMap.put("orderNo", "");
 | 
	
		
			
				|  |  |              studentPaymentOrderService.updateOrder(notifyMap);
 | 
	
		
			
				|  |  | -            return notifyMap;
 | 
	
		
			
				|  |  | +            return BaseController.failed(HttpStatus.CREATED, notifyMap, "恭喜您,报名成功!");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          String orderSubject = "乐团报名";
 | 
	
	
		
			
				|  | @@ -913,15 +912,9 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |          studentPaymentOrder.setPaymentChannel((String) payMap.get("type"));
 | 
	
		
			
				|  |  |          studentPaymentOrder.setUpdateTime(date);
 | 
	
		
			
				|  |  |          studentPaymentOrderService.update(studentPaymentOrder);
 | 
	
		
			
				|  |  | -        return payMap;
 | 
	
		
			
				|  |  | +        return BaseController.succeed(payMap);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    private BigDecimal getCalenderAmount(Long calenderId,Function<Long,BigDecimal> func){
 | 
	
		
			
				|  |  | -        return func.apply(calenderId);
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  |      public Map rePay(RegisterPayDto registerPayDto) throws Exception {
 | 
	
	
		
			
				|  | @@ -3897,7 +3890,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  | -    public List<StudentRegistration> addMusicGroupRegs(String musicGroupId, List<Long> registerIds) throws Exception {
 | 
	
		
			
				|  |  | +    public HttpResponseResult addMusicGroupRegs(String musicGroupId, List<Long> registerIds) throws Exception {
 | 
	
		
			
				|  |  |          SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  |          if (sysUser == null || sysUser.getId() == null) {
 | 
	
		
			
				|  |  |              throw new BizException("获取用户信息失败");
 | 
	
	
		
			
				|  | @@ -3976,7 +3969,10 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |              registerPayDto.setNewCourse(courseSettings);
 | 
	
		
			
				|  |  |              for (StudentRegistration studentRegistration : studentRegistrationList) {
 | 
	
		
			
				|  |  |                  registerPayDto.setRegisterId(studentRegistration.getId().intValue());
 | 
	
		
			
				|  |  | -                Map payMap = this.pay(registerPayDto);
 | 
	
		
			
				|  |  | +                HttpResponseResult result = this.pay(registerPayDto);
 | 
	
		
			
				|  |  | +                if(result.getCode() != 200){
 | 
	
		
			
				|  |  | +                    return result;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -3984,10 +3980,8 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |          MusicGroup musicGroup = musicGroupDao.get(musicGroupId);
 | 
	
		
			
				|  |  |          musicGroup.setIsExtraClass(YesOrNoEnum.YES);
 | 
	
		
			
				|  |  |          musicGroupDao.update(musicGroup);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "添加报名学员", sysUser.getId(), ""));
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        return studentRegistrationList;
 | 
	
		
			
				|  |  | +        return BaseController.succeed(studentRegistrationList);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 |