|
@@ -832,14 +832,14 @@ public class RoomServiceImpl implements RoomService {
|
|
|
enable = data.getMusicScoreOn();
|
|
|
if(enable){
|
|
|
//保存伴奏音量
|
|
|
- roomDao.updateSoundVolumeById(roomId,data.getSoundVolume());
|
|
|
+ roomDao.updateSoundVolumeById(roomId,data.getSoundVolume()==null?0:data.getSoundVolume());
|
|
|
}
|
|
|
}else if (data.getAccompanimentOn() != null) {
|
|
|
typeEnum = DeviceTypeEnum.MusicScoreAccompaniment;
|
|
|
enable = data.getAccompanimentOn();
|
|
|
if(enable){
|
|
|
//保存伴奏音量
|
|
|
- roomDao.updateSoundVolumeById(roomId,data.getSoundVolume());
|
|
|
+ roomDao.updateSoundVolumeById(roomId,data.getSoundVolume()==null?0:data.getSoundVolume());
|
|
|
}
|
|
|
} else {
|
|
|
throw new ApiException(ErrorEnum.ERR_REQUEST_PARA_ERR);
|