liujc il y a 7 mois
Parent
commit
e684c23968

+ 5 - 4
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicSheetServiceImpl.java

@@ -1043,16 +1043,17 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
             musicSheetService.updateMusicAlbumNumInfo(page.getRecords());
         }
         for (MusicSheetVo record : page.getRecords()) {
+            // 1失效 0 有效
             MusicSheetDetailVo detail = detail(record.getId(), sysUserFeignService.queryUserById(query.getStudentId()), ClientEnum.STUDENT);
-            record.setPlay(YesOrNoEnum.NO);
+            record.setPlay(YesOrNoEnum.YES);
             if (query.getProviderType() == SourceTypeEnum.PLATFORM) {
                 if (Boolean.TRUE.equals(detail.getBuyed())) {
-                    record.setPlay(YesOrNoEnum.YES);
+                    record.setPlay(YesOrNoEnum.NO);
                 } else if(detail.getProviderType().contains(SourceTypeEnum.PLATFORM.getCode())) {
-                    record.setPlay(detail.getState() ==YesOrNoEnum.YES && !detail.getDelFlag()?YesOrNoEnum.YES:YesOrNoEnum.NO);
+                    record.setPlay(detail.getState() ==YesOrNoEnum.YES && !detail.getDelFlag()?YesOrNoEnum.NO:YesOrNoEnum.YES);
                 }
             }else {
-                record.setPlay(detail.getPlay());
+                record.setPlay(detail.getPlay()==YesOrNoEnum.YES?YesOrNoEnum.NO:YesOrNoEnum.YES);
             }
         }
         return page;