瀏覽代碼

管乐迷曲目来源内容平台

zouxuan 9 月之前
父節點
當前提交
98d13563ea

二進制
LOG_HOME_IS_UNDEFINED/202407/feign-20240715-0.log.gz


+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/CbsSubjectServiceImpl.java

@@ -16,7 +16,6 @@ import org.springframework.stereotype.Service;
 import javax.annotation.Resource;
 import java.util.List;
 import java.util.Map;
-import java.util.function.Function;
 import java.util.stream.Collectors;
 
 @Service
@@ -55,6 +54,7 @@ public class CbsSubjectServiceImpl implements CbsSubjectService {
                 List<InstrumentWrapper.Instrument> instruments = cbsSubject.getInstruments();
                 if (CollectionUtils.isNotEmpty(instruments)) {
                     subject.setSubjectName(instruments.stream().map(InstrumentWrapper.Instrument::getName).collect(Collectors.joining(",")));
+                    subject.setInstrumentId(instruments.get(0).getId().longValue());
                 }
             }
         }

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/SysMusicScoreMapper.xml

@@ -177,7 +177,7 @@
 		</if>
 	</select>
 	<select id="selectSyncPage" resultMap="SysMusicScore">
-		select * from sys_music_score where cbs_music_sheet_id_ iS NOT NULL and del_flag_ = 0 and show_flag_ = 1 AND client_type_ = 'SMART_PRACTICE'
+		select * from sys_music_score where cbs_music_sheet_id_ iS NOT NULL and del_flag_ = 0 AND client_type_ = 'SMART_PRACTICE'
 	</select>
 
 	<update id="updateBatchByCbsId">