|
@@ -483,6 +483,8 @@ public class MusicPracticeRecordWrapper {
|
|
|
private Boolean delFlag;
|
|
|
|
|
|
|
|
|
+ @ApiModelProperty("是否隐藏评测记录 0:不隐藏 1:隐藏")
|
|
|
+ private Boolean hiddenFlag;
|
|
|
@ApiModelProperty("曲目评测来源 TENANT 机构 PLATFORM 平台")
|
|
|
private String providerType;
|
|
|
|
|
@@ -507,7 +509,7 @@ public class MusicPracticeRecordWrapper {
|
|
|
.sourceTime(record.getSourceTime())
|
|
|
.playTime(record.getPlayTime())
|
|
|
.playRate(record.getPlayRate())
|
|
|
- .speed(String.valueOf(OptionalInt.of(record.getSpeed()).orElse(0)))
|
|
|
+ .speed(record.getSpeed())
|
|
|
.monday(record.getMonday())
|
|
|
.feature(record.getFeature()!=null?record.getFeature().toCbs():null)
|
|
|
.heardLevel(record.getHeardLevel() !=null?record.getHeardLevel().getCode():null)
|
|
@@ -521,6 +523,7 @@ public class MusicPracticeRecordWrapper {
|
|
|
.updateTime(record.getCreateTime())
|
|
|
.createTime(record.getCreateTime())
|
|
|
.delFlag(record.getDelFlag())
|
|
|
+ .hiddenFlag(record.getHiddenFlag())
|
|
|
.providerType(record.getProviderType())
|
|
|
.build();
|
|
|
}
|
|
@@ -543,7 +546,7 @@ public class MusicPracticeRecordWrapper {
|
|
|
sysMusicCompareRecord.setDeviceType(DeviceTypeEnum.valueOf(this.deviceType));
|
|
|
sysMusicCompareRecord.setSourceTime(this.sourceTime);
|
|
|
sysMusicCompareRecord.setPlayTime(this.playTime);
|
|
|
- sysMusicCompareRecord.setSpeed(this.speed!=null?Integer.parseInt(this.speed):90);
|
|
|
+ sysMusicCompareRecord.setSpeed(this.speed);
|
|
|
sysMusicCompareRecord.setMonday(this.monday);
|
|
|
sysMusicCompareRecord.setFeature(this.feature!=null? FeatureType.format(this.feature):null);
|
|
|
sysMusicCompareRecord.setHeardLevel(this.heardLevel!=null? HeardLevelEnum.valueOf(this.heardLevel):null);
|
|
@@ -558,6 +561,7 @@ public class MusicPracticeRecordWrapper {
|
|
|
sysMusicCompareRecord.setDelFlag(this.delFlag);
|
|
|
sysMusicCompareRecord.setPlayRate(this.playRate);
|
|
|
sysMusicCompareRecord.setProviderType(this.providerType ==null?"PLATFORM":this.providerType);
|
|
|
+ sysMusicCompareRecord.setHiddenFlag(this.hiddenFlag);
|
|
|
|
|
|
return sysMusicCompareRecord;
|
|
|
|