|  | @@ -78,6 +78,9 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao,MusicSheet>
 | 
	
		
			
				|  |  |      private MusicSheetAuthRecordService musicSheetAuthRecordService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  | +    private AlbumMusicRelateService albumMusicRelateService;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  |      private SysUserFeignService sysUserFeignService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
	
		
			
				|  | @@ -392,6 +395,10 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao,MusicSheet>
 | 
	
		
			
				|  |  |          if (musicSheetDto.getAuditVersion() == null) {
 | 
	
		
			
				|  |  |              musicSheetDto.setAuditVersion(YesOrNoEnum.NO);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        // 删除曲目专辑关联
 | 
	
		
			
				|  |  | +        delAlbumSheetRef(musicSheetDto.getId(),musicSheetDto.getMusicSubject());
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          List<MusicSheetAccompaniment> list;
 | 
	
		
			
				|  |  |          if (!AudioTypeEnum.MIDI.getCode().equals(musicSheetDto.getAudioType().getCode())){
 | 
	
		
			
				|  |  |              list = musicSheetDto.getBackground();
 | 
	
	
		
			
				|  | @@ -414,6 +421,26 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao,MusicSheet>
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * 删除专辑曲目关联
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  | +     * @param id 曲目id
 | 
	
		
			
				|  |  | +     * @param subjectId 声部id
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    private void delAlbumSheetRef(Long id,String subjectId) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        if (id == null ) {
 | 
	
		
			
				|  |  | +            return;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        MusicSheet musicSheet = this.getById(id);
 | 
	
		
			
				|  |  | +        if (musicSheet.getMusicSubject().equals(subjectId)) {
 | 
	
		
			
				|  |  | +            return;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        albumMusicRelateService.delByMusicSheet(musicSheet.getId());
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public HttpResponseResult<OrderCreateRes> buyMusicSheetCheck(OrderReq.OrderReqInfo orderReqInfo) {
 | 
	
		
			
				|  |  |  
 |