Prechádzať zdrojové kódy

酷乐秀曲目来源改为内容平台

zouxuan 1 rok pred
rodič
commit
fa12f43069

+ 3 - 2
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicSheetAuthRecordServiceImpl.java

@@ -249,6 +249,7 @@ public class MusicSheetAuthRecordServiceImpl extends ServiceImpl<MusicSheetAuthR
         musicSheetAuthRecord.setAuditState(AuthStatusEnum.DOING);
         musicSheetAuthRecord.setMusicSheetId(musicSheet.getId());
         musicSheetAuthRecord.setMusicSheetJson(JSON.toJSONString(addMusicSheet));
+        musicSheetAuthRecord.setId(IdWorker.getId());
         return baseMapper.insert(musicSheetAuthRecord);
     }
 
@@ -294,7 +295,7 @@ public class MusicSheetAuthRecordServiceImpl extends ServiceImpl<MusicSheetAuthR
             musicSheetAuthRecord.setBatchNo(record.getBatchNo());
             musicSheetAuthRecord.setAuditState(AuthStatusEnum.DOING);
             musicSheetAuthRecord.setMusicSheetJson(JSON.toJSONString(addMusicSheet));
-            baseMapper.insert(musicSheetAuthRecord);
+            baseMapper.updateById(musicSheetAuthRecord);
         }
     }
 
@@ -316,7 +317,7 @@ public class MusicSheetAuthRecordServiceImpl extends ServiceImpl<MusicSheetAuthR
 
     @Override
     public List<MusicSheetWrapper.MusicSheetDetailVo> auditDetailList(String batchNo) {
-        List<MusicSheetWrapper.MusicSheetDetailVo> sheetDetailVos = musicSheetService.getDao().auditDetailList(null, batchNo);
+        List<MusicSheetWrapper.MusicSheetDetailVo> sheetDetailVos = musicSheetService.getDao().auditDetailList(batchNo);
         if (CollectionUtils.isNotEmpty(sheetDetailVos)) {
             String userName = sheetDetailVos.get(0).getUserName();
             String realName = sheetDetailVos.get(0).getRealName();

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicSheetMapper.xml

@@ -798,7 +798,7 @@
         ,msar.reason_ as auditReason
         ,msar.music_sheet_json_ as musicSheetJson
         ,msar.batch_no_ as batchNo
-        ,msar.batch_no_ as id
+        ,msar.id_ as id
         from music_sheet_auth_record  msar
         left join music_sheet t on t.id_ = msar.music_sheet_id_
         left join sys_user su on su.id_ = t.create_by_