|  | @@ -1,5 +1,16 @@
 | 
											
												
													
														|  |  package com.ym.mec.teacher.controller;
 |  |  package com.ym.mec.teacher.controller;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +import io.swagger.annotations.Api;
 | 
											
												
													
														|  | 
 |  | +import io.swagger.annotations.ApiOperation;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +import org.apache.commons.lang.StringUtils;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.GetMapping;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.PostMapping;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.RequestBody;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.RequestMapping;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.RestController;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  import com.ym.mec.auth.api.client.SysUserFeignService;
 |  |  import com.ym.mec.auth.api.client.SysUserFeignService;
 | 
											
												
													
														|  |  import com.ym.mec.auth.api.entity.SysUser;
 |  |  import com.ym.mec.auth.api.entity.SysUser;
 | 
											
												
													
														|  |  import com.ym.mec.biz.dal.entity.SysMusicScoreAccompaniment;
 |  |  import com.ym.mec.biz.dal.entity.SysMusicScoreAccompaniment;
 | 
											
										
											
												
													
														|  | @@ -10,12 +21,7 @@ import com.ym.mec.biz.service.SysMusicScoreAccompanimentService;
 | 
											
												
													
														|  |  import com.ym.mec.biz.service.TeacherService;
 |  |  import com.ym.mec.biz.service.TeacherService;
 | 
											
												
													
														|  |  import com.ym.mec.common.controller.BaseController;
 |  |  import com.ym.mec.common.controller.BaseController;
 | 
											
												
													
														|  |  import com.ym.mec.common.exception.BizException;
 |  |  import com.ym.mec.common.exception.BizException;
 | 
											
												
													
														|  | -import io.swagger.annotations.Api;
 |  | 
 | 
											
												
													
														|  | -import io.swagger.annotations.ApiOperation;
 |  | 
 | 
											
												
													
														|  | -import org.apache.commons.lang.StringUtils;
 |  | 
 | 
											
												
													
														|  | -import org.springframework.beans.factory.annotation.Autowired;
 |  | 
 | 
											
												
													
														|  | -import org.springframework.http.HttpStatus;
 |  | 
 | 
											
												
													
														|  | -import org.springframework.web.bind.annotation.*;
 |  | 
 | 
											
												
													
														|  | 
 |  | +import com.ym.mec.common.page.PageInfo;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  @RequestMapping("sysMusicScoreAccompaniment")
 |  |  @RequestMapping("sysMusicScoreAccompaniment")
 | 
											
												
													
														|  |  @Api(tags = "曲库伴奏服务")
 |  |  @Api(tags = "曲库伴奏服务")
 | 
											
										
											
												
													
														|  | @@ -92,6 +98,21 @@ public class SysMusicScoreAccompanimentController extends BaseController {
 | 
											
												
													
														|  |          queryInfo.setCreateUserId(sysUser.getId());
 |  |          queryInfo.setCreateUserId(sysUser.getId());
 | 
											
												
													
														|  |          queryInfo.setShowFlag(1);
 |  |          queryInfo.setShowFlag(1);
 | 
											
												
													
														|  |          queryInfo.setEnable(true);
 |  |          queryInfo.setEnable(true);
 | 
											
												
													
														|  | -        return succeed(sysMusicScoreAccompanimentService.queryScorePage(queryInfo));
 |  | 
 | 
											
												
													
														|  | 
 |  | +        
 | 
											
												
													
														|  | 
 |  | +        PageInfo<SysMusicScoreAccompaniment> sysMusicScoreAccompanimentList = sysMusicScoreAccompanimentService.queryScorePage(queryInfo);
 | 
											
												
													
														|  | 
 |  | +       
 | 
											
												
													
														|  | 
 |  | +        String url = null,metronomeUrl = null;
 | 
											
												
													
														|  | 
 |  | +        for(SysMusicScoreAccompaniment smsa : sysMusicScoreAccompanimentList.getRows()){
 | 
											
												
													
														|  | 
 |  | +        	
 | 
											
												
													
														|  | 
 |  | +        	url = smsa.getUrl();
 | 
											
												
													
														|  | 
 |  | +        	metronomeUrl = smsa.getMetronomeUrl();
 | 
											
												
													
														|  | 
 |  | +        	
 | 
											
												
													
														|  | 
 |  | +        	smsa.setUrl(smsa.getMetronomeUrl());
 | 
											
												
													
														|  | 
 |  | +        	smsa.setMetronomeUrl(smsa.getMetronomeUrl());
 | 
											
												
													
														|  | 
 |  | +        	smsa.setMp3Url(url);
 | 
											
												
													
														|  | 
 |  | +        	smsa.setMetronomeMp3Url(metronomeUrl);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        
 | 
											
												
													
														|  | 
 |  | +        return succeed();
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  }
 |  |  }
 |