|
@@ -516,15 +516,16 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM
|
|
|
public boolean insert(SysMusicCompareRecord record, Integer campId) {
|
|
|
this.insert(record);
|
|
|
|
|
|
- if (campId == null) {
|
|
|
- return true;
|
|
|
- }
|
|
|
updateCampData(record, campId);
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
private void updateCampData(SysMusicCompareRecord record, Integer campId) {
|
|
|
+
|
|
|
+ if (campId == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
// 保存训练营评测记录
|
|
|
int i = userMusicCompareCampDayDataDao.updateCampDayData(record.getUserId(), campId, record.getPlayTime());
|
|
|
if (i == 0) {
|