|
|
|
@ -341,6 +341,12 @@ public class AlbumService {
|
|
|
|
|
.type(ApproveTypeEnum.ALBUM.getCode())
|
|
|
|
|
.build();
|
|
|
|
|
approveDao.save(successApprove);
|
|
|
|
|
|
|
|
|
|
List<SongInfo> songInfoList = songInfoDao.findByAlbumId(successApprove.getId());
|
|
|
|
|
for (SongInfo songInfo : songInfoList) {
|
|
|
|
|
songInfo.setState(SongInfoStateEnum.IN_USE.getCode());
|
|
|
|
|
songInfoDao.save(songInfo);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
// 审核不通过操作
|
|
|
|
@ -615,7 +621,8 @@ public class AlbumService {
|
|
|
|
|
BeanUtils.copyProperties(albumSongAddDTO, songInfo);
|
|
|
|
|
songInfo.setId(String.valueOf(idWorker.nextId()));
|
|
|
|
|
songInfo.setAlbum(albumName);
|
|
|
|
|
songInfo.setState(SongInfoStateEnum.IN_USE.getCode());
|
|
|
|
|
songInfo.setState(SongInfoStateEnum.NO_USE.getCode());
|
|
|
|
|
songInfo.setUserType(UserTypeEnum.ARTIST_BAND.getCode());
|
|
|
|
|
songInfo.setArtist(artistName);
|
|
|
|
|
if (user != null) {
|
|
|
|
|
artistAlbum.setCreateUser(user.getUserId());
|
|
|
|
|